]> git.karo-electronics.de Git - linux-beck.git/commitdiff
iwlwifi: mvm: add a flag to disable checksum
authorSara Sharon <sara.sharon@intel.com>
Sun, 3 Apr 2016 07:19:16 +0000 (10:19 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 10 May 2016 19:14:46 +0000 (22:14 +0300)
Add a constant to allow disabling checksum. This will enable easier
debugging in early phases.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/constants.h
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h

index b96b1c6a97fa2db0a0474046ee23e97cbfec34a4..4eeb6b78d952047f5fe3df9d14d49c2ec60b9389 100644 (file)
 #define IWL_MVM_RS_80_20_FAR_RANGE_TWEAK       1
 #define IWL_MVM_TOF_IS_RESPONDER               0
 #define IWL_MVM_SW_TX_CSUM_OFFLOAD             0
+#define IWL_MVM_HW_CSUM_DISABLE                        0
 #define IWL_MVM_COLLECT_FW_ERR_DUMP            1
 #define IWL_MVM_RS_NUM_TRY_BEFORE_ANT_TOGGLE    1
 #define IWL_MVM_RS_HT_VHT_RETRIES_PER_RATE      2
index 6eaf21a0726bb4be5aef77d7747f33ebc13a33e6..72c04672143ffa1c7d1efb6ee6c909e429dc0190 100644 (file)
@@ -1127,7 +1127,8 @@ static inline bool iwl_mvm_bt_is_rrc_supported(struct iwl_mvm *mvm)
 static inline bool iwl_mvm_is_csum_supported(struct iwl_mvm *mvm)
 {
        return fw_has_capa(&mvm->fw->ucode_capa,
-                          IWL_UCODE_TLV_CAPA_CSUM_SUPPORT);
+                          IWL_UCODE_TLV_CAPA_CSUM_SUPPORT) &&
+               !IWL_MVM_HW_CSUM_DISABLE;
 }
 
 static inline bool iwl_mvm_is_mplut_supported(struct iwl_mvm *mvm)