brcmfmac: enlarge buffer size of caps to 512 bytes
authorWright Feng <wright.feng@cypress.com>
Mon, 11 Dec 2017 07:38:21 +0000 (15:38 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 14 Dec 2017 12:42:22 +0000 (14:42 +0200)
commit7762bb134e3b40e8ee2611365775b7432190a9c7
treea50c69c0df064e04085ff96e0176a16511d5752c
parent21a10846d09db3c5e3bdfb0be0fc7aa9fdc7000a
brcmfmac: enlarge buffer size of caps to 512 bytes

The buffer size of return of cap iovar is greater than 256 bytes in some
firmwares. For instance, the return size of cap iovar is 271 bytes in 4373
13.10.246.79 firmare. It makes feature capability parsing failed because
caps buffer is default value.
So we enlarge caps buffer size to 512 bytes and add the error print for
cap iovar error.

Signed-off-by: Wright Feng <wright.feng@cypress.com>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c