iwlwifi: mvm: add compile-time option to disable EBS
authorZamir, Roee <roee.zamir@intel.com>
Wed, 14 Jun 2017 10:53:44 +0000 (13:53 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 1 Aug 2017 09:41:45 +0000 (12:41 +0300)
For testing purposes, we may want to disable EBS scans at compile time.

Signed-off-by: Roee Zamir <roee.zamir@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/scan.c

index 21845034d80d8e3a5b51bdff24035adcdcbd178e..a922a351c9162fd6693f209101d1a5f6925323b7 100644 (file)
 #define IWL_MVM_RS_TPC_SR_FORCE_INCREASE       75      /* percent */
 #define IWL_MVM_RS_TPC_SR_NO_INCREASE          85      /* percent */
 #define IWL_MVM_RS_TPC_TX_POWER_STEP           3
+#define IWL_MVM_ENABLE_EBS                     1
 
 #endif /* __MVM_CONSTANTS_H */
index cb44e4114655051c149c409bd9532dc3661f3056..50983615dce673c6a96365a34ddc3fe9ae3cfa70 100644 (file)
@@ -743,7 +743,7 @@ static inline bool iwl_mvm_scan_use_ebs(struct iwl_mvm *mvm,
         *      4. it's not a p2p find operation.
         */
        return ((capa->flags & IWL_UCODE_TLV_FLAGS_EBS_SUPPORT) &&
-               mvm->last_ebs_successful &&
+               mvm->last_ebs_successful && IWL_MVM_ENABLE_EBS &&
                vif->type != NL80211_IFTYPE_P2P_DEVICE);
 }