331-v4.18-0004-brcmfmac-set-WIPHY_FLAG_HAVE_AP_SME-flag.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. From 1204aa17f3b4f63e67ac9b7c9afa9496485969c5 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
  3. Date: Thu, 10 May 2018 15:21:39 +0200
  4. Subject: [PATCH] brcmfmac: set WIPHY_FLAG_HAVE_AP_SME flag
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. brcmfmac is a FullMAC driver and it implements/uses cfg80211 interface
  9. for stations management. At the same time it doesn't receive or pass up
  10. management frames.
  11. This flag indicates that authenticator doesn't have to subscribe to or
  12. handle management frames. Some authenticators (e.g. hostapd) were
  13. working with brcmfmac thanks to some extra assumptions. This commit
  14. clears up the situation.
  15. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
  16. Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
  17. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  18. ---
  19. drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 1 +
  20. 1 file changed, 1 insertion(+)
  21. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
  22. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
  23. @@ -6490,6 +6490,7 @@ static int brcmf_setup_wiphy(struct wiph
  24. wiphy->flags |= WIPHY_FLAG_NETNS_OK |
  25. WIPHY_FLAG_PS_ON_BY_DEFAULT |
  26. + WIPHY_FLAG_HAVE_AP_SME |
  27. WIPHY_FLAG_OFFCHAN_TX |
  28. WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL;
  29. if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_TDLS))