iwlwifi: mvm: properly enable IP header checksumming
authorJohannes Berg <johannes.berg@intel.com>
Mon, 19 Jun 2017 11:24:49 +0000 (13:24 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 29 Jun 2017 17:30:01 +0000 (20:30 +0300)
commit275896ab5fbffcbe9d148ec054efe1af3fb4a29d
treed1d28b994da4536a57ffd321972ce45a000fb188
parentc42ff65da8167fa486bfcb7ea290cbdee8350aa7
iwlwifi: mvm: properly enable IP header checksumming

The code was intended to enable IP header checksumming on AMSDUs, but
failed to really do so because the A-MSDU bit was set after all the
checksumming bits, and thus checking for A-MSDU could never be true.

Fix this by setting the A-MSDU bit before the offload bits.

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