Received: by 10.223.185.116 with SMTP id b49csp1092944wrg; Sat, 3 Mar 2018 15:20:53 -0800 (PST) X-Google-Smtp-Source: AG47ELu+WdXfaf2Y5vCAYgnAEMTgZt7jM+DrplcAtS4npTnKkLlPvAdaXqsIJYo7+p+N4Ne+85VM X-Received: by 2002:a17:902:983:: with SMTP id 3-v6mr9128113pln.278.1520119253573; Sat, 03 Mar 2018 15:20:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520119253; cv=none; d=google.com; s=arc-20160816; b=g8PptV+pCz0j/QY2y6peQmBMLCX8bH/jaEzIA1J2lwtoMavq+YmFTLcOia9sgC6wKo cZxXackMgrZd1vAJZq6yUVgGypQ2m5JIEbFMikt0/fQO6R545GrH87V2pfGskRg/fZoT bhd7uyMRrLbPiEOrbejME4WEbrmA5pgXijjcdbP5H5XKixW029sLBmtdB9eWa06dWL8n +erXJdkvmaDIgUHjH254WQcjzh0ad9yRuQb/JJfXbG0KGMjlZz16LbaKPNzjmVZPKHC1 ktgRQfcPNuJ+ruysLdHTn/9U4Ednfc5DZ/dH+XvpE/qOe+vPrbHyY+4H0ikxLhgGgL5Z ykbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=6sZ8nLzrBuC4EEJv6+JH9IlRrRE+Bk39uw/6oe/JHzI=; b=vs9ZCaQdwv82I32SVAr7xHdKQo7C1QudHha3FsaQ+JiqsJ2n+VN+rS6vYB2N6Qahfe NO1uZ52GLU4kUNr8dVQLfmjgiAMMDwjrtwORsyD5n3jw0ojFstCC5BrrW9TwkbaZ/GrX bg2rSoTkpkArB0bSxlKM17yla6/DhzpP9B0DkorOOkKzdYje8gnOmxtQP/1d9ybq0B2k X9JvfIspe2KYxOXWOKoPanO4ZFyxa3l268xVpOY1usm2vG7IXJcvTu03HrN8w/Q+UXaY 8/H9OvygnfUInqVfzXf1kSAtzommBp/7xWoXWRW01H72stmYRsS6wB5aMbqlOSzFwo0M WlIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=FO62udmx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e16si7468396pfd.6.2018.03.03.15.20.39; Sat, 03 Mar 2018 15:20:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@microsoft.com header.s=selector1 header.b=FO62udmx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934826AbeCCWiD (ORCPT + 99 others); Sat, 3 Mar 2018 17:38:03 -0500 Received: from mail-co1nam03on0134.outbound.protection.outlook.com ([104.47.40.134]:45128 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934420AbeCCWh6 (ORCPT ); Sat, 3 Mar 2018 17:37:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=6sZ8nLzrBuC4EEJv6+JH9IlRrRE+Bk39uw/6oe/JHzI=; b=FO62udmxc9XD2orj1vtEuEftsP9e17jW13DJMoxfxTGGBJnEsfd7eztnyQTk8N7SKUftxT4FC4KsLD6JNFNCd0l796mHkF+mWAJjyos5J7RqCY4NOFQ3y2UdigFQfSoecu2IsYQtA1GPKgIAYqhbLTzAQzG1tYThG9Cp2YS0OuY= Received: from MW2PR2101MB1034.namprd21.prod.outlook.com (52.132.149.10) by MW2PR2101MB1100.namprd21.prod.outlook.com (52.132.149.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.567.2; Sat, 3 Mar 2018 22:37:55 +0000 Received: from MW2PR2101MB1034.namprd21.prod.outlook.com ([fe80::1d56:338f:e2b:cec0]) by MW2PR2101MB1034.namprd21.prod.outlook.com ([fe80::1d56:338f:e2b:cec0%3]) with mapi id 15.20.0567.006; Sat, 3 Mar 2018 22:37:55 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Mohammed Shafi Shajakhan , Kalle Valo , Sasha Levin Subject: [PATCH AUTOSEL for 4.4 007/115] ath10k: fix a warning during channel switch with multiple vaps Thread-Topic: [PATCH AUTOSEL for 4.4 007/115] ath10k: fix a warning during channel switch with multiple vaps Thread-Index: AQHTsz9I63Ym+8EJwUSIKTTZKR4dUQ== Date: Sat, 3 Mar 2018 22:30:51 +0000 Message-ID: <20180303223010.27106-7-alexander.levin@microsoft.com> References: <20180303223010.27106-1-alexander.levin@microsoft.com> In-Reply-To: <20180303223010.27106-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MW2PR2101MB1100;7:Nhq0J/ziOfEpaYwWeS9wRXr64QfRPVEhCm+F0vCwm7dfINHBFkZLJDba/BJDLWBOspDhDhHgvQ8tFMuYY55v4SWX4RCsQwERYCrRp+p34r8rnvsXEwKEE3i5fmk1O0hHzXx64oJEB8myMndbVAxIAo9ZGeLCzs3fDJcGgnUQh9D2zCGEAHZYq00SwPqgi545B1mEFW5He4iN6IFNe1628pSfE/j5myO2Y+5fqNv8NMXA2O2qBjQjqeEAiUK1iKb1 x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 790dbcac-b5a9-447a-7f52-08d581576831 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(3008032)(2017052603307)(7193020);SRVR:MW2PR2101MB1100; x-ms-traffictypediagnostic: MW2PR2101MB1100: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040501)(2401047)(5005006)(8121501046)(10201501046)(3002001)(3231220)(944501244)(52105095)(93006095)(93001095)(6055026)(61426038)(61427038)(6041288)(20161123560045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:MW2PR2101MB1100;BCL:0;PCL:0;RULEID:;SRVR:MW2PR2101MB1100; x-forefront-prvs: 0600F93FE1 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(376002)(39860400002)(396003)(366004)(346002)(199004)(189003)(22452003)(97736004)(7736002)(5250100002)(105586002)(2906002)(6506007)(72206003)(66066001)(59450400001)(4326008)(305945005)(10290500003)(186003)(3280700002)(102836004)(2950100002)(6666003)(2501003)(478600001)(26005)(2900100001)(10090500001)(53936002)(8676002)(25786009)(81166006)(81156014)(54906003)(86362001)(6436002)(106356001)(110136005)(68736007)(36756003)(316002)(6512007)(5660300001)(107886003)(8936002)(1076002)(6486002)(3660700001)(99286004)(76176011)(3846002)(86612001)(14454004)(6116002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:MW2PR2101MB1100;H:MW2PR2101MB1034.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 8aGBCefC8mBKujQomFpzTGt2lcDjPXja9M+698+sLM67khZioaaiyvptG23UOvoB7mheikQKVOK7vYb5vsYwuq0IlytM+xHwndwFPEHtOqU1+ysT6WOjmxARMuw9WEdxNZL24A7GkyuU03cQ0pf3MixLn0AOdsF5naAbRtoGC5o= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 790dbcac-b5a9-447a-7f52-08d581576831 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Mar 2018 22:30:51.1665 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR2101MB1100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mohammed Shafi Shajakhan [ Upstream commit c73f8c00330f59ce9b1ace9ff698aca83390d358 ] Doing a channel switch via hostapd_cli seems to update the new channel context for each VAP's appropriately as below in 'ath10k_mac_update_vif_chan', hence we can safely suppress the warning that shows up during this operation and dump the warning only if no vaps are available for channel switch hostapd_cli -i wlan0 chan_switch 5 5200 OK ath10k_pci : mac chanctx switch n_vifs 3 mode 1 ath10k_pci : mac chanctx switch vdev_id 2 freq 5180->5200 width 0->0 ath10k_pci : mac chanctx switch vdev_id 1 freq 5180->5200 width 0->0 ath10k_pci : mac chanctx switch vdev_id 0 freq 5180->5200 width 0->0 Call Trace: WARNING: backports-20161201-3.14.77-9ab3068/drivers/net/wireless/ath/ath10k= /mac.c:7126 [] (warn_slowpath_null) from [] (ath10k_reconfig_complete+0xe4/0x25c [ath10k_core]) [] (ath10k_reconfig_complete [ath10k_core]) [] (ath10k_mac_vif_ap_csa_work+0x214/0x370 [ath10k_core]) [] (ath10k_mac_op_change_chanctx+0x108/0x128 [ath10k_core]) [] (ieee80211_recalc_chanctx_min_def+0x30c/0x430 [mac80211]) [] (ieee80211_recalc_smps_chanctx+0x2ec/0x840 [mac80211]) [] (ieee80211_vif_use_reserved_context+0x7c/0xf8 [mac80211]) [] (ieee80211_vif_use_reserved_context [mac80211]) [] (ieee80211_csa_finalize_work+0x5c/0x88 [mac80211]) Fixes: d7bf4b4aba05 ("ath10k: fix ar->rx_channel updating logic") Signed-off-by: Mohammed Shafi Shajakhan Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath10k/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/a= th/ath10k/mac.c index bed8d89fe3a0..d5c9ca47219c 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -6427,7 +6427,7 @@ ath10k_mac_update_rx_channel(struct ath10k *ar, lockdep_assert_held(&ar->data_lock); =20 WARN_ON(ctx && vifs); - WARN_ON(vifs && n_vifs !=3D 1); + WARN_ON(vifs && !n_vifs); =20 /* FIXME: Sort of an optimization and a workaround. Peers and vifs are * on a linked list now. Doing a lookup peer -> vif -> chanctx for each --=20 2.14.1