wlantest: Use MLO search for the STA in reassociation
FT over-the-DS might have created the new STA entry on another affiliated BSS during the FT Request/Response exchange, so use a wider search to locate the correct STA entry when processing the Reassociation Request/Response frames. Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
1ffabd697c
commit
4e8e515f92
1 changed files with 6 additions and 2 deletions
|
@ -1156,6 +1156,8 @@ static void rx_mgmt_reassoc_req(struct wlantest *wt, const u8 *data,
|
||||||
bss = bss_get(wt, mgmt->bssid);
|
bss = bss_get(wt, mgmt->bssid);
|
||||||
if (bss == NULL)
|
if (bss == NULL)
|
||||||
return;
|
return;
|
||||||
|
sta = sta_find_mlo(wt, bss, mgmt->sa);
|
||||||
|
if (!sta)
|
||||||
sta = sta_get(bss, mgmt->sa);
|
sta = sta_get(bss, mgmt->sa);
|
||||||
if (sta == NULL)
|
if (sta == NULL)
|
||||||
return;
|
return;
|
||||||
|
@ -1641,6 +1643,8 @@ static void rx_mgmt_reassoc_resp(struct wlantest *wt, const u8 *data,
|
||||||
bss = bss_get(wt, mgmt->bssid);
|
bss = bss_get(wt, mgmt->bssid);
|
||||||
if (bss == NULL)
|
if (bss == NULL)
|
||||||
return;
|
return;
|
||||||
|
sta = sta_find_mlo(wt, bss, mgmt->da);
|
||||||
|
if (!sta)
|
||||||
sta = sta_get(bss, mgmt->da);
|
sta = sta_get(bss, mgmt->da);
|
||||||
if (sta == NULL)
|
if (sta == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue