mac80211: add encrypt headroom to PERR frames
authorBob Copeland <me@bobcopeland.com>
Wed, 9 Jan 2013 17:34:56 +0000 (12:34 -0500)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 16 Jan 2013 22:24:51 +0000 (23:24 +0100)
commit8680451f38a64bd270233b3c0eeb7c45f2b5efe3
tree3cc1985fb2843321f8c024ef6da31fe76bcb6e91
parent9cbbffe2ded494429b0d005a51a88242bd9b3095
mac80211: add encrypt headroom to PERR frames

Mesh PERR action frames are robust and thus may be encrypted, so add
proper head/tailroom to allow this.  Fixes this warning when operating
a Mesh STA on ath5k:

WARNING: at net/mac80211/wpa.c:427 ccmp_encrypt_skb.isra.5+0x7b/0x1a0 [mac80211]()
Call Trace:
 [<c011c5e7>] warn_slowpath_common+0x63/0x78
 [<c011c60b>] warn_slowpath_null+0xf/0x13
 [<e090621d>] ccmp_encrypt_skb.isra.5+0x7b/0x1a0 [mac80211]
 [<e090685c>] ieee80211_crypto_ccmp_encrypt+0x1f/0x37 [mac80211]
 [<e0917113>] invoke_tx_handlers+0xcad/0x10bd [mac80211]
 [<e0917665>] ieee80211_tx+0x87/0xb3 [mac80211]
 [<e0918932>] ieee80211_tx_pending+0xcc/0x170 [mac80211]
 [<c0121c43>] tasklet_action+0x3e/0x65

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_hwmp.c