[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20171116174214.771474258@linuxfoundation.org>
Date: Thu, 16 Nov 2017 18:42:55 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
stable@...r.kernel.org, Wright Feng <wright.feng@...ress.com>,
Chi-hsien Lin <Chi-Hsien.Lin@...ress.com>,
Kalle Valo <kvalo@...eaurora.org>,
Philipp Rosenberger <p.rosenberger@...utronix.de>
Subject: [PATCH 4.9 36/39] brcmfmac: remove setting IBSS mode when stopping AP
4.9-stable review patch. If anyone has any objections, please let me know.
------------------
From: Chi-hsien Lin <Chi-Hsien.Lin@...ress.com>
commit 9029679f66d976f8c720eb03c4898274803c9923 upstream.
Upon stopping an AP interface the driver disable INFRA mode effectively
setting the interface in IBSS mode. However, this may affect other
interfaces running in INFRA mode. For instance, if user creates and stops
hostap daemon on virtual interface, then association cannot work on
primary interface because default BSS has been set to IBSS mode in
firmware side. The IBSS mode should be set when cfg80211 changes the
interface.
Reviewed-by: Wright Feng <wright.feng@...ress.com>
Signed-off-by: Chi-hsien Lin <Chi-Hsien.Lin@...ress.com>
[kvalo@...eaurora.org: rephased commit log based on discussion]
Signed-off-by: Wright Feng <wright.feng@...ress.com>
Signed-off-by: Kalle Valo <kvalo@...eaurora.org>
Cc: Philipp Rosenberger <p.rosenberger@...utronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 3 ---
1 file changed, 3 deletions(-)
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
@@ -4754,9 +4754,6 @@ static int brcmf_cfg80211_stop_ap(struct
err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_AP, 0);
if (err < 0)
brcmf_err("setting AP mode failed %d\n", err);
- err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_INFRA, 0);
- if (err < 0)
- brcmf_err("setting INFRA mode failed %d\n", err);
if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_MBSS))
brcmf_fil_iovar_int_set(ifp, "mbss", 0);
brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_REGULATORY,
Powered by blists - more mailing lists