aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-mac80211.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-mac80211.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-mac80211.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-mac80211.c b/drivers/net/wireless/iwlwifi/iwl-mac80211.c
index 05b1f0d2f387..55308b88faac 100644
--- a/drivers/net/wireless/iwlwifi/iwl-mac80211.c
+++ b/drivers/net/wireless/iwlwifi/iwl-mac80211.c
@@ -481,15 +481,11 @@ static void iwlagn_mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb)
481{ 481{
482 struct iwl_priv *priv = hw->priv; 482 struct iwl_priv *priv = hw->priv;
483 483
484 IWL_DEBUG_MACDUMP(priv, "enter\n");
485
486 IWL_DEBUG_TX(priv, "dev->xmit(%d bytes) at rate 0x%02x\n", skb->len, 484 IWL_DEBUG_TX(priv, "dev->xmit(%d bytes) at rate 0x%02x\n", skb->len,
487 ieee80211_get_tx_rate(hw, IEEE80211_SKB_CB(skb))->bitrate); 485 ieee80211_get_tx_rate(hw, IEEE80211_SKB_CB(skb))->bitrate);
488 486
489 if (iwlagn_tx_skb(priv, skb)) 487 if (iwlagn_tx_skb(priv, skb))
490 dev_kfree_skb_any(skb); 488 dev_kfree_skb_any(skb);
491
492 IWL_DEBUG_MACDUMP(priv, "leave\n");
493} 489}
494 490
495static void iwlagn_mac_update_tkip_key(struct ieee80211_hw *hw, 491static void iwlagn_mac_update_tkip_key(struct ieee80211_hw *hw,
@@ -521,6 +517,17 @@ static int iwlagn_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
521 return -EOPNOTSUPP; 517 return -EOPNOTSUPP;
522 } 518 }
523 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
524 /* 531 /*
525 * 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
526 * don't expect much multicast traffic in IBSS and having keys 533 * don't expect much multicast traffic in IBSS and having keys