iwlwifi: mvm: make the usage of TWT configurable
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 19 May 2019 06:57:31 +0000 (09:57 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Sat, 29 Jun 2019 07:09:43 +0000 (10:09 +0300)
TWT is still very new and we expect issues. Make its usage
configurable and disable it by default.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@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/mac-ctxt.c

index dff14f1..915b172 100644 (file)
 #define IWL_MVM_FTM_INITIATOR_ALGO             IWL_TOF_ALGO_TYPE_MAX_LIKE
 #define IWL_MVM_FTM_INITIATOR_DYNACK           true
 #define IWL_MVM_D3_DEBUG                       false
+#define IWL_MVM_USE_TWT                                false
 
 #endif /* __MVM_CONSTANTS_H */
index 699a887..cea1948 100644 (file)
@@ -679,7 +679,7 @@ static int iwl_mvm_mac_ctxt_cmd_sta(struct iwl_mvm *mvm,
 
        if (vif->bss_conf.he_support && !iwlwifi_mod_params.disable_11ax) {
                cmd.filter_flags |= cpu_to_le32(MAC_FILTER_IN_11AX);
-               if (vif->bss_conf.twt_requester)
+               if (vif->bss_conf.twt_requester && IWL_MVM_USE_TWT)
                        ctxt_sta->data_policy |= cpu_to_le32(TWT_SUPPORTED);
        }