Skip to content

Commit

Permalink
wifi: wilc1000: Increase ASSOC response buffer
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Amisha Patel <amisha.patel@microchip.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230509172811.4953-1-amisha.patel@microchip.com
  • Loading branch information
Amisha Patel authored and Kalle Valo committed May 11, 2023
1 parent 9ce4bb0 commit 7acd695
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions drivers/net/wireless/microchip/wilc1000/hif.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ enum {
WILC_GET_CFG
};

#define WILC_MAX_ASSOC_RESP_FRAME_SIZE 256

struct rf_info {
u8 link_speed;
s8 rssi;
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/microchip/wilc1000/wlan_cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions drivers/net/wireless/microchip/wilc1000/wlan_if.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include <linux/netdevice.h>
#include "fw.h"

#define WILC_MAX_ASSOC_RESP_FRAME_SIZE 512

/********************************************
*
* Wlan Configuration ID
Expand Down

0 comments on commit 7acd695

Please sign in to comment.