developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 1 | From 13f84bce5e02c21e0915b5f4d46a02133237e847 Mon Sep 17 00:00:00 2001 |
| 2 | From: Michael-CY Lee <michael-cy.lee@mediatek.com> |
| 3 | Date: Mon, 6 May 2024 18:20:52 +0800 |
| 4 | Subject: [PATCH 083/126] mtk: hostapd: always do ML probe request before |
| 5 | authentication |
| 6 | |
| 7 | The scan result might contain old information of an AP MLD, so a ML |
| 8 | probe might be necessary to update the scan result before the |
| 9 | authentication. |
| 10 | |
| 11 | Signed-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 | |
| 16 | diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c |
| 17 | index 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 | -- |
| 40 | 2.18.0 |
| 41 | |