2
0

304-v4.20-0002-brcmfmac-increase-buffer-for-obtaining-firmware-capa.patch 1.2 KB

12345678910111213141516171819202122232425262728
  1. From: Arend van Spriel <[email protected]>
  2. Date: Wed, 5 Sep 2018 09:48:59 +0200
  3. Subject: [PATCH] brcmfmac: increase buffer for obtaining firmware capabilities
  4. When obtaining the firmware capability a buffer is provided of 512
  5. bytes. However, if all features in firmware are supported the buffer
  6. needs to be 565 bytes as otherwise truncated information is retrieved
  7. from firmware. Increasing the buffer to 768 bytes on stack.
  8. Reviewed-by: Hante Meuleman <[email protected]>
  9. Reviewed-by: Pieter-Paul Giesberts <[email protected]>
  10. Reviewed-by: Franky Lin <[email protected]>
  11. Signed-off-by: Arend van Spriel <[email protected]>
  12. ---
  13. drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c | 2 +-
  14. 1 file changed, 1 insertion(+), 1 deletion(-)
  15. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c
  16. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c
  17. @@ -178,7 +178,7 @@ static void brcmf_feat_iovar_data_set(st
  18. ifp->fwil_fwerr = false;
  19. }
  20. -#define MAX_CAPS_BUFFER_SIZE 512
  21. +#define MAX_CAPS_BUFFER_SIZE 768
  22. static void brcmf_feat_firmware_capabilities(struct brcmf_if *ifp)
  23. {
  24. char caps[MAX_CAPS_BUFFER_SIZE];