kernel_samsung_a53x/drivers/net/wireless
Sascha Hauer 97d018d0f6 wifi: mwifiex: duplicate static structs used in driver instances
commit 27ec3c57fcadb43c79ed05b2ea31bc18c72d798a upstream.

mwifiex_band_2ghz and mwifiex_band_5ghz are statically allocated, but
used and modified in driver instances. Duplicate them before using
them in driver instances so that different driver instances do not
influence each other.

This was observed on a board which has one PCIe and one SDIO mwifiex
adapter. It blew up in mwifiex_setup_ht_caps(). This was called with
the statically allocated struct which is modified in this function.

Cc: stable@vger.kernel.org
Fixes: d6bffe8bb520 ("mwifiex: support for creation of AP interface")
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Acked-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20240809-mwifiex-duplicate-static-structs-v1-1-6837b903b1a4@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-01-19 15:00:20 +01:00
..
admtek
ath wifi: ath5k: add PCI ID for Arcadyan devices 2024-12-17 13:24:30 +01:00
atmel
broadcom wifi: brcmsmac: advertise MFP_CAPABLE to enable WPA3 2025-01-19 00:10:02 +01:00
cisco
cnss2
cnss_genl
cnss_prealloc
cnss_utils
intel wifi: ipw2x00: libipw_rx_any(): fix bad alignment 2024-12-17 13:24:31 +01:00
intersil wifi: p54: Use IRQF_NO_AUTOEN flag in request_irq() 2024-12-17 13:24:03 +01:00
marvell wifi: mwifiex: duplicate static structs used in driver instances 2025-01-19 15:00:20 +01:00
mediatek Revert "wifi: mt76: mt7915: fix rx filter setting for bfee functionality" 2024-11-24 00:23:30 +01:00
microchip Revert "wifi: wilc1000: fix potential RCU dereference issue in wilc_parse_join_bss_param" 2024-11-24 00:23:30 +01:00
qualcomm/qca6490
quantenna
ralink
realtek Revert "wifi: rtw88: always wait for both firmware loading attempts" 2024-11-24 00:23:31 +01:00
rsi
scsc net: wireless: scsc: Add support for NL80211_WPA_VERSION_3 2025-01-16 23:19:27 +01:00
st Revert "wifi: cw1200: Avoid processing an invalid TIM IE" 2024-11-24 00:23:53 +01:00
ti
zydas
Kconfig
mac80211_hwsim.c
mac80211_hwsim.h
Makefile
ray_cs.c
ray_cs.h
rayctl.h
rndis_wlan.c
virt_wifi.c Revert "wifi: virt_wifi: avoid reporting connection success with wrong SSID" 2024-11-24 00:23:56 +01:00
wl3501.h
wl3501_cs.c