|
@@ -744,6 +744,21 @@ iwl_mvm_build_scan_probe(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
|
|
|
params->preq.common_data.len = cpu_to_le16(ies->common_ie_len);
|
|
params->preq.common_data.len = cpu_to_le16(ies->common_ie_len);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+static __le32 iwl_mvm_scan_priority(struct iwl_mvm *mvm,
|
|
|
|
|
+ enum iwl_scan_priority_ext prio)
|
|
|
|
|
+{
|
|
|
|
|
+ if (mvm->fw->ucode_capa.api[0] & IWL_UCODE_TLV_API_EXT_SCAN_PRIORITY)
|
|
|
|
|
+ return cpu_to_le32(prio);
|
|
|
|
|
+
|
|
|
|
|
+ if (prio <= IWL_SCAN_PRIORITY_EXT_2)
|
|
|
|
|
+ return cpu_to_le32(IWL_SCAN_PRIORITY_LOW);
|
|
|
|
|
+
|
|
|
|
|
+ if (prio <= IWL_SCAN_PRIORITY_EXT_4)
|
|
|
|
|
+ return cpu_to_le32(IWL_SCAN_PRIORITY_MEDIUM);
|
|
|
|
|
+
|
|
|
|
|
+ return cpu_to_le32(IWL_SCAN_PRIORITY_HIGH);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
static void iwl_mvm_scan_lmac_dwell(struct iwl_mvm *mvm,
|
|
static void iwl_mvm_scan_lmac_dwell(struct iwl_mvm *mvm,
|
|
|
struct iwl_scan_req_lmac *cmd,
|
|
struct iwl_scan_req_lmac *cmd,
|
|
|
struct iwl_mvm_scan_params *params)
|
|
struct iwl_mvm_scan_params *params)
|
|
@@ -755,7 +770,7 @@ static void iwl_mvm_scan_lmac_dwell(struct iwl_mvm *mvm,
|
|
|
params->dwell[IEEE80211_BAND_2GHZ].fragmented;
|
|
params->dwell[IEEE80211_BAND_2GHZ].fragmented;
|
|
|
cmd->max_out_time = cpu_to_le32(params->max_out_time);
|
|
cmd->max_out_time = cpu_to_le32(params->max_out_time);
|
|
|
cmd->suspend_time = cpu_to_le32(params->suspend_time);
|
|
cmd->suspend_time = cpu_to_le32(params->suspend_time);
|
|
|
- cmd->scan_prio = cpu_to_le32(IWL_SCAN_PRIORITY_HIGH);
|
|
|
|
|
|
|
+ cmd->scan_prio = iwl_mvm_scan_priority(mvm, IWL_SCAN_PRIORITY_EXT_6);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
static inline bool iwl_mvm_scan_fits(struct iwl_mvm *mvm, int n_ssids,
|
|
static inline bool iwl_mvm_scan_fits(struct iwl_mvm *mvm, int n_ssids,
|
|
@@ -1070,12 +1085,15 @@ static void iwl_mvm_scan_umac_dwell(struct iwl_mvm *mvm,
|
|
|
params->dwell[IEEE80211_BAND_2GHZ].fragmented;
|
|
params->dwell[IEEE80211_BAND_2GHZ].fragmented;
|
|
|
cmd->max_out_time = cpu_to_le32(params->max_out_time);
|
|
cmd->max_out_time = cpu_to_le32(params->max_out_time);
|
|
|
cmd->suspend_time = cpu_to_le32(params->suspend_time);
|
|
cmd->suspend_time = cpu_to_le32(params->suspend_time);
|
|
|
- cmd->scan_priority = cpu_to_le32(IWL_SCAN_PRIORITY_HIGH);
|
|
|
|
|
|
|
+ cmd->scan_priority =
|
|
|
|
|
+ iwl_mvm_scan_priority(mvm, IWL_SCAN_PRIORITY_EXT_6);
|
|
|
|
|
|
|
|
if (iwl_mvm_scan_total_iterations(params) == 0)
|
|
if (iwl_mvm_scan_total_iterations(params) == 0)
|
|
|
- cmd->ooc_priority = cpu_to_le32(IWL_SCAN_PRIORITY_HIGH);
|
|
|
|
|
|
|
+ cmd->ooc_priority =
|
|
|
|
|
+ iwl_mvm_scan_priority(mvm, IWL_SCAN_PRIORITY_EXT_6);
|
|
|
else
|
|
else
|
|
|
- cmd->ooc_priority = cpu_to_le32(IWL_SCAN_PRIORITY_LOW);
|
|
|
|
|
|
|
+ cmd->ooc_priority =
|
|
|
|
|
+ iwl_mvm_scan_priority(mvm, IWL_SCAN_PRIORITY_EXT_2);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
static void
|