diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-06-16 14:46:45 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-10 14:57:54 -0400 |
commit | 18ad01c43918751cc22f8ee28f6b38b8954a55b2 (patch) | |
tree | 4d6812474ed14313bbe7796972ef7e5b0db8a527 /drivers/net/wireless/rt2x00/rt2x00crypto.c | |
parent | a538e2d5a30f577e9c8f6ccfe72b29a258e0fe86 (diff) |
rt2x00: remove skb->do_not_encrypt usage
Johannes is trying to get rid of the master netdev and in the process will
remove skb->do_not_encrypt field. This removes the do_not_encrypt
usage from rt2x00 to make the change easier.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00crypto.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00crypto.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00crypto.c b/drivers/net/wireless/rt2x00/rt2x00crypto.c index bc4e81e21841..c54eda3c2db0 100644 --- a/drivers/net/wireless/rt2x00/rt2x00crypto.c +++ b/drivers/net/wireless/rt2x00/rt2x00crypto.c | |||
@@ -53,8 +53,7 @@ void rt2x00crypto_create_tx_descriptor(struct queue_entry *entry, | |||
53 | struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(entry->skb); | 53 | struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(entry->skb); |
54 | struct ieee80211_key_conf *hw_key = tx_info->control.hw_key; | 54 | struct ieee80211_key_conf *hw_key = tx_info->control.hw_key; |
55 | 55 | ||
56 | if (!test_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags) || | 56 | if (!test_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags) || !hw_key) |
57 | !hw_key || entry->skb->do_not_encrypt) | ||
58 | return; | 57 | return; |
59 | 58 | ||
60 | __set_bit(ENTRY_TXD_ENCRYPT, &txdesc->flags); | 59 | __set_bit(ENTRY_TXD_ENCRYPT, &txdesc->flags); |
@@ -82,8 +81,7 @@ unsigned int rt2x00crypto_tx_overhead(struct rt2x00_dev *rt2x00dev, | |||
82 | struct ieee80211_key_conf *key = tx_info->control.hw_key; | 81 | struct ieee80211_key_conf *key = tx_info->control.hw_key; |
83 | unsigned int overhead = 0; | 82 | unsigned int overhead = 0; |
84 | 83 | ||
85 | if (!test_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags) || | 84 | if (!test_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags) || !key) |
86 | !key || skb->do_not_encrypt) | ||
87 | return overhead; | 85 | return overhead; |
88 | 86 | ||
89 | /* | 87 | /* |