From 4a841a218b3a8fdce5eca47c68219b713726dba4 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 25 Mar 2021 00:30:04 +0200 Subject: [PATCH] Fix WNM-Sleep Mode exit debug print of BIGTK 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 --- src/ap/wpa_auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ap/wpa_auth.c b/src/ap/wpa_auth.c index 6c791e26b..ef0595c57 100644 --- a/src/ap/wpa_auth.c +++ b/src/ap/wpa_auth.c @@ -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; }