1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/silabs/wfx
Alexander Sverdlin 6d30bb88f6 wifi: wfx: repair open network AP mode
RSN IE missing in beacon is normal in open networks.
Avoid returning -EINVAL in this case.

Steps to reproduce:

$ cat /etc/wpa_supplicant.conf
network={
	ssid="testNet"
	mode=2
	key_mgmt=NONE
}

$ wpa_supplicant -iwlan0 -c /etc/wpa_supplicant.conf
nl80211: Beacon set failed: -22 (Invalid argument)
Failed to set beacon parameters
Interface initialization failed
wlan0: interface state UNINITIALIZED->DISABLED
wlan0: AP-DISABLED
wlan0: Unable to setup interface.
Failed to initialize AP interface

After the change:

$ wpa_supplicant -iwlan0 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED

Cc: stable@vger.kernel.org
Fixes: fe0a7776d4 ("wifi: wfx: fix possible NULL pointer dereference in wfx_set_mfp_ap()")
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Reviewed-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20240823131521.3309073-1-alexander.sverdlin@siemens.com
2024-08-27 10:49:26 +03:00
..
bh.c
bh.h
bus.h
bus_sdio.c wifi: wfx: drop driver owner initialization 2024-04-04 11:09:12 +02:00
bus_spi.c net: Replace all spi->chip_select and spi->cs_gpiod references with function call 2023-03-11 12:34:02 +00:00
data_rx.c
data_rx.h
data_tx.c wifi: wfx: fix case where rates are out of order 2023-10-09 09:54:14 +03:00
data_tx.h wifi: wfx: allow to send frames during ROC 2023-10-09 09:53:07 +03:00
debug.c
debug.h
fwio.c
fwio.h
hif_api_cmd.h
hif_api_general.h
hif_api_mib.h
hif_rx.c
hif_rx.h
hif_tx.c wifi: wfx: introduce hif_scan_uniq() 2023-10-09 09:53:07 +03:00
hif_tx.h wifi: wfx: introduce hif_scan_uniq() 2023-10-09 09:53:07 +03:00
hif_tx_mib.c
hif_tx_mib.h
hwio.c
hwio.h
Kconfig
key.c
key.h
main.c wifi: wfx: implement wfx_remain_on_channel() 2023-10-09 09:53:08 +03:00
main.h
Makefile
queue.c wifi: wfx: allow to send frames during ROC 2023-10-09 09:53:07 +03:00
queue.h wifi: wfx: allow to send frames during ROC 2023-10-09 09:53:07 +03:00
scan.c wifi: wfx: implement wfx_remain_on_channel() 2023-10-09 09:53:08 +03:00
scan.h wifi: wfx: implement wfx_remain_on_channel() 2023-10-09 09:53:08 +03:00
sta.c wifi: wfx: repair open network AP mode 2024-08-27 10:49:26 +03:00
sta.h wifi: mac80211: inform the low level if drv_stop() is a suspend 2024-06-26 10:25:46 +02:00
traces.h
wfx.h wifi: wfx: implement wfx_remain_on_channel() 2023-10-09 09:53:08 +03:00