Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

brcmfmac: Fix access point mode

Since commit 1204aa17f3b4 ("brcmfmac: set WIPHY_FLAG_HAVE_AP_SME flag")
the Raspberry Pi 3 A+ (BCM43455) isn't able to operate in AP mode with
hostapd (device_ap_sme=1 use_monitor=0):

brcmfmac: brcmf_cfg80211_stop_ap: setting AP mode failed -52

So add the missing mgmt_stypes for AP mode to fix this.

Fixes: 1204aa17f3b4 ("brcmfmac: set WIPHY_FLAG_HAVE_AP_SME flag")
Suggested-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

authored by

Stefan Wahren and committed by
Kalle Valo
861cb5eb 8c892df4

+10
+10
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
··· 6316 6316 .tx = 0xffff, 6317 6317 .rx = BIT(IEEE80211_STYPE_ACTION >> 4) | 6318 6318 BIT(IEEE80211_STYPE_PROBE_REQ >> 4) 6319 + }, 6320 + [NL80211_IFTYPE_AP] = { 6321 + .tx = 0xffff, 6322 + .rx = BIT(IEEE80211_STYPE_ASSOC_REQ >> 4) | 6323 + BIT(IEEE80211_STYPE_REASSOC_REQ >> 4) | 6324 + BIT(IEEE80211_STYPE_PROBE_REQ >> 4) | 6325 + BIT(IEEE80211_STYPE_DISASSOC >> 4) | 6326 + BIT(IEEE80211_STYPE_AUTH >> 4) | 6327 + BIT(IEEE80211_STYPE_DEAUTH >> 4) | 6328 + BIT(IEEE80211_STYPE_ACTION >> 4) 6319 6329 } 6320 6330 }; 6321 6331