diff options
author | Johannes Berg <johannes.berg@intel.com> | 2016-12-14 13:48:04 +0100 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2017-04-11 13:54:33 +0200 |
commit | 5cddd05c9cbe420436799716d009bc0372ef8268 (patch) | |
tree | 2b759f5c9790ff91900abe425560de9fe4087092 /drivers/net/wireless/intel/iwlwifi/pcie/tx.c | |
parent | iwlwifi: mvm: adjust new API of compressed BA (diff) | |
download | linux-5cddd05c9cbe420436799716d009bc0372ef8268.tar.xz linux-5cddd05c9cbe420436799716d009bc0372ef8268.zip |
iwlwifi: mvm: fix RX SKB header size and align it properly
When receiving a frame, we currently pull in sizeof(*hdr) plus
some extra (crypto/snap), which is too much, most headers aren't
actually sizeof(*hdr) since that takes into account the 4-address
format but doesn't take into account QoS. As a result, a typical
frame will have 4 bytes of the payload in the SKB header already.
Fix this by calculating the correct header length, and now that
we have that, align the end of the SKB header to a multiple of 4
so that the IP header will be aligned properly when pulled in.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/pcie/tx.c')
0 files changed, 0 insertions, 0 deletions