iwlwifi: mvm: use TCM data to decide scan priority
authorLuca Coelho <luciano.coelho@intel.com>
Fri, 13 Apr 2018 05:58:35 +0000 (08:58 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 20 Apr 2018 07:57:16 +0000 (10:57 +0300)
The code for changing the scan priority is already implemented, but
isn't yet in use.  Now that TCM data is available, we can base the
scan priority decision on the traffic load.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/scan.c

index cd7ae6976935896990489aa1f747866c4746bc3d..8f3185b9d365ab84b345073c96c363d1674a1d09 100644 (file)
@@ -228,7 +228,7 @@ static void iwl_mvm_scan_condition_iterator(void *data, u8 *mac,
 
 static enum iwl_mvm_traffic_load iwl_mvm_get_traffic_load(struct iwl_mvm *mvm)
 {
-       return IWL_MVM_TRAFFIC_LOW;
+       return mvm->tcm.result.global_load;
 }
 
 static enum