wlantest: Search SPA using MLO aware find for FT Request/Response frame

This is needed to be able to find a previously added STA entry when
roaming using FT over-the-DS back to an AP MLD that was used previously.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2023-08-24 16:57:40 +03:00 committed by Jouni Malinen
parent 104aa291e5
commit 37c87efecf

View file

@ -2108,7 +2108,9 @@ static void rx_mgmt_action_ft_request(struct wlantest *wt,
return;
}
sta = sta_get(bss, spa);
sta = sta_find_mlo(wt, bss, spa);
if (!sta)
sta = sta_get(bss, spa);
if (!sta)
return;
@ -2177,7 +2179,9 @@ static void rx_mgmt_action_ft_response(struct wlantest *wt,
return;
sta->pmk_r1_len = sta->pmk_r0_len;
new_sta = sta_get(bss, spa);
new_sta = sta_find_mlo(wt, bss, spa);
if (!new_sta)
new_sta = sta_get(bss, spa);
if (!new_sta)
return;
os_memcpy(new_sta->pmk_r0, sta->pmk_r0, sta->pmk_r0_len);