diff options
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r-- | net/wireless/nl80211.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index aed6d2ad4c90..50ff82aa4890 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -6566,7 +6566,8 @@ void nl80211_michael_mic_failure(struct cfg80211_registered_device *rdev, | |||
6566 | if (addr) | 6566 | if (addr) |
6567 | NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, addr); | 6567 | NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, addr); |
6568 | NLA_PUT_U32(msg, NL80211_ATTR_KEY_TYPE, key_type); | 6568 | NLA_PUT_U32(msg, NL80211_ATTR_KEY_TYPE, key_type); |
6569 | NLA_PUT_U8(msg, NL80211_ATTR_KEY_IDX, key_id); | 6569 | if (key_id != -1) |
6570 | NLA_PUT_U8(msg, NL80211_ATTR_KEY_IDX, key_id); | ||
6570 | if (tsc) | 6571 | if (tsc) |
6571 | NLA_PUT(msg, NL80211_ATTR_KEY_SEQ, 6, tsc); | 6572 | NLA_PUT(msg, NL80211_ATTR_KEY_SEQ, 6, tsc); |
6572 | 6573 | ||