mac80211: free up 2 bytes in skb->cb
Free up 2 bytes in skb->cb to be used for multi-rate retry later. Move iv_len and icv_len initialization into key alloc. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
417bd25ac4
commit
76708dee38
@@ -56,10 +56,10 @@ unsigned int rt2x00crypto_tx_overhead(struct ieee80211_tx_info *tx_info)
|
||||
* note that these lengths should only be added when
|
||||
* mac80211 does not generate it.
|
||||
*/
|
||||
overhead += tx_info->control.icv_len;
|
||||
overhead += key->icv_len;
|
||||
|
||||
if (!(key->flags & IEEE80211_KEY_FLAG_GENERATE_IV))
|
||||
overhead += tx_info->control.iv_len;
|
||||
overhead += key->iv_len;
|
||||
|
||||
if (!(key->flags & IEEE80211_KEY_FLAG_GENERATE_MMIC)) {
|
||||
if (key->alg == ALG_TKIP)
|
||||
|
Reference in New Issue
Block a user