Commit e63410ac authored by Rafał Miłecki's avatar Rafał Miłecki Committed by Kalle Valo

brcmfmac: detect firmware support for radiotap monitor frames

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: default avatarRafał Miłecki <rafal@milecki.pl>
Signed-off-by: default avatarArend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 01f69dfa
...@@ -49,6 +49,7 @@ static const struct brcmf_feat_fwcap brcmf_fwcap_map[] = { ...@@ -49,6 +49,7 @@ static const struct brcmf_feat_fwcap brcmf_fwcap_map[] = {
{ BRCMF_FEAT_MCHAN, "mchan" }, { BRCMF_FEAT_MCHAN, "mchan" },
{ BRCMF_FEAT_P2P, "p2p" }, { BRCMF_FEAT_P2P, "p2p" },
{ BRCMF_FEAT_MONITOR, "monitor" }, { BRCMF_FEAT_MONITOR, "monitor" },
{ BRCMF_FEAT_MONITOR_FMT_RADIOTAP, "rtap" },
}; };
#ifdef DEBUG #ifdef DEBUG
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
* GSCAN: enhanced scan offload feature. * GSCAN: enhanced scan offload feature.
* FWSUP: Firmware supplicant. * FWSUP: Firmware supplicant.
* MONITOR: firmware can pass monitor packets to host. * MONITOR: firmware can pass monitor packets to host.
* MONITOR_FMT_RADIOTAP: firmware provides monitor packets with radiotap header
*/ */
#define BRCMF_FEAT_LIST \ #define BRCMF_FEAT_LIST \
BRCMF_FEAT_DEF(MBSS) \ BRCMF_FEAT_DEF(MBSS) \
...@@ -50,7 +51,8 @@ ...@@ -50,7 +51,8 @@
BRCMF_FEAT_DEF(MFP) \ BRCMF_FEAT_DEF(MFP) \
BRCMF_FEAT_DEF(GSCAN) \ BRCMF_FEAT_DEF(GSCAN) \
BRCMF_FEAT_DEF(FWSUP) \ BRCMF_FEAT_DEF(FWSUP) \
BRCMF_FEAT_DEF(MONITOR) BRCMF_FEAT_DEF(MONITOR) \
BRCMF_FEAT_DEF(MONITOR_FMT_RADIOTAP)
/* /*
* Quirks: * Quirks:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment