iwlwifi: mvm: fix TCP CSUM offload with WEP and A000 series
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 21 Jun 2017 07:35:09 +0000 (10:35 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 1 Aug 2017 08:02:54 +0000 (11:02 +0300)
commit3f25bb4b7f7718d391321608f947840a79934568
treec11730599cca3c6b94786320de8aba21b5fdfa98
parent5f5d03143de5e0c593da4ab18fc6393c2815e108
iwlwifi: mvm: fix TCP CSUM offload with WEP and A000 series

When we enabled TCP checksum offload, we need to tell the
firmware where the IP header starts. If we have an IV, then
we need to adapt that value since the IV is placed before
the SNAP header. This is true only for cases where the
driver adds the IV, not the WEP case in which the IV is
added by the firmware itself.

On A000 devices series, the IV is always added by the
device.

Fix this.

Fixes: 5e6a98dc4863 ("iwlwifi: mvm: enable TCP/UDP checksum support for 9000 family")
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/tx.c