aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/333-v4.20-0003-brcmfmac-increase-buffer-for-obtaining-firmware-capa.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/kernel/mac80211/patches/333-v4.20-0003-brcmfmac-increase-buffer-for-obtaining-firmware-capa.patch')
-rw-r--r--package/kernel/mac80211/patches/333-v4.20-0003-brcmfmac-increase-buffer-for-obtaining-firmware-capa.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/333-v4.20-0003-brcmfmac-increase-buffer-for-obtaining-firmware-capa.patch b/package/kernel/mac80211/patches/333-v4.20-0003-brcmfmac-increase-buffer-for-obtaining-firmware-capa.patch
new file mode 100644
index 0000000000..92a5e03d32
--- /dev/null
+++ b/package/kernel/mac80211/patches/333-v4.20-0003-brcmfmac-increase-buffer-for-obtaining-firmware-capa.patch
@@ -0,0 +1,28 @@
+From: Arend van Spriel <arend.vanspriel@broadcom.com>
+Date: Wed, 5 Sep 2018 09:48:59 +0200
+Subject: [PATCH] brcmfmac: increase buffer for obtaining firmware capabilities
+
+When obtaining the firmware capability a buffer is provided of 512
+bytes. However, if all features in firmware are supported the buffer
+needs to be 565 bytes as otherwise truncated information is retrieved
+from firmware. Increasing the buffer to 768 bytes on stack.
+
+Reviewed-by: Hante Meuleman <hante.meuleman@broadcom.com>
+Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>
+Reviewed-by: Franky Lin <franky.lin@broadcom.com>
+Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
+---
+ drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c
++++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c
+@@ -151,7 +151,7 @@ static void brcmf_feat_iovar_int_get(str
+ }
+ }
+
+-#define MAX_CAPS_BUFFER_SIZE 512
++#define MAX_CAPS_BUFFER_SIZE 768
+ static void brcmf_feat_firmware_capabilities(struct brcmf_if *ifp)
+ {
+ char caps[MAX_CAPS_BUFFER_SIZE];