diff options
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-mac80211.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-mac80211.c b/drivers/net/wireless/iwlwifi/iwl-mac80211.c index 794b735264e6..55308b88faac 100644 --- a/drivers/net/wireless/iwlwifi/iwl-mac80211.c +++ b/drivers/net/wireless/iwlwifi/iwl-mac80211.c | |||
@@ -517,6 +517,17 @@ static int iwlagn_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, | |||
517 | return -EOPNOTSUPP; | 517 | return -EOPNOTSUPP; |
518 | } | 518 | } |
519 | 519 | ||
520 | switch (key->cipher) { | ||
521 | case WLAN_CIPHER_SUITE_TKIP: | ||
522 | key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC; | ||
523 | /* fall through */ | ||
524 | case WLAN_CIPHER_SUITE_CCMP: | ||
525 | key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; | ||
526 | break; | ||
527 | default: | ||
528 | break; | ||
529 | } | ||
530 | |||
520 | /* | 531 | /* |
521 | * We could program these keys into the hardware as well, but we | 532 | * We could program these keys into the hardware as well, but we |
522 | * don't expect much multicast traffic in IBSS and having keys | 533 | * don't expect much multicast traffic in IBSS and having keys |