aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/security.c
diff options
context:
space:
mode:
authorAlexander Sverdlin <[email protected]>2024-08-23 13:15:20 +0000
committerKalle Valo <[email protected]>2024-08-27 07:49:26 +0000
commit6d30bb88f623526197c0e18a366e68a4254a2c83 (patch)
tree9e3ad4c8e6cd4390739dab4a8c99513f29ac7aae /rust/helpers/security.c
parentwifi: mac80211: free skb on error path in ieee80211_beacon_get_ap() (diff)
downloadkernel-6d30bb88f623526197c0e18a366e68a4254a2c83.tar.gz
kernel-6d30bb88f623526197c0e18a366e68a4254a2c83.zip
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: [email protected] Fixes: fe0a7776d4d1 ("wifi: wfx: fix possible NULL pointer dereference in wfx_set_mfp_ap()") Signed-off-by: Alexander Sverdlin <[email protected]> Reviewed-by: Jérôme Pouiller <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'rust/helpers/security.c')
0 files changed, 0 insertions, 0 deletions