diff options
author | Jouni Malinen <quic_jouni@quicinc.com> | 2023-03-27 17:26:41 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2023-03-27 17:26:41 +0300 |
commit | d423baa42aaf4e9d06e93e35eff97bbe1f392ec9 (patch) | |
tree | 979d238d891d19df5573778e26987b13c9375e03 | |
parent | 22c453ae3c1b313e72e4bf8fb559bafbc2eb9f2c (diff) | |
download | hostap-d423baa42aaf4e9d06e93e35eff97bbe1f392ec9.tar.gz |
wlantest: MLO aware STA entry search for unprotected Data frames
Find a STA entry based on MLO affiliated link addresses for the case
where an unprotected Data frame is being processed. This extends the
changes in commit 228420e2d9a8 ("wlantest: Find a STA entry based on MLO
affiliated link addresses") to cover the unencrypted case. This is
needed in particular for the Null frames used for managing the power
save state to avoid generating duplicate STA entries that can mess up
key information for the following frames.
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
-rw-r--r-- | wlantest/rx_data.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/wlantest/rx_data.c b/wlantest/rx_data.c index 0f88b9d37..2a03f5c9a 100644 --- a/wlantest/rx_data.c +++ b/wlantest/rx_data.c @@ -812,7 +812,11 @@ static void rx_data_bss(struct wlantest *wt, const struct ieee80211_hdr *hdr, bss = bss_get(wt, bssid); if (bss) { - struct wlantest_sta *sta = sta_get(bss, sta_addr); + struct wlantest_sta *sta; + + sta = sta_find_mlo(wt, bss, sta_addr); + if (!sta) + sta = sta_get(bss, sta_addr); if (sta) { if (qos) { |