[PATCH] hostap: Allocate enough tailroom for TKIP
authorBrandon Craig Rhodes <brandon@rhodesmill.org>
Mon, 28 May 2007 16:38:46 +0000 (09:38 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 29 May 2007 15:16:35 +0000 (11:16 -0400)
commitd7ea3be56adc95b17351221fd95e78115f3b01f4
tree0eb2ab810b298303e207521f5243b85bb16ebf8f
parentef7ab2357ba09e8a795018640a87e93dfa043360
[PATCH] hostap: Allocate enough tailroom for TKIP

When hostap_tx_encrypt() tries to allocate enough headroom and
tailroom for ieee80211 encryption, it only makes enough room for the
"mpdu" phase of the operation, but forgets about the "msdu" phase.
(For TKIP, these two phases require, respectively, 4 and 8 bytes of
tailroom, per the "ieee80211_crypt_tkip" structure at the bottom of
net/ieee80211/ieee80211_crypt_tkip.c.)

Signed-off-by: Brandon Craig Rhodes <brandon@rhodesmill.org>
Signed-off-by: Jouni Malinen <j@w1.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/hostap/hostap_80211_tx.c