1 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
2 Date: Wed, 6 Jul 2016 12:22:54 +0200
3 Subject: [PATCH] brcmfmac: respect hidden_ssid for AP interfaces
5 Content-Type: text/plain; charset=UTF-8
6 Content-Transfer-Encoding: 8bit
8 This was succesfully tested with 4366B1. A small workaround is needed
9 for the main interface otherwise it would stuck at the hidden state.
11 Signed-off-by: RafaÅ
\82 MiÅ
\82ecki <zajec5@gmail.com>
12 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
15 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
16 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
17 @@ -4586,6 +4586,15 @@ brcmf_cfg80211_start_ap(struct wiphy *wi
18 brcmf_err("SET SSID error (%d)\n", err);
22 + if (settings->hidden_ssid) {
23 + err = brcmf_fil_iovar_int_set(ifp, "closednet", 1);
25 + brcmf_err("closednet error (%d)\n", err);
30 brcmf_dbg(TRACE, "AP mode configuration complete\n");
31 } else if (dev_role == NL80211_IFTYPE_P2P_GO) {
32 err = brcmf_fil_iovar_int_set(ifp, "chanspec", chanspec);
33 @@ -4644,6 +4653,10 @@ static int brcmf_cfg80211_stop_ap(struct
37 + /* First BSS doesn't get a full reset */
38 + if (ifp->bsscfgidx == 0)
39 + brcmf_fil_iovar_int_set(ifp, "closednet", 0);
41 memset(&join_params, 0, sizeof(join_params));
42 err = brcmf_fil_cmd_data_set(ifp, BRCMF_C_SET_SSID,
43 &join_params, sizeof(join_params));