Message ID | 20180529120005.21498-9-sergey.matyukevich.os@quantenna.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 40d68dbb986d2116c15e70f63c419a5481d7b91c |
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 743D1601E9 for <patchwork-linux-wireless@patchwork.kernel.org>; Tue, 29 May 2018 12:00:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6477D2872E for <patchwork-linux-wireless@patchwork.kernel.org>; Tue, 29 May 2018 12:00:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 591D228734; Tue, 29 May 2018 12:00:54 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, 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 D2B252872E for <patchwork-linux-wireless@patchwork.kernel.org>; Tue, 29 May 2018 12:00:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933661AbeE2MAv (ORCPT <rfc822;patchwork-linux-wireless@patchwork.kernel.org>); Tue, 29 May 2018 08:00:51 -0400 Received: from mail-by2nam03on0088.outbound.protection.outlook.com ([104.47.42.88]:23410 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933651AbeE2MAp (ORCPT <rfc822;linux-wireless@vger.kernel.org>); Tue, 29 May 2018 08:00:45 -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:X-MS-Exchange-SenderADCheck; bh=9XWqQqjMFXtSSdk2tSwFG8DGBIx8cDEcrFbrvH7LHgk=; b=D7EcrpcQWTeGlUpPJde0NGqpJV18Mb0gUIL/Fd/NQmR753s+6DuxmgD/KoILcAL1ocBlCzQLw8+m8cwgOdECSIUs/BBpPf1H1/5aUs/tx7TI+8m0PeSACgSc29dC7uyIPZsFsEcXA0snz8MCvcZQ0sQF0hROsmeU75r8gknciL0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=sergey.matyukevich.os@quantenna.com; Received: from bars.quantenna.com (195.182.157.78) by BLUPR05MB1923.namprd05.prod.outlook.com (2a01:111:e400:52ad::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.5; Tue, 29 May 2018 12:00:31 +0000 From: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com> To: linux-wireless@vger.kernel.org Cc: Igor Mitsyanko <igor.mitsyanko.os@quantenna.com>, Andrey Shevchenko <ashevchenko@quantenna.com>, Sergei Maksimenko <smaksimenko@quantenna.com>, Dmitry Lebed <dlebed@quantenna.com> Subject: [PATCH 8/9] qtnfmac: cancel scan on disconnect Date: Tue, 29 May 2018 15:00:04 +0300 Message-Id: <20180529120005.21498-9-sergey.matyukevich.os@quantenna.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180529120005.21498-1-sergey.matyukevich.os@quantenna.com> References: <20180529120005.21498-1-sergey.matyukevich.os@quantenna.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [195.182.157.78] X-ClientProxiedBy: AM6PR03CA0031.eurprd03.prod.outlook.com (2603:10a6:20b::44) To BLUPR05MB1923.namprd05.prod.outlook.com (2a01:111:e400:52ad::13) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BLUPR05MB1923; X-Microsoft-Exchange-Diagnostics: 1; BLUPR05MB1923; 3:Lz8+V3uXfsKOm3HYD8lXhlm0/IuqIsJqQ5KD5WKDyR7DjNMnV8wejG30UrGUGPW/wYM5oE3aMzvqWCqB3K12b99mhYCJBQNVYNGBjBGEB7FBIpllUiquGt5aRn4pteOxUeS+Rn2Wqb/KciJXDkfzMzXhUx8q+3IdgXkBq6JaRHe2JtnNUGsOGBt+CbjkfEUGWYJHqMYXP4yIRlLve5f8s/EB8Fm/5vEmSFoLftA34acQFem663hT8cjwCcsshTVD; 25:RKiYWebdDSwmcTkbLMT2scSfxkCM5i5L/3xu8pFHnmXsG0sgPw22sDcZ5278VeBIUAicEQicmXdgBwCecS85k2IcfrXaL5ZWO+Vbq5PQtZYe0ZM7jRnft4vfPgiFUCg3kLgIA1JO3BvfDTxHRxqKCtApXkRCxQoQJDeEDiSpBmgnU5QmsBT7c9pU2y1BY2QWFtfcf84xuLFFDmwJie3BsQfwAo9zLqUnbUz8uSMB2NISdraotYGqIYn+F0hOYcxiWaLmb+9X23MX+Jn7w0T6sRRJRDdrUC17A60R7MsJt15cIFMHYQVrsNYvUiiiRnwkkERJCE90MAozgPYFlYzySg==; 31:dUNC+csP9To0uxqepepKKHA/KHngKgW1LXf4VMM8aOMGFwfVh4DpbMo+pw6RbeydueSv5a0Mv3DATGW5+GlHz74BfgvDQzqdUKiINy1GdIJxmwEMm5MErO6xNI0wbaqr4qkg3oNTJfyANN0NWfDChnjQfRBK1xSMlwTOWlAjLX9rOPDDSr6M8wiLhOarB7SVPvzU3HnwVfjRTNQCGP+2BSMdN+FTgikPZVmAmFs1dCU= X-MS-TrafficTypeDiagnostic: BLUPR05MB1923: X-Microsoft-Exchange-Diagnostics: 1; BLUPR05MB1923; 20:m9JnbNS29Srxo2rc5nbXSZ+Do9ezdbCNvLcF/fCrigtTqtS7GEVNhaDnUihe9z4lH5+357uOwbceGEiwyqS+BOxbSWiDUfmmuenlfgAJEaryQTySYYv2UkY+otngQWXA+Yc7qbV0DT7HGKtBImyq4Obm9/aw786ufccSoqhs3McR8Em6l/17VGBXmLOPexf6L6yxdGrP9vn32QWL4yW3M3k/9ggUfmyzXKb0KsK+auIt+LD+BiO3EvvOKjSDgAXS6GGdz030U17nBKe6yDgvprUB5PD1AJs1HoDPtajazjFiOKQ82bR75gTiQbz1tK0AkjjKROWVSgE1FB8w/uT8aghmjny5eqC26rbgYKMlzyvSBONlNIytBgAiMZY+MMFRAwf+ILhHgmCUYUqsOBdh9obHiHr5AjHcjAyESg5e+ENOcooFohFRWLHoYD2/4QfW150N0IGsHh75y1WF+TKg5ZVfgCR6GVp5UQxc57YwBkWb4SgLXRedMbubi/WeyxJE; 4:XnqKVeJL1CqD/nN4eTd70reKY97/pLFP6NoyYhxRKY4X87r4pJojATVep4wBw9PtkdhHhG6P/5fPu+3HIAP1jSDtFCsEdaKYfhrWKxMXPCtVTF56lVywmD6CGuM0NTqiHRonIWwVTy3u1ePDJiRsCtvsymX0qQ4k1/EAzHuqiSNFgtRbBK73aRvLt/V0A0Y6IvujXuxAidzN28jjLODmmBtTgr3NXjl1x83aiH9ucttdCM5huFus628NQMGZNQ0PMTahtYlE1fBoGXlJgqppbw== X-Microsoft-Antispam-PRVS: <BLUPR05MB1923BAC9D9B3D63DED5562F0A36D0@BLUPR05MB1923.namprd05.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(3231254)(944501410)(52105095)(10201501046)(149027)(150027)(6041310)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:BLUPR05MB1923; BCL:0; PCL:0; RULEID:; SRVR:BLUPR05MB1923; X-Forefront-PRVS: 0687389FB0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39840400004)(396003)(366004)(39380400002)(376002)(346002)(199004)(189003)(2361001)(2616005)(11346002)(51416003)(956004)(50466002)(107886003)(50226002)(48376002)(97736004)(446003)(478600001)(2906002)(476003)(86362001)(106356001)(81166006)(76176011)(66066001)(105586002)(3846002)(47776003)(6116002)(7696005)(486006)(81156014)(316002)(186003)(1076002)(53416004)(36756003)(25786009)(26005)(16526019)(103116003)(68736007)(54906003)(52116002)(6916009)(5660300001)(7736002)(69596002)(6666003)(305945005)(8676002)(16586007)(4326008)(386003)(2351001)(53936002)(8936002)(6486002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR05MB1923; H:bars.quantenna.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: quantenna.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR05MB1923; 23:4L7xsuZGzxNLi5SvmTY81nXMrxwhVk0lRG21ExkL6?= =?us-ascii?Q?PyKckP41v7mcWGkIpB/QfxMo1TL+a04swlxVqsW1UiOi7t8JloARd5KwG9au?= =?us-ascii?Q?LpaZyfSb5tGpRnQ11kR3qsrze8TeOjLHZt2JzAqG+SN+hdnEeqM8OdvsiTXO?= =?us-ascii?Q?sboueosokOs85EV5rF8pwZMT69d2pT/gi4qhN2DKL577KilqctWFEVZPdKo5?= =?us-ascii?Q?jC0QuEjEZ0YYm6tJ9kHqZc+5ZoDGFP/65odLl+a5CRoRXwr0R5kL2nh/l8MI?= =?us-ascii?Q?/p/XohRe45QPTUYUwksKEzvf4eiFMZkPfmikHcT2KIqGlT2l8ETIQ1E20qtm?= =?us-ascii?Q?/WZZXJs1jl8Hfp2pmEtUjL04qLzT5+D7w2kPRHtU0fu5yBn6NPaITmu+DS3w?= =?us-ascii?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iagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR05MB1923; 7:U0ZnjRci2FfxVwbt35T6LcJWJTT+CNPLKrIACzvA+xNHsCx5bpax8i/6WWDEuwguxyfktTf2Z/74WSwdtSeo8RXsStJ9w8FEIbiRqc68G0PMz0be7/LYESooUNDlH8oMVgBewtTZkcho9sQ9ZRhL58WTGvO7ooKwO+MvT/ND6Wp7UnQ1JNjOG9gUvrQraFqBbbc58iTfO3Y2mifTxlPBv7NdWN/cEXsolNODSsO2xgGwb8BDa4YDKfK5SDf+lXKE X-MS-Office365-Filtering-Correlation-Id: 67db7f37-03f3-40c4-c349-08d5c55bc7c1 X-OriginatorOrg: quantenna.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2018 12:00:31.7184 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 67db7f37-03f3-40c4-c349-08d5c55bc7c1 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a355dbce-62b4-4789-9446-c1d5582180ff X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR05MB1923 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 2089cb095283..1fcd94bf7c59 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c +++ b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c @@ -660,6 +660,8 @@ qtnf_disconnect(struct wiphy *wiphy, struct net_device *dev, if (vif->wdev.iftype != NL80211_IFTYPE_STATION) return -EOPNOTSUPP; + qtnf_scan_done(mac, true); + if (vif->sta_state == QTNF_STA_DISCONNECTED) return 0;