]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP: Fetch BIGTK PN from the transmitting BSS in non-MLO cases
authorSai Pratyusha Magam <smagam@qti.qualcomm.com>
Mon, 8 Dec 2025 00:16:48 +0000 (05:46 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 23 Jan 2026 11:45:31 +0000 (13:45 +0200)
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>
src/ap/wpa_auth.c

index 49268b21e2b348c90d89f392404680bf88fd88ff..b28675cb4755357c293383c5d9797398ce0e899c 100644 (file)
@@ -4211,7 +4211,7 @@ static u8 * ieee80211w_kde_add(struct wpa_state_machine *sm, u8 *pos)
        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));