Received: by 10.213.65.68 with SMTP id h4csp1797041imn; Mon, 19 Mar 2018 13:31:35 -0700 (PDT) X-Google-Smtp-Source: AG47ELtkccZgakVcD/ytNYcDw7X8j/aMiGDm/Zqx+/hpwAcmaXvbJ1VWtoA768t22fQuzq53RfPI X-Received: by 10.98.87.212 with SMTP id i81mr11486473pfj.197.1521491495767; Mon, 19 Mar 2018 13:31:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521491495; cv=none; d=google.com; s=arc-20160816; b=yz1rdNcqVtiCBbGC43DsJQbFMKVprIuYwbd+anxivA6mNk6iTtF3XTekWT95dLCfyL ZpsdVZUJD6lieD0xAUlD2kcKdEe9qY1Baq4uL8Vuf4m+f7PGlsolNNWS3B0/ZlTCrjfS 7oHcwfZF+265zvjggBt2dGfNCSHzUBebGaBs4r7yDFdQH6Vmu8ZYtw9vmCCpjnrQxYWT n2+YlEeD9jp4OTwiUJ5MjwnsTvH/lHjR3AL6OSl097sUs4rqrN0+aKrE0g7QJzGQUJ4Q tw5wBkoB4aAqGoAZ9EJPlHABp4h0Cncmff/Lkuot6rwy27WvlkX/sMy1PsO52nOQwTRg D8MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=l3tM1sLibZj3CHp62HFKhGxu5oVf4qFfY6TEMoV0gng=; b=HEcJHRqzkZyzP7yQSq4rNwTmR4+mFWSMWRS6wA3E0OL6xWPAUkdCRHqrlYWsM9C3AD 192Kn3iCoNHfZFKci8i1o9XAdt9p65sr/ysADSFW+XQWc2PxjgmzxmQjP25jZ+iYr4C6 oxDEgRyYZT6TCBpAKOtzlzRbo+OWGmw60jv+3akKUORULHZmlZVS6afm2T80bBjrKXgb 74DBW0jtfMs7XMYrYzEoHAM/e2YAVxQAFjL8fLDDokJW7GLWratwWgcFZSR74Fhm6UIz p5swM2ZOaJYQKYzLOJXxnbKK6p3Mzbn4rIB2NfgPey7OiqPQGZcjbYpbDBSYUpI3QQ0Y E9mQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x6si31552pge.286.2018.03.19.13.30.51; Mon, 19 Mar 2018 13:31:35 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935699AbeCSU1m (ORCPT + 99 others); Mon, 19 Mar 2018 16:27:42 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:43640 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030570AbeCSSN3 (ORCPT ); Mon, 19 Mar 2018 14:13:29 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id ED1AAD64; Mon, 19 Mar 2018 18:13:28 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mohammed Shafi Shajakhan , Kalle Valo , Sasha Levin Subject: [PATCH 4.4 007/134] ath10k: fix a warning during channel switch with multiple vaps Date: Mon, 19 Mar 2018 19:04:50 +0100 Message-Id: <20180319171850.177736568@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319171849.024066323@linuxfoundation.org> References: <20180319171849.024066323@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ 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 Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/ath/ath10k/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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 ath1 lockdep_assert_held(&ar->data_lock); WARN_ON(ctx && vifs); - WARN_ON(vifs && n_vifs != 1); + WARN_ON(vifs && !n_vifs); /* 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