]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Add debug print of KEY_DATA and KEY_SEQ
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 11 Mar 2014 12:59:15 +0000 (14:59 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 11 Mar 2014 12:59:15 +0000 (14:59 +0200)
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 <jouni@qca.qualcomm.com>
src/drivers/driver_nl80211.c

index 9b9e66cfe6b7359fd4d05fbe5a4bd5fd95e0eebd..2d02848143e0567869cc7b484fbec5422c118178 100644 (file)
@@ -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));