332-v4.19-0002-brcmfmac-detect-firmware-support-for-radiotap-monito.patch 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. From e63410ac65e0ead2040bbd3927c116889edf87e4 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
  3. Date: Sun, 24 Jun 2018 21:44:36 +0200
  4. Subject: [PATCH] brcmfmac: detect firmware support for radiotap monitor frames
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Depending on used build-time options some firmwares may already include
  9. radiotap header in passed monitor frames. Add a new feature flag to
  10. store info about it. It's needed for proper handling of received frames
  11. before passing them up.
  12. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
  13. Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
  14. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  15. ---
  16. drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c | 1 +
  17. drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.h | 4 +++-
  18. 2 files changed, 4 insertions(+), 1 deletion(-)
  19. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c
  20. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c
  21. @@ -48,6 +48,7 @@ static const struct brcmf_feat_fwcap brc
  22. { BRCMF_FEAT_MCHAN, "mchan" },
  23. { BRCMF_FEAT_P2P, "p2p" },
  24. { BRCMF_FEAT_MONITOR, "monitor" },
  25. + { BRCMF_FEAT_MONITOR_FMT_RADIOTAP, "rtap" },
  26. };
  27. #ifdef DEBUG
  28. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.h
  29. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.h
  30. @@ -32,6 +32,7 @@
  31. * WOWL_ARP_ND: ARP and Neighbor Discovery offload support during WOWL.
  32. * MFP: 802.11w Management Frame Protection.
  33. * MONITOR: firmware can pass monitor packets to host.
  34. + * MONITOR_FMT_RADIOTAP: firmware provides monitor packets with radiotap header
  35. */
  36. #define BRCMF_FEAT_LIST \
  37. BRCMF_FEAT_DEF(MBSS) \
  38. @@ -46,7 +47,8 @@
  39. BRCMF_FEAT_DEF(WOWL_GTK) \
  40. BRCMF_FEAT_DEF(WOWL_ARP_ND) \
  41. BRCMF_FEAT_DEF(MFP) \
  42. - BRCMF_FEAT_DEF(MONITOR)
  43. + BRCMF_FEAT_DEF(MONITOR) \
  44. + BRCMF_FEAT_DEF(MONITOR_FMT_RADIOTAP)
  45. /*
  46. * Quirks: