338-v5.0-0006-brcmfmac-Fix-access-point-mode.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From 861cb5eb467f5e38dce1aabe4e8db379255bd89b Mon Sep 17 00:00:00 2001
  2. From: Stefan Wahren <stefan.wahren@i2se.com>
  3. Date: Wed, 12 Dec 2018 20:20:06 +0100
  4. Subject: [PATCH] brcmfmac: Fix access point mode
  5. Since commit 1204aa17f3b4 ("brcmfmac: set WIPHY_FLAG_HAVE_AP_SME flag")
  6. the Raspberry Pi 3 A+ (BCM43455) isn't able to operate in AP mode with
  7. hostapd (device_ap_sme=1 use_monitor=0):
  8. brcmfmac: brcmf_cfg80211_stop_ap: setting AP mode failed -52
  9. So add the missing mgmt_stypes for AP mode to fix this.
  10. Fixes: 1204aa17f3b4 ("brcmfmac: set WIPHY_FLAG_HAVE_AP_SME flag")
  11. Suggested-by: Arend van Spriel <arend.vanspriel@broadcom.com>
  12. Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
  13. Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
  14. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  15. ---
  16. .../wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 10 ++++++++++
  17. 1 file changed, 10 insertions(+)
  18. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
  19. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
  20. @@ -6271,6 +6271,16 @@ brcmf_txrx_stypes[NUM_NL80211_IFTYPES] =
  21. .tx = 0xffff,
  22. .rx = BIT(IEEE80211_STYPE_ACTION >> 4) |
  23. BIT(IEEE80211_STYPE_PROBE_REQ >> 4)
  24. + },
  25. + [NL80211_IFTYPE_AP] = {
  26. + .tx = 0xffff,
  27. + .rx = BIT(IEEE80211_STYPE_ASSOC_REQ >> 4) |
  28. + BIT(IEEE80211_STYPE_REASSOC_REQ >> 4) |
  29. + BIT(IEEE80211_STYPE_PROBE_REQ >> 4) |
  30. + BIT(IEEE80211_STYPE_DISASSOC >> 4) |
  31. + BIT(IEEE80211_STYPE_AUTH >> 4) |
  32. + BIT(IEEE80211_STYPE_DEAUTH >> 4) |
  33. + BIT(IEEE80211_STYPE_ACTION >> 4)
  34. }
  35. };