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