From e6ef73f188a1a0d7512fb206da9deac463e99c27 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 11 Mar 2014 14:59:15 +0200 Subject: [PATCH] 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 --- src/drivers/driver_nl80211.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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));