mac80211: fix network header breakage during encryption
authorArik Nemtsov <arik@wizery.com>
Wed, 22 Oct 2014 09:33:45 +0000 (12:33 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 23 Oct 2014 18:40:01 +0000 (20:40 +0200)
commit452218d9fd22505ed790e95b460b0f40cebb95a0
tree77dfca537a74f8a472044e858069fd852b8f2f06
parenta7f3a768289858f03f5c1866639c8b476c1b8ebc
mac80211: fix network header breakage during encryption

When an IV is generated, only the MAC header is moved back. The network
header location remains the same relative to the skb head, as the new IV
is using headroom space that was reserved in advance.

Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/wep.c
net/mac80211/wpa.c