Skip to content

Commit 7ecc076

Browse files
cy-chihsiengregkh
authored andcommitted
brcmfmac: remove setting IBSS mode when stopping AP
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@cypress.com> Signed-off-by: Chi-hsien Lin <Chi-Hsien.Lin@cypress.com> [kvalo@codeaurora.org: rephased commit log based on discussion] Signed-off-by: Wright Feng <wright.feng@cypress.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Cc: Philipp Rosenberger <p.rosenberger@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent d27383f commit 7ecc076

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4295,9 +4295,6 @@ static int brcmf_cfg80211_stop_ap(struct wiphy *wiphy, struct net_device *ndev)
42954295
err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_AP, 0);
42964296
if (err < 0)
42974297
brcmf_err("setting AP mode failed %d\n", err);
4298-
err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_INFRA, 0);
4299-
if (err < 0)
4300-
brcmf_err("setting INFRA mode failed %d\n", err);
43014298
if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_MBSS))
43024299
brcmf_fil_iovar_int_set(ifp, "mbss", 0);
43034300
err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_REGULATORY,

0 commit comments

Comments
 (0)