BIGTK is set and configured to the driver on the transmitting BSS and
the non-transmitting BSSs use the BIGTK key from the Tx BSS, so use the
Tx BSS authenticator while fetching BIGTK PN in ieee80211w_kde_add() for
non-MLO cases.
For MLO cases this is already handled correctly in
wpa_auth_ml_get_key_info().
Signed-off-by: Sai Pratyusha Magam <smagam@qti.qualcomm.com>
bigtk.keyid[0] = gsm->GN_bigtk;
bigtk.keyid[1] = 0;
if (gsm->wpa_group_state != WPA_GROUP_SETKEYSDONE ||
- wpa_auth_get_seqnum(sm->wpa_auth, NULL, gsm->GN_bigtk, rsc) < 0)
+ wpa_auth_get_seqnum(wpa_auth, NULL, gsm->GN_bigtk, rsc) < 0)
os_memset(bigtk.pn, 0, sizeof(bigtk.pn));
else
os_memcpy(bigtk.pn, rsc, sizeof(bigtk.pn));