Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4190525ybc; Tue, 26 Nov 2019 05:21:47 -0800 (PST) X-Google-Smtp-Source: APXvYqyoUJq3GMfJoxbHSvxBzLJHpaPOzth4X8LKucYGWilO9GRMYow7AOU28BFbxsHbqDN8U0hT X-Received: by 2002:a05:6402:2042:: with SMTP id bc2mr25226745edb.167.1574774507433; Tue, 26 Nov 2019 05:21:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574774507; cv=none; d=google.com; s=arc-20160816; b=bSnonbk10Bw//GzEx9Pak6U7z+WcowQ4YKyFYSmjaL/c2ElJpzF4mn6uaSHsu+kfHf TnFesnC2rRoClAqgD7Ne70sspPRcBasEhXWro3lszfESrV20H16iJG5Upx8/dIdvFFoK LsWTtS8EcN+4IAW/ELY5cfalhGi4SNGy+jhK7E2CB6qU2Ti0ECaNQQFfndjPBCgRbLDt /uz3lbOBOdW60PUXeoHZJwGzTHZPwl2mkJOZvIkevW9zdcW7dHSOzg7Y5rLaRWzpGDxs udtGnNP/AhTx3OSanEg3arig9kj1wxqkgnXW0LJ49QHtkH1xGMPZ/piDe5lVyDSBK5nZ fFHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=jZRVn5TlvJrTrTr3DZJgx1M6iBQCf9Nk3/ncmMlFv4c=; b=0UBYfLko1O9TslkQr6D9+XNpx21BjxxuwKHoFeSAddSBR4UTvS+BxdLy13aN23WPY1 IoKpdjpQKqnPsG0HnPsXBGuQZWYtdxbVcAWOmeNqUVhmn4TmQepCr9AKPj0KKaj3khM4 G3agDW0EqLrwGy1nLpMok5agpNxwVlAlipWPaPQCqeshjM5HyURgI+9q0D8yLBkDPSge n9360Trbl3y2Gd0vPQYtxD0yp/olbeXpYo1HnCGmJ1zmo5aOqAKYtE5A43oVnEgbkw1U kwakSVPFZfae9TsSNTRkLWzhcf2PxVZPq3oDy0a/8x8q0IhKlsXX9n4d4UO0VYK8PV0b UZnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=kA3On3Uq; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s2si7111927edx.148.2019.11.26.05.21.11; Tue, 26 Nov 2019 05:21:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=kA3On3Uq; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728017AbfKZNRs (ORCPT + 99 others); Tue, 26 Nov 2019 08:17:48 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:10995 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727734AbfKZNRr (ORCPT ); Tue, 26 Nov 2019 08:17:47 -0500 X-UUID: d280355e739a48b6bb8f3d13768babdb-20191126 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=jZRVn5TlvJrTrTr3DZJgx1M6iBQCf9Nk3/ncmMlFv4c=; b=kA3On3UqMr2kt4qal2yIT1KEbiJV03Qro/4TAmEi6iPnTLx1dCxa/VKUzpGz8T8aSJd2ZqZNp6UV3J9859hEdidqJYz92Ffdy0PcBhZE6seCTZ7TEQDKuUaAR6tf55jQ/bVrdi9SDxNO+1jqlUVVoloob6RVgMG9S5/pUILMvWU=; X-UUID: d280355e739a48b6bb8f3d13768babdb-20191126 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 295749486; Tue, 26 Nov 2019 21:17:42 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 26 Nov 2019 21:17:39 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 26 Nov 2019 21:17:36 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Lorenzo Bianconi , Ryder Lee , Roy Luo , linux-mediatek , Shayne Chen Subject: [PATCH] mt76: fix possible undetected invalid MAC address Date: Tue, 26 Nov 2019 21:15:54 +0800 Message-ID: <20191126131554.32457-1-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: C5DD055B51CD7A390C073BA74141EDA9DD3D1017221B87A0542E61E140A4008C2000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org TWFrZSBzdXJlIHRoZSBNQUMgYWRkcmVzcyBpcyBjaGVja2VkIGJlZm9yZSBmdW5jdGlvbiByZXR1 cm5zLg0KDQpJZiBDT05GSUdfT0YgaXMgc2V0IGFuZCB0aGUgZGV2aWNlIG5vZGUgaXMgbnVsbCwg dGhlIGZ1bmN0aW9uIHdpbGwgDQp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