]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: pull SNAP header into skb->head
authorJohannes Berg <johannes.berg@intel.com>
Thu, 13 Nov 2014 10:06:43 +0000 (11:06 +0100)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 24 Nov 2014 06:30:18 +0000 (08:30 +0200)
commit6b95593504239d8a64c0b8209563501310c8e10a
tree00722995adf28e5dc6df6ef76b833074fa528bf2
parent882c02f3ac72caa5223805b2a78a4547355b646a
iwlwifi: mvm: pull SNAP header into skb->head

When we pre-populate the skb->head for the stack, we only pull
in the 802.11 header including crypto (assuming the packet isn't
short enough to be in there completely.) This is fine, but in
ieee80211_data_to_8023() we later unconditionally pull 8 more
bytes for the SNAP header and ethertype field (except for mesh
or 4-addr, where it's even more, but we don't care as much about
them).

Avoid the additional later pull by pulling in those 8 bytes here.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: IdoX Yariv <ido@wizery.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/rx.c