323-v4.13-0001-brcmfmac-remove-setting-IBSS-mode-when-stopping-AP.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. From 9029679f66d976f8c720eb03c4898274803c9923 Mon Sep 17 00:00:00 2001
  2. From: Chi-hsien Lin <Chi-Hsien.Lin@cypress.com>
  3. Date: Thu, 18 May 2017 17:22:19 +0800
  4. Subject: [PATCH] brcmfmac: remove setting IBSS mode when stopping AP
  5. Upon stopping an AP interface the driver disable INFRA mode effectively
  6. setting the interface in IBSS mode. However, this may affect other
  7. interfaces running in INFRA mode. For instance, if user creates and stops
  8. hostap daemon on virtual interface, then association cannot work on
  9. primary interface because default BSS has been set to IBSS mode in
  10. firmware side. The IBSS mode should be set when cfg80211 changes the
  11. interface.
  12. Reviewed-by: Wright Feng <wright.feng@cypress.com>
  13. Signed-off-by: Chi-hsien Lin <Chi-Hsien.Lin@cypress.com>
  14. [kvalo@codeaurora.org: rephased commit log based on discussion]
  15. Signed-off-by: Wright Feng <wright.feng@cypress.com>
  16. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  17. ---
  18. drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 3 ---
  19. 1 file changed, 3 deletions(-)
  20. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
  21. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
  22. @@ -4676,9 +4676,6 @@ static int brcmf_cfg80211_stop_ap(struct
  23. err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_AP, 0);
  24. if (err < 0)
  25. brcmf_err("setting AP mode failed %d\n", err);
  26. - err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_INFRA, 0);
  27. - if (err < 0)
  28. - brcmf_err("setting INFRA mode failed %d\n", err);
  29. if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_MBSS))
  30. brcmf_fil_iovar_int_set(ifp, "mbss", 0);
  31. brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_REGULATORY,