]> git.baikalelectronics.ru Git - kernel.git/commit
brcmfmac: update STA info struct to the v5
authorRafał Miłecki <rafal@milecki.pl>
Thu, 28 Jun 2018 10:36:23 +0000 (12:36 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 4 Jul 2018 15:08:06 +0000 (18:08 +0300)
commit2fa34f69594ee2e54fe091a1a2bae6e0281c2e56
tree42bf0152c0de3e63ab00fdcb1deb9b4085522f3b
parentafd0d373b3bc9a444b57febfb5c09b2ba4afce2f
brcmfmac: update STA info struct to the v5

That struct is used when querying firmware for the STA. It seem is has
been changing during the time. Luckily its format seems to be backward
compatible starting with v2 (the only breakage was v1 -> v2).

The version that was supported by brcmfmac so far was v4. It was what
43602a1 and 4366b1 firmwares (7.35.177.56 and 10.10.69.3309 accordingly)
were using. It also seems to be used by early 4366c0 firmwares
(10.10.69.6908 and 10.10.69.69017).

The problem appears when switching to the 10.10.122.20 firmware. It uses
v5 and instead of falling back to v4 when submitted buffer isn't big
enough it fallbacks to the v3.

To receive all v4 specific info with the newest firmware we have to
submit a struct (buffer) that matches v5.

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