TDLS: Learn MLD link ID from TDLS Discovery Response

This is needed to be able to determine which link is used for TDLS setup
when the current association is with an AP MLD.

Signed-off-by: Jouni Malinen <quic_klokere@quicinc.com>
This commit is contained in:
Kiran Kumar Lokere 2023-02-09 00:25:30 -08:00 committed by Jouni Malinen
parent a41c8dbdd8
commit 626501434b
3 changed files with 101 additions and 0 deletions

View file

@ -4771,6 +4771,12 @@ static void wpas_event_rx_mgmt_action(struct wpa_supplicant *wpa_s,
wpa_dbg(wpa_s, MSG_DEBUG,
"TDLS: Received Discovery Response from " MACSTR,
MAC2STR(mgmt->sa));
if (wpa_s->valid_links &&
wpa_tdls_process_discovery_response(wpa_s->wpa, mgmt->sa,
&payload[1], plen - 1))
wpa_dbg(wpa_s, MSG_ERROR,
"TDLS: Discovery Response process failed for "
MACSTR, MAC2STR(mgmt->sa));
return;
}
#endif /* CONFIG_TDLS */