From: Jouni Malinen Date: Tue, 11 Mar 2014 12:59:15 +0000 (+0200) Subject: nl80211: Add debug print of KEY_DATA and KEY_SEQ X-Git-Tag: hostap_2_2~612 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e6ef73f188a1a0d7512fb206da9deac463e99c27;p=thirdparty%2Fhostap.git nl80211: Add debug print of KEY_DATA and KEY_SEQ While these were already available from elsewhere in the debug log, it is convenient to have the values also available at the location where the actual nl80211 command is issued. Signed-off-by: Jouni Malinen --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 9b9e66cfe..2d0284814 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -5609,12 +5609,15 @@ static int wpa_driver_nl80211_set_key(const char *ifname, struct i802_bss *bss, } else { nl80211_cmd(drv, msg, 0, NL80211_CMD_NEW_KEY); NLA_PUT(msg, NL80211_ATTR_KEY_DATA, key_len, key); + wpa_hexdump_key(MSG_DEBUG, "nl80211: KEY_DATA", key, key_len); NLA_PUT_U32(msg, NL80211_ATTR_KEY_CIPHER, wpa_alg_to_cipher_suite(alg, key_len)); } - if (seq && seq_len) + if (seq && seq_len) { NLA_PUT(msg, NL80211_ATTR_KEY_SEQ, seq_len, seq); + wpa_hexdump(MSG_DEBUG, "nl80211: KEY_SEQ", seq, seq_len); + } if (addr && !is_broadcast_ether_addr(addr)) { wpa_printf(MSG_DEBUG, " addr=" MACSTR, MAC2STR(addr));