blob: 0327d5e8f1037d1ce6b2130e01c42a465ee3e672 [file] [log] [blame]
From 13f84bce5e02c21e0915b5f4d46a02133237e847 Mon Sep 17 00:00:00 2001
From: Michael-CY Lee <michael-cy.lee@mediatek.com>
Date: Mon, 6 May 2024 18:20:52 +0800
Subject: [PATCH 083/126] mtk: hostapd: always do ML probe request before
authentication
The scan result might contain old information of an AP MLD, so a ML
probe might be necessary to update the scan result before the
authentication.
Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
---
wpa_supplicant/events.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 83b1dcc21..7b91ce988 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -1925,15 +1925,16 @@ static int wpa_supplicant_connect_ml_missing(struct wpa_supplicant *wpa_s,
if (wpa_bss_parse_basic_ml_element(wpa_s, selected, NULL,
&missing_links, ssid,
- &ap_mld_id) ||
- !missing_links)
+ &ap_mld_id))
return 0;
removed_links = wpa_bss_parse_reconf_ml_element(wpa_s, selected);
missing_links &= ~removed_links;
+ /* FIXME Always do ML probe for the sake of stability.
if (!missing_links)
return 0;
+ */
wpa_dbg(wpa_s, MSG_DEBUG,
"MLD: Doing an ML probe for missing links 0x%04x",
--
2.18.0