All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] brcmfmac: remove setting IBSS mode when stopping AP
@ 2017-05-18  9:22 Wright Feng
  2017-05-19  4:49 ` Kalle Valo
  2017-05-22 15:21 ` Kalle Valo
  0 siblings, 2 replies; 6+ messages in thread
From: Wright Feng @ 2017-05-18  9:22 UTC (permalink / raw)
  To: arend.vanspriel, franky.lin, hante.meuleman, kvalo
  Cc: linux-wireless, brcm80211-dev-list.pdl, wright.feng,
	Chi-hsien Lin

From: Chi-hsien Lin <Chi-Hsien.Lin@cypress.com>

Setting IBSS mode when stopping AP may affect functionality of INFRA
mode on another interface. 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@cypress.com>
Signed-off-by: Chi-hsien Lin <Chi-Hsien.Lin@cypress.com>
Signed-off-by: Wright Feng <wright.feng@cypress.com>
---
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
index 944b83c..ce2a5b6 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
@@ -4658,9 +4658,6 @@ static int brcmf_cfg80211_stop_ap(struct wiphy *wiphy, struct net_device *ndev)
 		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,
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread
* brcmfmac: remove setting IBSS mode when stopping AP
@ 2017-11-14  7:11 Philipp Rosenberger
  0 siblings, 0 replies; 6+ messages in thread
From: Philipp Rosenberger @ 2017-11-14  7:11 UTC (permalink / raw)
  To: stable; +Cc: Sebastian Siewior

Hi,

commit 9029679f66d976f8c720eb03c4898274803c9923 upstream.

the patch "brcmfmac: remove setting IBSS mode when stopping AP" fixes a
recurring warning[1] when we run our wifi in AP mode after we
stopped an AP on the same card.

We are using the 4.9 stable tree. But every kernel < 4.13 and >= 3.9 is
affected by this problem.

Best regards
Philipp

[1] The warning message with backtrace:
[  517.577475] brcmfmac: brcmf_update_bss_info: wl dtim_assoc failed (-23)
[  517.584567] ------------[ cut here ]------------
[  517.594906] WARNING: CPU: 0 PID: 963 at /home/ilu/src/linux/net/wireless/sme.c:738 __cfg80211_connect_result+0x2dc/0x400 [cfg80211]
[  517.610126] Modules linked in: brcmfmac brcmutil cfg80211
[  517.615752] CPU: 0 PID: 963 Comm: kworker/u2:2 Tainted: G        W       4.9.56-sde-00010-g3b9115e #18
[  517.627723] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[  517.634647] Workqueue: cfg80211 cfg80211_event_work [cfg80211]
[  517.642070] [<c010f270>] (unwind_backtrace) from [<c010c4f0>] (show_stack+0x10/0x14)
[  517.652696] [<c010c4f0>] (show_stack) from [<c011cab4>] (__warn+0xe8/0x100)
[  517.661193] [<c011cab4>] (__warn) from [<c011cb7c>] (warn_slowpath_null+0x20/0x28)
[  517.670507] [<c011cb7c>] (warn_slowpath_null) from [<bf02f6a4>] (__cfg80211_connect_result+0x2dc/0x400 [cfg80211])
[  517.682888] [<bf02f6a4>] (__cfg80211_connect_result [cfg80211]) from [<bf00564c>] (cfg80211_process_wdev_events+0x178/0x1f8 [cfg80211])
[  517.696985] [<bf00564c>] (cfg80211_process_wdev_events [cfg80211]) from [<bf0056f8>] (cfg80211_process_rdev_events+0x2c/0x60 [cfg80211])
[  517.711110] [<bf0056f8>] (cfg80211_process_rdev_events [cfg80211]) from [<bf00027c>] (cfg80211_event_work+0x14/0x1c [cfg80211])
[  517.724539] [<bf00027c>] (cfg80211_event_work [cfg80211]) from [<c01358cc>] (process_one_work+0x12c/0x518)
[  517.735875] [<c01358cc>] (process_one_work) from [<c0135cf0>] (worker_thread+0x38/0x5d8)
[  517.745234] [<c0135cf0>] (worker_thread) from [<c013b32c>] (kthread+0xf0/0x108)
[  517.754090] [<c013b32c>] (kthread) from [<c0108498>] (ret_from_fork+0x14/0x3c)
[  517.762967] ---[ end trace f68728a0d3053b54 ]---
[  517.770431] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-11-14  7:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-18  9:22 [PATCH] brcmfmac: remove setting IBSS mode when stopping AP Wright Feng
2017-05-19  4:49 ` Kalle Valo
2017-05-19  7:49   ` Arend van Spriel
2017-05-19  7:54     ` Kalle Valo
2017-05-22 15:21 ` Kalle Valo
  -- strict thread matches above, loose matches on Subject: below --
2017-11-14  7:11 Philipp Rosenberger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.