]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix WNM-Sleep Mode exit debug print of BIGTK
authorJouni Malinen <j@w1.fi>
Wed, 24 Mar 2021 22:30:04 +0000 (00:30 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 25 Mar 2021 22:21:18 +0000 (00:21 +0200)
Previous debug print used IGTK instead of BIGTK, so fix that to use the
correct key. Actual generation of the BIGTK subelement itself was using
the correct key, though, so this is only needed to fix the debug print.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/wpa_auth.c

index 6c791e26b0b758c9652e699b61b145f9cc448a1d..ef0595c572b0c418bd75e1237a0b1802eb9b4d82 100644 (file)
@@ -4267,7 +4267,7 @@ int wpa_wnmsleep_bigtk_subelem(struct wpa_state_machine *sm, u8 *pos)
        wpa_printf(MSG_DEBUG, "WNM: BIGTK Key ID %u in WNM-Sleep Mode exit",
                   gsm->GN_bigtk);
        wpa_hexdump_key(MSG_DEBUG, "WNM: BIGTK in WNM-Sleep Mode exit",
-                       gsm->IGTK[gsm->GN_bigtk - 6], len);
+                       gsm->BIGTK[gsm->GN_bigtk - 6], len);
 
        return pos - start;
 }