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 <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2014-03-11 14:59:15 +02:00 committed by Jouni Malinen
parent 8fc1f204df
commit e6ef73f188

View file

@ -5609,12 +5609,15 @@ static int wpa_driver_nl80211_set_key(const char *ifname, struct i802_bss *bss,
} else { } else {
nl80211_cmd(drv, msg, 0, NL80211_CMD_NEW_KEY); nl80211_cmd(drv, msg, 0, NL80211_CMD_NEW_KEY);
NLA_PUT(msg, NL80211_ATTR_KEY_DATA, key_len, 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, NLA_PUT_U32(msg, NL80211_ATTR_KEY_CIPHER,
wpa_alg_to_cipher_suite(alg, key_len)); 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); 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)) { if (addr && !is_broadcast_ether_addr(addr)) {
wpa_printf(MSG_DEBUG, " addr=" MACSTR, MAC2STR(addr)); wpa_printf(MSG_DEBUG, " addr=" MACSTR, MAC2STR(addr));