scan: MLD: Include SSID in ML probe request

This improves chances with APs that do not reply to Probe Request frame
with short SSID or with direct BSSID.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
Ilan Peer 2023-11-21 01:51:38 +02:00 committed by Jouni Malinen
parent b29ac99d52
commit e5917e2a5b

View file

@ -1925,6 +1925,23 @@ static int wpa_supplicant_connect_ml_missing(struct wpa_supplicant *wpa_s,
else
wpa_s->ml_probe_mld_id = 0;
if (ssid && ssid->ssid_len) {
os_free(wpa_s->ssids_from_scan_req);
wpa_s->num_ssids_from_scan_req = 0;
wpa_s->ssids_from_scan_req =
os_zalloc(sizeof(struct wpa_ssid_value));
if (wpa_s->ssids_from_scan_req) {
wpa_printf(MSG_DEBUG,
"MLD: ML probe: With direct SSID");
wpa_s->num_ssids_from_scan_req = 1;
wpa_s->ssids_from_scan_req[0].ssid_len = ssid->ssid_len;
os_memcpy(wpa_s->ssids_from_scan_req[0].ssid,
ssid->ssid, ssid->ssid_len);
}
}
wpa_s->ml_probe_links = missing_links;
wpa_s->normal_scans = 0;