mac80211: delay skb linearising in rx decryption
authorZhu Yi <yi.zhu@intel.com>
Thu, 8 Apr 2010 07:35:10 +0000 (15:35 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 9 Apr 2010 17:43:09 +0000 (13:43 -0400)
commit39184b151cbe5ce9f1487190ac4244f69bf6a04b
treec3dc45e8053ff3066c7a94a3d5a6dfb736be7b5f
parent1805a34fa33b6284ab8139dd43779b94de58669a
mac80211: delay skb linearising in rx decryption

We delay the skb linearising in ieee80211_rx_h_decrypt so that
frames do not require software decryption are not linearized. We
are safe to do this because ieee80211_get_mmie_keyidx() only
requires to touch nonlinear data for management frames, which are
already linearized before getting here.

Cc: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/rx.c