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 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ath wifi: ath11k: fix wrong handling of CCMP256 and GCMP ciphers 2024-11-23 23:20:07 +01:00
atmel Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
broadcom wifi: brcmsmac: LCN PHY code is used for BCM4313 2G-only device 2024-11-23 23:20:06 +01:00
cisco Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cnss2 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cnss_genl Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cnss_prealloc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cnss_utils Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel wifi: iwlwifi: abort scan when rfkill on but device enabled 2024-11-23 23:20:45 +01:00
intersil Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
marvell wifi: mwifiex: duplicate static structs used in driver instances 2024-11-23 23:20:53 +01:00
mediatek wifi: mt76: replace skb_put with skb_put_zero 2024-10-04 20:09:30 -03:00
microchip wifi: wilc1000: fix ies_len type in connect path 2024-11-19 14:19:41 +01:00
qualcomm/qca6490 qcacld-3.0: Disable auto IRQ affinity feature 2024-11-17 17:44:53 +01:00
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 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scsc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
st wifi: cw1200: Avoid processing an invalid TIM IE 2024-11-23 23:20:44 +01:00
ti Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
zydas Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mac80211_hwsim.c wifi: mac80211_hwsim: fix clang-specific fortify warning 2024-11-18 11:43:12 +01:00
mac80211_hwsim.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ray_cs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ray_cs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rayctl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
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 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wl3501_cs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00