1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/microchip/wilc1000
Jozef Hopko 39ab8fff62 wifi: wilc1000: fix ies_len type in connect path
Commit 205c50306a ("wifi: wilc1000: fix RCU usage in connect path")
made sure that the IEs data was manipulated under the relevant RCU section.
Unfortunately, while doing so, the commit brought a faulty implicit cast
from int to u8 on the ies_len variable, making the parsing fail to be
performed correctly if the IEs block is larger than 255 bytes. This failure
can be observed with Access Points appending a lot of IEs TLVs in their
beacon frames (reproduced with a Pixel phone acting as an Access Point,
which brough 273 bytes of IE data in my testing environment).

Fix IEs parsing by removing this undesired implicit cast.

Fixes: 205c50306a ("wifi: wilc1000: fix RCU usage in connect path")
Signed-off-by: Jozef Hopko <jozef.hopko@altana.com>
Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Acked-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20240701-wilc_fix_ies_data-v1-1-7486cbacf98a@bootlin.com
2024-07-03 16:49:53 +03:00
..
cfg80211.c Revert "wifi: wilc1000: convert list management to RCU" 2024-06-01 12:59:29 +03:00
cfg80211.h wifi: wilc1000: Remove unused declarations 2023-08-23 14:12:17 +03:00
fw.h wifi: wilc1000: add IGTK support 2022-05-30 14:18:00 +03:00
hif.c wifi: wilc1000: fix ies_len type in connect path 2024-07-03 16:49:53 +03:00
hif.h wifi: wilc1000: simplify wilc_scan() 2023-11-08 20:07:55 +02:00
Kconfig wilc1000: Add support for enabling CRC 2021-04-17 20:47:40 +03:00
Makefile wilc1000: use API version number info along with firmware filename 2020-07-14 20:52:27 +03:00
mon.c wifi: move from strlcpy with unused retval to strscpy 2022-09-02 11:47:22 +03:00
netdev.c Revert "wifi: wilc1000: convert list management to RCU" 2024-06-01 12:59:29 +03:00
netdev.h wifi: wilc1000: document SRCU usage instead of SRCU 2024-06-01 12:59:30 +03:00
sdio.c wifi: wilc1000: replace open-coded module_sdio_driver() 2024-04-05 11:59:38 +03:00
spi.c wifi: wilc1000: revert reset line logic flip 2024-02-21 20:56:45 +02:00
wlan.c Revert "wifi: wilc1000: convert list management to RCU" 2024-06-01 12:59:29 +03:00
wlan.h wifi: wilc1000: validate chip id during bus probe 2024-02-15 13:09:16 +02:00
wlan_cfg.c wifi: wilc1000: get correct length of string WID from received config packet 2022-07-27 15:58:10 +03:00
wlan_cfg.h wifi: wilc1000: Increase ASSOC response buffer 2023-05-11 15:53:44 +03:00
wlan_if.h wifi: wilc1000: Increase ASSOC response buffer 2023-05-11 15:53:44 +03:00