diff options
Diffstat (limited to 'package/kernel/mac80211/patches/356-0004-brcmfmac-update-beacon-IE-after-bss-up-and-clear-whe.patch')
-rw-r--r-- | package/kernel/mac80211/patches/356-0004-brcmfmac-update-beacon-IE-after-bss-up-and-clear-whe.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/356-0004-brcmfmac-update-beacon-IE-after-bss-up-and-clear-whe.patch b/package/kernel/mac80211/patches/356-0004-brcmfmac-update-beacon-IE-after-bss-up-and-clear-whe.patch new file mode 100644 index 0000000..01024f1 --- /dev/null +++ b/package/kernel/mac80211/patches/356-0004-brcmfmac-update-beacon-IE-after-bss-up-and-clear-whe.patch @@ -0,0 +1,45 @@ +From f25ba69c638b24097840a96bd3caf5599f9a3616 Mon Sep 17 00:00:00 2001 +From: Wright Feng <wefe@cypress.com> +Date: Fri, 18 Nov 2016 09:59:52 +0800 +Subject: [PATCH] brcmfmac: update beacon IE after bss up and clear when AP + stopped + +Firmware doesn't update beacon/Probe Response vendor IEs correctly when +bss is down, so we move brcmf_config_ap_mgmt_ie after BSS up. And host +driver should clear IEs when AP stopped so that the IEs in host side will +be synced with in firmware side. + +Signed-off-by: Wright Feng <wright.feng@cypress.com> +Signed-off-by: Kalle Valo <kvalo@codeaurora.org> +--- + drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ++++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +@@ -4578,8 +4578,6 @@ brcmf_cfg80211_start_ap(struct wiphy *wi + brcmf_configure_opensecurity(ifp); + } + +- brcmf_config_ap_mgmt_ie(ifp->vif, &settings->beacon); +- + /* Parameters shared by all radio interfaces */ + if (!mbss) { + if ((supports_11d) && (is_11d != ifp->vif->is_11d)) { +@@ -4708,6 +4706,7 @@ brcmf_cfg80211_start_ap(struct wiphy *wi + WARN_ON(1); + } + ++ brcmf_config_ap_mgmt_ie(ifp->vif, &settings->beacon); + set_bit(BRCMF_VIF_STATUS_AP_CREATED, &ifp->vif->sme_state); + brcmf_net_setcarrier(ifp, true); + +@@ -4764,6 +4763,8 @@ static int brcmf_cfg80211_stop_ap(struct + err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_UP, 1); + if (err < 0) + brcmf_err("BRCMF_C_UP error %d\n", err); ++ ++ brcmf_vif_clear_mgmt_ies(ifp->vif); + } else { + bss_enable.bsscfgidx = cpu_to_le32(ifp->bsscfgidx); + bss_enable.enable = cpu_to_le32(0); |