Skip to contentSkip to conversation

wifi: wilc1000: Increase ASSOC response buffer

PATCH Superseded [email protected] 2 participants 2 messages May 8, 2023 – May 9, 2023 Microchip WILC1000 wifi driver

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wifi: wilc1000: Increase ASSOC response buffer

In recent access points, information element is longer as they include additional data which exceeds 256 bytes. To accommodate longer association response, increase the ASSOC response buffer.

---
 drivers/net/wireless/microchip/wilc1000/hif.h      | 2 --
 drivers/net/wireless/microchip/wilc1000/wlan_cfg.h | 2 +-
 drivers/net/wireless/microchip/wilc1000/wlan_if.h  | 2 ++
 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/wireless/microchip/wilc1000/hif.h +0 -2
index baa2881f4465..8e386db72e45 100644
@@ -30,8 +30,6 @@ enum {
 	WILC_GET_CFG
 };
 
-#define WILC_MAX_ASSOC_RESP_FRAME_SIZE   256
-
 struct rf_info {
 	u8 link_speed;
 	s8 rssi;
drivers/net/wireless/microchip/wilc1000/wlan_cfg.h +1 -1
index 614c5673f232..7038b74f8e8f 100644
@@ -30,7 +30,7 @@ struct wilc_cfg_str {
 struct wilc_cfg_str_vals {
 	u8 mac_address[7];
 	u8 firmware_version[129];
-	u8 assoc_rsp[256];
+	u8 assoc_rsp[WILC_MAX_ASSOC_RESP_FRAME_SIZE];
 };
 
 struct wilc_cfg {
drivers/net/wireless/microchip/wilc1000/wlan_if.h +2 -0
index df2f5a63bdf6..254a046e3b1b 100644
@@ -10,6 +10,8 @@
 #include <linux/netdevice.h>
 #include "fw.h"
 
+#define WILC_MAX_ASSOC_RESP_FRAME_SIZE 512
+
 /********************************************
  *
  *      Wlan Configuration ID
Signature · 1 line
2.25.1
#1 lore raw
Quoted 5 lines · <[email protected]> writes:

In recent access points, information element is longer as they include additional data which exceeds 256 bytes. To accommodate longer association response, increase the ASSOC response buffer.

From field is missing your full name and s-o-b is missing your last name. Please see the wiki link below for more information.

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches