OSDN Git Service

brcmfmac: specify some features per firmware version
authorRafał Miłecki <rafal@milecki.pl>
Mon, 9 Jul 2018 04:55:43 +0000 (06:55 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 31 Jul 2018 07:22:16 +0000 (10:22 +0300)
commit1e591c56a65fbbcd5754a4210a0ef0402d5e5f33
treebf3ec4875ec69304fd3317fc906f3c14d310204f
parent6ade689711eeedb7070944b0764024c936730c9f
brcmfmac: specify some features per firmware version

Some features supported by firmware aren't advertised and there is no
way for a driver to query them. This includes e.g. monitor mode details.

Most firmwares support monitor interface but only the latest ones
/announce/ it with a "monitor" flag in the "cap" iovar. There isn't any
reliable detection method for older firmwares (BRCMF_C_MONITOR was tried
but "it only indicates the core part of the stack supports").

Similarly support for tagging monitor frames and building radiotap
headers can't be reliably detected for all firmwares.

This commit adds table that allows mapping features to firmware version.
It adds mappings for 43602a1 and 4366b1 firmwares from
linux-firmware.git. Both were confirmed to be passing monitor frames.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c