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>
if (!match)
continue;
+ if (os_memcmp(sta->bss->mld_mac_addr,
+ osta->bss->mld_mac_addr, ETH_ALEN) != 0)
+ continue;
wpa_printf(MSG_DEBUG,
"Add PTK to another MLO STA entry " MACSTR
" (MLD " MACSTR " --> " MACSTR ") in BSS "
sta_copy_ptk(osta, ptk);
os_memcpy(osta->mld_mac_addr, sta->mld_mac_addr,
ETH_ALEN);
- os_memcpy(osta->bss->mld_mac_addr,
- sta->bss->mld_mac_addr, ETH_ALEN);
}
}
}