kernel_samsung_a53x/drivers/net/wireless
Sascha Hauer b610ebf3a2 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>
2024-11-23 23:20:53 +01:00
..
admtek
ath wifi: ath11k: fix wrong handling of CCMP256 and GCMP ciphers 2024-11-23 23:20:07 +01:00
atmel
broadcom wifi: brcmsmac: LCN PHY code is used for BCM4313 2G-only device 2024-11-23 23:20:06 +01:00
cisco
cnss2
cnss_genl
cnss_prealloc
cnss_utils
intel wifi: iwlwifi: abort scan when rfkill on but device enabled 2024-11-23 23:20:45 +01:00
intersil
marvell wifi: mwifiex: duplicate static structs used in driver instances 2024-11-23 23:20:53 +01:00
mediatek
microchip wifi: wilc1000: fix ies_len type in connect path 2024-11-19 14:19:41 +01:00
qualcomm/qca6490
quantenna wireless: Remove redundant 'flush_workqueue()' calls 2024-11-19 08:44:44 +01:00
ralink wifi: rt2x00: restart beacon queue when hardware reset 2024-11-18 12:13:11 +01:00
realtek wifi: rtlwifi: rtl8192de: Fix 5 GHz TX power 2024-11-19 14:19:10 +01:00
rsi
scsc
st wifi: cw1200: Avoid processing an invalid TIM IE 2024-11-23 23:20:44 +01:00
ti
zydas
Kconfig
mac80211_hwsim.c wifi: mac80211_hwsim: fix clang-specific fortify warning 2024-11-18 11:43:12 +01:00
mac80211_hwsim.h
Makefile
ray_cs.c
ray_cs.h
rayctl.h
rndis_wlan.c wireless: Remove redundant 'flush_workqueue()' calls 2024-11-19 08:44:44 +01:00
virt_wifi.c wifi: virt_wifi: don't use strlen() in const context 2024-11-23 23:20:08 +01:00
wl3501.h
wl3501_cs.c