|
@@ -53,8 +53,7 @@ void rt2x00crypto_create_tx_descriptor(struct queue_entry *entry,
|
|
struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(entry->skb);
|
|
struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(entry->skb);
|
|
struct ieee80211_key_conf *hw_key = tx_info->control.hw_key;
|
|
struct ieee80211_key_conf *hw_key = tx_info->control.hw_key;
|
|
|
|
|
|
- if (!test_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags) ||
|
|
|
|
- !hw_key || entry->skb->do_not_encrypt)
|
|
|
|
|
|
+ if (!test_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags) || !hw_key)
|
|
return;
|
|
return;
|
|
|
|
|
|
__set_bit(ENTRY_TXD_ENCRYPT, &txdesc->flags);
|
|
__set_bit(ENTRY_TXD_ENCRYPT, &txdesc->flags);
|
|
@@ -82,8 +81,7 @@ unsigned int rt2x00crypto_tx_overhead(struct rt2x00_dev *rt2x00dev,
|
|
struct ieee80211_key_conf *key = tx_info->control.hw_key;
|
|
struct ieee80211_key_conf *key = tx_info->control.hw_key;
|
|
unsigned int overhead = 0;
|
|
unsigned int overhead = 0;
|
|
|
|
|
|
- if (!test_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags) ||
|
|
|
|
- !key || skb->do_not_encrypt)
|
|
|
|
|
|
+ if (!test_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags) || !key)
|
|
return overhead;
|
|
return overhead;
|
|
|
|
|
|
/*
|
|
/*
|