Message ID | 20171113102815.11254-2-sergey.matyukevich.os@quantenna.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Kalle Valo |
Headers | show
Return-Path: <linux-wireless-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E86F26029B for <patchwork-linux-wireless@patchwork.kernel.org>; Mon, 13 Nov 2017 10:28:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B62BB2935C for <patchwork-linux-wireless@patchwork.kernel.org>; Mon, 13 Nov 2017 10:28:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB08529363; Mon, 13 Nov 2017 10:28:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D98C2935C for <patchwork-linux-wireless@patchwork.kernel.org>; Mon, 13 Nov 2017 10:28:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752168AbdKMK2e (ORCPT <rfc822;patchwork-linux-wireless@patchwork.kernel.org>); Mon, 13 Nov 2017 05:28:34 -0500 Received: from mail-sn1nam01on0085.outbound.protection.outlook.com ([104.47.32.85]:59533 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751484AbdKMK2a (ORCPT <rfc822; linux-wireless@vger.kernel.org>); Mon, 13 Nov 2017 05:28:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quantenna.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/kh5wAsbhNgSuVLbY7AS07Ba6Agrlchf1msa5JPqCVY=; b=x64ZZ//GDH04ZWwUgg4cbhCPrnABqNKrov9sDZBZsd1o3kELz0dZa1kl1mxxkNm0S8Vi4BwMMoUMB4muaVQfHbapi6Y95fvZg5ee4TQJ87uYzyTaRgCdr2owfduYv+rnOyecOnW3tMhj2A8w1UaIKrh6xsEB5QaD0wWAU3MfimA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=sergey.matyukevich.os@quantenna.com; Received: from bars.quantenna.com (195.182.157.78) by BLUPR05MB1924.namprd05.prod.outlook.com (10.162.224.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.239.4; Mon, 13 Nov 2017 10:28:27 +0000 From: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com> To: linux-wireless@vger.kernel.org Cc: Igor Mitsyanko <igor.mitsyanko.os@quantenna.com>, Avinash Patil <avinashp@quantenna.com>, Vasily Ulyanov <vulyanov@quantenna.com> Subject: [PATCH 01/10] qtnfmac: check that MAC exists in regulatory notifier Date: Mon, 13 Nov 2017 13:28:06 +0300 Message-Id: <20171113102815.11254-2-sergey.matyukevich.os@quantenna.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171113102815.11254-1-sergey.matyukevich.os@quantenna.com> References: <20171113102815.11254-1-sergey.matyukevich.os@quantenna.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [195.182.157.78] X-ClientProxiedBy: AM5P190CA0007.EURP190.PROD.OUTLOOK.COM (10.161.47.148) To BLUPR05MB1924.namprd05.prod.outlook.com (10.162.224.14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e8b727e6-5764-4a67-a260-08d52a814796 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603199); SRVR:BLUPR05MB1924; X-Microsoft-Exchange-Diagnostics: 1; BLUPR05MB1924; 3:vIFygDDLmwy01HPbpInMrjBy5YbdF3JAhr45NCXksQyD5UI8+Lr+j2h3Wy0GDpV1391IJJDAJDrmiw4XV5sxbBpx9rpIB839MoP+0kg/l2DUL2iAJGwKHYoaqiGfA73CiUBBGDHpqQ0I+x5PC/uQL9Ee4d1QeCDBhBB2/7uitYKqkTYKWW0lkLMC7mi0DJvVeJaCyIWjCZRI7lqz06mqFio6tpYx9Q+A+MHosYypWZh3SwmDDKBGQW7ZEnK13LAr; 25:QXZqSf3yZTBX4aSO/ue0Gr59nkj5vH7+tBi4JoerDca3mFaNUHJSIgpw5P223qVAbKYcOo6OWPXIdBq+b31LhdQt2K0FP7CfpKymb9BZrucJ/kGVzKxbdEaeraTPd+8P2bZXhSogANPGZLWbnE1t9tGzaxMJDOLe2DFA/Oj29h4kfyb9KqKP6rab1LWGB0SXhLbH/7rUzte7zuFUs3CCzhCFdRlvYTwsrrXltN/+3bVsWRtCsi3b+su+kXeviywNc93laSX1CG2jHWq/KH5QsT/wCh6jDNKLKF+wE9JNBIwI9V7S1vI7JLiJhMH/ji9uhF6SucV0bz2aG21umB71yoK61oxGD5tHTekAn1O9m1k=; 31:Fmled4R476NkSa8QJztuiBuaXuPpTsHjRKXNXrwsgKZ+766LCqeeP0K/S56QduUkBgHDAjm3n9vkXl7nfx9fJ3dW6ITMGM00rkBBgcYwDSGHZJVMRHXTgQOFVA8Y1j2tbKaO4uDYrlTvQeD0dPKmgc7c24PwP1vbtLA0laU25nd4Zp7IMLcoRN4OajO+dtUKwABkZAcks8g7dheKLjTKRfkhEQdrqqVsK/NQVnbPq90= X-MS-TrafficTypeDiagnostic: BLUPR05MB1924: X-Microsoft-Exchange-Diagnostics: 1; BLUPR05MB1924; 20:BhQUfHlPAGQa1/rAWOq40Q6DM3UL/Yfiy2Tf7IoEzKukBiJgvgFppldaMtqrsqalknUdy3awWJGkrGUJrB5KQ8aJFM5xjW9IpqAd+JWnzDeRxa/onOPtwMISr3YXuROlacN34NuGplXpKsxYijeTvzYgAss9hsrOoAn/oMLQwo/Q8G4h2yF6Rn3RkjqRTdl41q4zKbVt96e58nFq4i+13vcP5vHbsECyCvU1/ae9/zLiFM0I6dNhAhqUCEBfduhCL5FaZR0pEie7+BWtOEuzYiAOS3FN53Ugwj14Ppmcgeg9lH7spP8YI6VOLX7cExAIXT7xX8FabH2syUsucHR/1fui3+9oI/mY4gkVARPeKDF8/rzoY7w3sZnbFAyM80/8dtdwWGd8a8hH1PrAmwJ34e0LhuGiYhAu7WXsp4TNe1VGe97BjNuXXOOBt1Zb5C7Suaz0Xr1JwppGoD1fcoplXv37Z3KIkuQ9L2in8yStCESR4jEnk4otl7g27pcjm51w; 4:wPkssp/On8qR9DUON1Pmje8Nvczm4S/iInfCnshuzvsVwe/Cztd6+Lhdi1rPfGh8WNS4RclVFf6724+aHc+vqOoX/el5ttLKJ2Zmk5a8ErEdrc/J9EJ6Ei7T+xjwtUc+uVGiQwdy+jejY0tTXirJPglYxTxXWBac0iTyKxEpK9rHTJwklyQF9/920fUwbjWBOlKHpkX+mrQpTIvJNmR0ac97IgQZKgaXPUGiLVtCls/4djf2Ubb7srnRfg+Jxt2f57aGf4Z0HOuHc+rvE1uEhg== X-Microsoft-Antispam-PRVS: <BLUPR05MB19245E80A0E5A16EC6F1CA21A32B0@BLUPR05MB1924.namprd05.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(93001095)(3231022)(10201501046)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123558100)(20161123564025)(20161123562025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR05MB1924; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR05MB1924; X-Forefront-PRVS: 0490BBA1F0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(39830400002)(346002)(199003)(189002)(5660300001)(107886003)(47776003)(105586002)(50226002)(54906003)(66066001)(53936002)(2361001)(15650500001)(76176999)(316002)(6486002)(6916009)(50986999)(97736004)(4326008)(33646002)(5003940100001)(106356001)(2906002)(6666003)(2950100002)(25786009)(101416001)(16526018)(189998001)(81166006)(81156014)(86362001)(8676002)(6116002)(3846002)(478600001)(68736007)(53416004)(48376002)(7736002)(50466002)(2351001)(16586007)(103116003)(69596002)(36756003)(305945005)(1076002)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR05MB1924; H:bars.quantenna.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: quantenna.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR05MB1924; 23:LzNj7FALjRMQTF2RhNftyEAqyjIFdt+odOcFItFkj?= =?us-ascii?Q?FBEibAk+Qgon9kt0tnXYuH8XnM0cuWRAGzdl9sGKf8ijA+tqxib9F/8tCEgV?= =?us-ascii?Q?l0vZus2P26Ds1Rm/vonkC1HmLdex4poQ4Gss1qX8jnUCdZL+dGZV0YhvxZze?= =?us-ascii?Q?err3zSRvjrBU3SMnExSxR2nEVsUCQf61Nw9wYBlHPSsoKcTmBuSI4E/xfNxZ?= =?us-ascii?Q?QTldIYAl4S48FUj4r/6JoohYJAKi7BwbJuihsZoD75BonuosniNTgI0Gsbkm?= =?us-ascii?Q?m3ZPo+i8pCbLLHx0Sz9sis6tJi4ghtb7CtP1kvu0IrwoFHOm85/RofzZtEjG?= =?us-ascii?Q?TF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vBQGs8LSD62vuSd8S+rqRvsZ4?= =?us-ascii?Q?FihFpb84rLkzdJn5yA=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR05MB1924; 6:MtLgV2D+1oa32GhCSJz95qvnAx0zesQaGBZMF/hb6AkfBCOX3bVcEgffgagVS9eAd0Y8c2Igjs8jU1tZvS+rRhOh/QRs9LVReMRl7vMdO1epTRqiRqtLsQzu6/MOGOg5AhCecvJQAQ1tfHhGhNW0ATKp0JpyI/9eASVYWQZLg2pam7c8th1tVDpQOwn4icLt9+J+dxgElU42i9GHHOeeuwe+3tdMnQaWxAAVadfE+lH2XQfuRZC7A4d3afslM6t6bYxG1OJWFMPtU+InGqcUAsUY9Cva3NAtBUGZl/7QdxQDFEJfLSTDevn2YpnPTWfag+hynrBJF+v9RHUnE9NoiQLOLkSGmLbcCFhFz76Wj5U=; 5:Qjr99xiG+OYGFrj3grkjSLjubMmmyRK6U3ScYoAUQk+a3a5LkBOJ27MDXYTkLKO64bot0Plm0x5GXUQBSRTJYWbESAIGwkod7USoDyoqW3fsRQP8/syjv3H8ArPnuXrqNN1zTZewjB8fNpHzkWi8/iMG/80X/qau29cWFJxRUP4=; 24:NPA/WluCdq2vUGF922iHmGrmy2MrN3+FYlPcx1zi5N0Opk+SsUwcl40URIAd5x3THngIaqJFYU2wR+jvqxCwPHrMGm6BZYoRCd3DWsIhulE=; 7:XMohpKcThkq44BVKHRHSTMjgEq4FXW8NLJ/G20sVBe0Gae43nqYM6oh23x37sW3ypOCEYI9Dz4JbtLajrPzeEshrJIz6iEQ5kiFjdaoaWC0LGb2rUAFe2PonzNEdJepcVrW/y1GE+1eeq6A3ik09Kn4hHkFTMRoCsYWzw5XxobgB73etyd9/uHNrhL4EcSL9101YeW428kbz95eb/6vjbT4XTnODJBYh0LMglrXsmYgFpjN2da7V/6jdCUkldn0s SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: quantenna.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Nov 2017 10:28:27.4713 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e8b727e6-5764-4a67-a260-08d52a814796 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a355dbce-62b4-4789-9446-c1d5582180ff X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR05MB1924 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: <linux-wireless.vger.kernel.org> X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c index 7d6dc76c930a..eeffc7689455 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c +++ b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c @@ -802,6 +802,9 @@ static void qtnf_cfg80211_reg_notifier(struct wiphy *wiphy_in, continue; mac = bus->mac[mac_idx]; + if (!mac) + continue; + wiphy = priv_to_wiphy(mac); for (band = 0; band < NUM_NL80211_BANDS; ++band) {