[PATCH 13/13] wpa_supplicant: Don't init WPA multi-link info for open connection

Andrei Otcheretianski andrei.otcheretianski at intel.com
Thu Nov 24 04:45:33 PST 2022


Otherwise it fails, as RSNE would be missing.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski at intel.com>
---
 wpa_supplicant/events.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 5cad35514b..6f49c2ed6d 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -3425,6 +3425,9 @@ static int wpa_sm_set_ml_info(struct wpa_supplicant *wpa_s)
 	const u8 *bss_rsn = NULL, *bss_rsnx = NULL;
 	int i;
 
+	if (wpa_s->key_mgmt == WPA_KEY_MGMT_NONE)
+		return 0;
+
 	os_memset(&drv_mlo, 0, sizeof(drv_mlo));
 	if (wpas_drv_get_sta_mlo_info(wpa_s, &drv_mlo)) {
 		wpa_dbg(wpa_s, MSG_INFO, "Failed to get MLO link info");
-- 
2.25.1




More information about the Hostap mailing list