]> git.karo-electronics.de Git - linux-beck.git/commit
iwlwifi: mvm: take care of padded packets
authorSara Sharon <sara.sharon@intel.com>
Thu, 28 Jan 2016 12:25:33 +0000 (14:25 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sat, 27 Feb 2016 20:00:15 +0000 (22:00 +0200)
commite29cc6b9c99639d9502bde0693afd3e49ec1ffd7
treef97449a29fdd2e1cc6ff7df2391b69430440a6d6
parent283115fb1dcf6b2162e988db98e156b998a5ebb3
iwlwifi: mvm: take care of padded packets

To ensure that the SNAP/TCP/IP headers are DW aligned, the firmware
may add 2-byte pad at the end of the mac header - after the IV, before
the SNAP.
In that case the mpdu descriptor pad bit will be turned on.
Driver should take it into consideration, and remove the padding before
passing the packet to mac80211. Do that.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c