OSDN Git Service

iwlwifi: mvm: use CHECKSUM_COMPLETE
authorJohannes Berg <johannes.berg@intel.com>
Fri, 25 Sep 2020 21:30:50 +0000 (00:30 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 1 Oct 2020 18:58:24 +0000 (21:58 +0300)
commit59ca9572dee98f6a6dc52ce65d63ad466af81adc
treeb541f14303443af8e9ffb5e6aa5fa84fc9a4d727
parentcfa5d0ca0f6127e88493f60772d7799166ed69e9
iwlwifi: mvm: use CHECKSUM_COMPLETE

On newer hardware, we have the full checksum, so use it to report
CHECKSUM_COMPLETE and avoid the protocol specific hardware parsing.

Note that the hardware already parses/removes the SNAP header, so
we actually literally get what we need to report to the stack, as
we're expected to checksum everything after the L2 header (which
is translated/added by mac80211).

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20200926002540.869e829c815d.I70f374865b0acafc675a8d7959912eeaeb595acf@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/api/rx.h
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c