From: Luca Coelho Date: Fri, 13 Apr 2018 05:58:35 +0000 (+0300) Subject: iwlwifi: mvm: use TCM data to decide scan priority X-Git-Tag: v4.18-rc1~114^2~217^2~84^2~23 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=85207c66a2f091c005b98fc4976c8daf297b56e7;p=uclinux-h8%2Flinux.git iwlwifi: mvm: use TCM data to decide scan priority 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 --- diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/scan.c b/drivers/net/wireless/intel/iwlwifi/mvm/scan.c index cd7ae6976935..8f3185b9d365 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/scan.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/scan.c @@ -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