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