wlantest: Do not update BSS entries for other AP MLDs in PTK cloning
The new PTK migth need to be copied to another MLO STA entry, but that operation should not modify the MLD MAC address of unrelated AP MLDs. Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
709d46da73
commit
770760454f
1 changed files with 3 additions and 2 deletions
|
@ -345,6 +345,9 @@ void sta_new_ptk(struct wlantest *wt, struct wlantest_sta *sta,
|
||||||
|
|
||||||
if (!match)
|
if (!match)
|
||||||
continue;
|
continue;
|
||||||
|
if (os_memcmp(sta->bss->mld_mac_addr,
|
||||||
|
osta->bss->mld_mac_addr, ETH_ALEN) != 0)
|
||||||
|
continue;
|
||||||
wpa_printf(MSG_DEBUG,
|
wpa_printf(MSG_DEBUG,
|
||||||
"Add PTK to another MLO STA entry " MACSTR
|
"Add PTK to another MLO STA entry " MACSTR
|
||||||
" (MLD " MACSTR " --> " MACSTR ") in BSS "
|
" (MLD " MACSTR " --> " MACSTR ") in BSS "
|
||||||
|
@ -358,8 +361,6 @@ void sta_new_ptk(struct wlantest *wt, struct wlantest_sta *sta,
|
||||||
sta_copy_ptk(osta, ptk);
|
sta_copy_ptk(osta, ptk);
|
||||||
os_memcpy(osta->mld_mac_addr, sta->mld_mac_addr,
|
os_memcpy(osta->mld_mac_addr, sta->mld_mac_addr,
|
||||||
ETH_ALEN);
|
ETH_ALEN);
|
||||||
os_memcpy(osta->bss->mld_mac_addr,
|
|
||||||
sta->bss->mld_mac_addr, ETH_ALEN);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue