Received: by 10.223.185.116 with SMTP id b49csp1118693wrg; Sat, 3 Mar 2018 16:07:28 -0800 (PST) X-Google-Smtp-Source: AG47ELuZq7x55VaASTXp3Zp10tZAgSe66nM8PjAdDsoqlnCC6pm5pCSIwhInY4Oql3hGmMdNMSs0 X-Received: by 10.99.110.133 with SMTP id j127mr8453079pgc.79.1520122048732; Sat, 03 Mar 2018 16:07:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520122048; cv=none; d=google.com; s=arc-20160816; b=kHCbBj7Ioggscr4kT3907f/RwOO+zU8A1hOQ46mqcwaolP4s9lCsAOCTE3usxnKVrv ShBoFWx0BRwyj2FYh3kGLC3V/9JTBExyP+pYtYeaKS8AQ3F0Yb/f9oUpQC5zn7Y1Kc4I HoVmCiJkrbOr/mVNWMHDIDnJSOCFJ7YhxBnVousywMupyoeYK4cZrAsOf5NmydOWEqNH oY2X8QTpZuBDiHjGcSouP2AHtzkSvBp8sgc8o4gowSMWRTEdEuvFJ1qnO07j/Wunl0z+ XIdLTiVjam0rtqPVJcGxIIttw56cQ6Ao+2Cmu8fDU4dNr1p4NKC59iQkpRyma4ln86z+ 7OeA== 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=/DYhRswmBzGg+rYJKspsW/mFF/8bPhEoBf5UoKK2fPk=; b=OKiaawW6Q+kzZEf7q/KAQaHwrSdUxxSSmfAP4A8xzQh21V172PM7kh/7gNCaYvJHCB n7Vs4M0GPRWYDX7sSKGCTHrlvrg6eiQcQor3ekZeWZfs+LHaKuqq5QESlH3MZI5RGo0d iJZYQ+eXqYKOFqvUODE/iL/PEIqzDSfRsM/M3M/29xhJw5BrmgYDUu3IUsQF+1tk/GBP A0Gz9/djAdq+aV9xUKZMoyrp6OaHI570mBxJl1M52EJkhrrraXXhmsFgVZn52zbAZFRq OMA4LeYnVFyIuVv6iA7VCpOy+NzCDPbjh33hIqCQBxneqDA0imVe8maeGy0GEcnh+8Ul K/qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=lknn8ZxM; 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 c22si7501571pfl.371.2018.03.03.16.07.14; Sat, 03 Mar 2018 16:07:28 -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=lknn8ZxM; 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 S933815AbeCDAGS (ORCPT + 99 others); Sat, 3 Mar 2018 19:06:18 -0500 Received: from mail-bn3nam01on0111.outbound.protection.outlook.com ([104.47.33.111]:54931 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933626AbeCCWbN (ORCPT ); Sat, 3 Mar 2018 17:31:13 -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=/DYhRswmBzGg+rYJKspsW/mFF/8bPhEoBf5UoKK2fPk=; b=lknn8ZxMR5CRwgd5IFR5QWfIa10QrxvFsQuuu56DAeMqnvRjwLF/MuKVgZ6V7W+2SMtQ9T6lHCsR8OqZVz/CTJ+JJ8taBteMr5V+YY39qmB+cxJMOxIzPpITZawGseiA4e92SD2L486cQtdzpv9LZo/O8TWGLQswtlcKrJQG/k4= Received: from MW2PR2101MB1034.namprd21.prod.outlook.com (52.132.149.10) by MW2PR2101MB0970.namprd21.prod.outlook.com (52.132.146.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.567.3; Sat, 3 Mar 2018 22:31:07 +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:31:07 +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.9 017/219] ath10k: fix a warning during channel switch with multiple vaps Thread-Topic: [PATCH AUTOSEL for 4.9 017/219] ath10k: fix a warning during channel switch with multiple vaps Thread-Index: AQHTsz7lPIobGbjG+kO+5AlwuwG/9Q== Date: Sat, 3 Mar 2018 22:28:05 +0000 Message-ID: <20180303222716.26640-17-alexander.levin@microsoft.com> References: <20180303222716.26640-1-alexander.levin@microsoft.com> In-Reply-To: <20180303222716.26640-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;MW2PR2101MB0970;7:9aNxgZv3Ng8OHHxUyxWsvuNcrHOXxsqEMbTloGyxe4itI6x8gdqex5eSa8I+AAU5afg1sOEsFFy+COmsmiOi8y/o9d81kt8TyNXSj2iNRdVGw4fDGwXQk0IJUgCU0xc+hkGr/rMb4IxsBR17Jf+aze18RVbsvmEWI6EXsYJ5+pb43jSNsqxhrMBi4MKXvTVmzjwuyHUksOayZEJGd2CK6J4ecprZnXS4Awi6ogMGtK01ImEMX9U568zEjd0jop04 x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: e751eb6c-ba02-46f3-b909-08d581567515 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(3008032)(2017052603307)(7193020);SRVR:MW2PR2101MB0970; x-ms-traffictypediagnostic: MW2PR2101MB0970: 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)(93006095)(93001095)(10201501046)(3002001)(3231220)(944501244)(52105095)(6055026)(61426038)(61427038)(6041288)(20161123562045)(20161123558120)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:MW2PR2101MB0970;BCL:0;PCL:0;RULEID:;SRVR:MW2PR2101MB0970; x-forefront-prvs: 0600F93FE1 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(39380400002)(366004)(396003)(39860400002)(346002)(199004)(189003)(86362001)(110136005)(4326008)(6506007)(14454004)(99286004)(8936002)(1076002)(36756003)(2906002)(102836004)(76176011)(25786009)(6486002)(316002)(478600001)(3280700002)(107886003)(186003)(54906003)(26005)(81166006)(7736002)(8676002)(6512007)(81156014)(305945005)(72206003)(59450400001)(6436002)(53936002)(6116002)(86612001)(68736007)(3846002)(2950100002)(3660700001)(10290500003)(22452003)(10090500001)(2900100001)(106356001)(2501003)(66066001)(97736004)(5660300001)(5250100002)(105586002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:MW2PR2101MB0970;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: AhdLrBht1j7PXhLXpwm5MlERdx9zoyM4RFaq9OmcAX+CyDUgOq32gw/2Ahh0BrbcA78oJhZbIpcmJYeBJxh9qU5OKmVJBJPIgRDcmZgkR3iEcen7e6c0BDyp5V5rDAXhENTHprUF64pnrU19RfAFPpb+Epni75fBC+u9X9hkjd0= 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: e751eb6c-ba02-46f3-b909-08d581567515 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Mar 2018 22:28:05.2600 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR2101MB0970 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 17ab8efdac35..696b90270615 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -7070,7 +7070,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