diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-06-08 19:44:21 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-06-08 19:44:21 +0200 |
commit | c0c33addcba2ce753b4e2746db99feaae2f82a85 (patch) | |
tree | dab480183ac0e64bfe9250e1f294705d1a424c78 /net/mac80211/tx.c | |
parent | net: add needed interrupt.h (diff) | |
parent | ath9k: make use of a helper to get paprd scale factor (diff) | |
download | linux-c0c33addcba2ce753b4e2746db99feaae2f82a85.tar.xz linux-c0c33addcba2ce753b4e2746db99feaae2f82a85.zip |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 64e0f7587e6d..3104c844b544 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -1480,7 +1480,12 @@ static int ieee80211_skb_resize(struct ieee80211_local *local, { int tail_need = 0; - if (may_encrypt && local->crypto_tx_tailroom_needed_cnt) { + /* + * This could be optimised, devices that do full hardware + * crypto (including TKIP MMIC) need no tailroom... But we + * have no drivers for such devices currently. + */ + if (may_encrypt) { tail_need = IEEE80211_ENCRYPT_TAILROOM; tail_need -= skb_tailroom(skb); tail_need = max_t(int, tail_need, 0); |