From: Jouni Malinen Date: Wed, 24 Mar 2021 22:30:04 +0000 (+0200) Subject: Fix WNM-Sleep Mode exit debug print of BIGTK X-Git-Tag: hostap_2_10~341 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a841a218b3a8fdce5eca47c68219b713726dba4;p=thirdparty%2Fhostap.git 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 --- 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; }