wifi: iwlwifi: mvm: enable bz hw checksum from c step
authorGolan Ben Ami <golan.ben.ami@intel.com>
Thu, 13 Apr 2023 07:44:07 +0000 (10:44 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 13 Apr 2023 14:29:59 +0000 (16:29 +0200)
B step doesn't support full checksum yet, move to c step.

Signed-off-by: Golan Ben Ami <golan.ben.ami@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230413102635.697a9d74e84d.I6724874112692a04e29287cac9dad7140532557f@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/tx.c

index 9a6e7dd..b3545c3 100644 (file)
@@ -187,7 +187,7 @@ static u32 iwl_mvm_tx_csum(struct iwl_mvm *mvm, struct sk_buff *skb,
        if (mvm->trans->trans_cfg->device_family < IWL_DEVICE_FAMILY_BZ ||
            (mvm->trans->trans_cfg->device_family == IWL_DEVICE_FAMILY_BZ &&
             CSR_HW_REV_TYPE(mvm->trans->hw_rev) == IWL_CFG_MAC_TYPE_GL &&
-            mvm->trans->hw_rev_step == SILICON_A_STEP))
+            mvm->trans->hw_rev_step <= SILICON_B_STEP))
                return iwl_mvm_tx_csum_pre_bz(mvm, skb, info, amsdu);
        return iwl_mvm_tx_csum_bz(mvm, skb, amsdu);
 }