From patchwork Mon Mar 26 13:36:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Matyukevich X-Patchwork-Id: 10307823 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: 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 33D9960212 for ; Mon, 26 Mar 2018 13:36:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 220F3296C3 for ; Mon, 26 Mar 2018 13:36:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 165A4296C9; Mon, 26 Mar 2018 13:36:56 +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 A333F296C3 for ; Mon, 26 Mar 2018 13:36:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752122AbeCZNgy (ORCPT ); Mon, 26 Mar 2018 09:36:54 -0400 Received: from mail-sn1nam01on0060.outbound.protection.outlook.com ([104.47.32.60]:20425 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751374AbeCZNgv (ORCPT ); Mon, 26 Mar 2018 09:36:51 -0400 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=vpg1SC86GM1KMKQysWlg74zvetZC8hWg3h3YyQ8AL1k=; b=mME+00iy2hm6THyC1koIzan9W/TH5kZGdd2sf2NYtg5fCj20uowdT8mazm9PH4arOph8KF/YQhF1U1Lti0bh6ad2Vk2m8uZtnqjHMOcULVABksnZlG2GyGy5nujRWKA33cWSmvLhNyrKPd3texp5sFbmBoY5isXKuACgL2DS8yI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=sergey.matyukevich.os@quantenna.com; Received: from bars.quantenna.com (195.182.157.78) by BY2PR05MB1927.namprd05.prod.outlook.com (10.163.32.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.5; Mon, 26 Mar 2018 13:36:48 +0000 From: Sergey Matyukevich To: linux-wireless@vger.kernel.org Cc: Johannes Berg , Igor Mitsyanko , Avinash Patil , Dmitry Lebed , Dmitry Lebed Subject: [PATCH 1/3] cfg80211: fix CAC_STARTED event handling Date: Mon, 26 Mar 2018 16:36:31 +0300 Message-Id: <20180326133633.8771-2-sergey.matyukevich.os@quantenna.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180326133633.8771-1-sergey.matyukevich.os@quantenna.com> References: <20180326133633.8771-1-sergey.matyukevich.os@quantenna.com> MIME-Version: 1.0 X-Originating-IP: [195.182.157.78] X-ClientProxiedBy: VI1PR0501CA0024.eurprd05.prod.outlook.com (10.172.9.162) To BY2PR05MB1927.namprd05.prod.outlook.com (10.163.32.141) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 81b477a5-e5f6-4e3c-6559-08d5931ea0f0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BY2PR05MB1927; X-Microsoft-Exchange-Diagnostics: 1; BY2PR05MB1927; 3:BykuCCNwFpEu5I3ZXfdcihRNLIdBxevAVY4q+TsBUM5nJu5S/D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tG7grZBHNFTI9/UJemuhhEOSGugOvqowxQF6f2E5umGOTU3MmUesCe6FU2caWnJ37pNmXSXFlr7qEFljqZzIOiqwohsngDc0nMRyOFPk4FA81nnsipDBYzvWAMvZ5GkZWimNGZZfBLOdHchI/Pxm9BWXthr5+d15Drp5RhbAXN/pqkvYYTPCRUURFgR88LSISrSANiBnPlBP9ifccOpCKfyN1kVHRfRtjrzBT8pdNSYf5Ok3XFX2vKXS+ccCcEmKTpN3yKyyL0eYzdSJVItdLhL49/MLTCvfXm320VYukn4; 4:tijKcP3MGc5mdQfPAo4gyOVdWalPLcz+OJMtku1Hv2Mp2Q6B4b7Ki2yVgs4SI/nSBNdfhghpUjS4opoliy52+DGqaJv01WrM7r3WcT18GiTtGRDJrd5h/ggVui0fMOa2lhqdX/vRtCgGkb5V/FsM2CnP+hfCRN9V1mXWdRSFTRqzZyIXetyVVzHayfxHt9ylmKQ6qAzXW1AO87TS5J5iTC69xyaBauqk2SlnZ3b3zZwGUCWhg6CraU8uGALbd6GjpJiecnXGsZGjVqcohervwQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(93006095)(93001095)(3002001)(10201501046)(6041310)(20161123562045)(201703131423095)(20161123555045)(201703061421075)(20161123560045)(20161123558120)(20161123564045)(6072148)(201708071742011); SRVR:BY2PR05MB1927; BCL:0; PCL:0; RULEID:; SRVR:BY2PR05MB1927; X-Forefront-PRVS: 06237E4555 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(39380400002)(366004)(346002)(376002)(189003)(199004)(25786009)(386003)(6666003)(86362001)(6916009)(4326008)(508600001)(81156014)(81166006)(8676002)(2351001)(6486002)(8936002)(39060400002)(50226002)(106356001)(54906003)(103116003)(2361001)(186003)(7736002)(53416004)(50466002)(2616005)(956004)(48376002)(26005)(446003)(11346002)(16526019)(59450400001)(69596002)(105586002)(51416003)(76176011)(305945005)(52116002)(97736004)(66066001)(47776003)(6116002)(3846002)(7696005)(1076002)(5660300001)(68736007)(36756003)(53936002)(16586007)(2906002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR05MB1927; H:bars.quantenna.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: quantenna.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR05MB1927; 23:qq8/3OW1FLMjWLqt9bEfS3VW8mD3VTRsx/NJLNvTf?= =?us-ascii?Q?xivUkwShwY+SnVVSns9dwPlg2+RKkBor9y9PKF+xGnv7UvnQyEIs4yil4+4Q?= =?us-ascii?Q?xzyGhr+QBYH9wzW0eCOL+w7cNqt3mBXx/AI0MszKBCD27yn4R0A5BUfjAKGA?= =?us-ascii?Q?Fo7bqDH6QJWzaLKUXifNuSUDAG65NNDz+48ySjTUcRll7jRT2NQV0Vna8zvY?= =?us-ascii?Q?pXR5dd/cyZIMJm+EN5lAOrKw0EJWJoRmFCpEisOaMfiGUVWWIp70iZ09AikM?= =?us-ascii?Q?otr8T2zdzL/Qwlo2GbRGwNig/pJ1aBfiaX2ij2IvUFG8kwu0koymn6kePuPn?= =?us-ascii?Q?bmjsAgYWFYFWyoGgRN7Jjqy0heDCy99Ks37qytrfR+reTYoqoz46hqPc2CTQ?= =?us-ascii?Q?FnGJxUL1x/cIG4rtFYmBFpStw1cxYl3i7bpqfxJvlle4vVlzE2t/hSzbw6FS?= =?us-ascii?Q?lVflKEAqbM9vEWgRXJ4Aw/1BsaqOHvTejPE5pZnf+jpYgKKTVohcdEB1OoNQ?= =?us-ascii?Q?sAqvvOSlNiCbv3KXFSLTC5RsQFcuux32BoYT+sDeBntTKuViGqERRK7e9JJh?= =?us-ascii?Q?5e6yt0cTfR2sD34lmdewPNW92gy2G//y0t/NXRb9lE3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azXl42/tTwpKfu9mY74HfCTTJGJ4v10cUZ3lRi8RsNU5vmj+wE5tmFV63zd3G5yv5L1QTril2WxXa5E8j0BZauOEoLIsUFmw11GuFZ0JjH3OZLm8Gnl3dtijBFvCH6aZ+NvJ/b X-OriginatorOrg: quantenna.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Mar 2018 13:36:48.3099 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 81b477a5-e5f6-4e3c-6559-08d5931ea0f0 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a355dbce-62b4-4789-9446-c1d5582180ff X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR05MB1927 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Dmitry Lebed Exclude CAC_STARTED event from !wdev->cac_started check, since cac_started will be set later in the same function. Signed-off-by: Dmitry Lebed --- net/wireless/mlme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c index 6b6818dd76bd..12b3edf70a7b 100644 --- a/net/wireless/mlme.c +++ b/net/wireless/mlme.c @@ -872,7 +872,7 @@ void cfg80211_cac_event(struct net_device *netdev, trace_cfg80211_cac_event(netdev, event); - if (WARN_ON(!wdev->cac_started)) + if (WARN_ON(!wdev->cac_started && event != NL80211_RADAR_CAC_STARTED)) return; if (WARN_ON(!wdev->chandef.chan))