wifi: iwlwifi: mvm: refactor TX csum mode check
authorJohannes Berg <johannes.berg@intel.com>
Thu, 13 Apr 2023 07:44:09 +0000 (10:44 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 13 Apr 2023 14:30:00 +0000 (16:30 +0200)
commita0c8ab93eb3edf82511502be71a825f74b632137
tree3787cd3a8a979ddde614cef968de052c2c2ade42
parentd34d11aea2d5d71a66f2f90507c3f7202b964175
wifi: iwlwifi: mvm: refactor TX csum mode check

There are two modes now, and we have two places checking
that must be in sync. Refactor the logic into a new small
helper function.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230413102635.ef6246f4b73b.I44820ec095634dd0bba3007465cf25e4ce1c77c6@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/tx.c