Sfoglia il codice sorgente

qcacmn: Follow spec for NL80211_CMD_START_SCHED_SCAN

qcacld-2.0 to qca-wifi-host-cmn propagation

If no SSID are passed to NL80211_CMD_START_SCHED_SCAN cmd,
interface spec requires that an active scan is not needed.
Therefore a passive scan is now requested by cfg80211_sched_scan_request
for this case.

Change-Id: I1b1b9232ffb9d8d5c0bc9a1d75145d39c9fe9e6b
CRs-Fixed: 902092
Manjeet Singh 9 anni fa
parent
commit
cd2dc06409
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      wmi_unified_tlv.c

+ 2 - 0
wmi_unified_tlv.c

@@ -7544,6 +7544,8 @@ static QDF_STATUS send_pno_start_cmd_tlv(wmi_unified_t wmi_handle,
 	cmd->active_dwell_time = pno->active_dwell_time;
 	cmd->active_dwell_time = pno->active_dwell_time;
 	cmd->passive_dwell_time = pno->passive_dwell_time;
 	cmd->passive_dwell_time = pno->passive_dwell_time;
 
 
+	if (pno->do_passive_scan)
+		cmd->flags |= WMI_NLO_CONFIG_SCAN_PASSIVE;
 	/* Copy scan interval */
 	/* Copy scan interval */
 	cmd->fast_scan_period = pno->fast_scan_period;
 	cmd->fast_scan_period = pno->fast_scan_period;
 	cmd->slow_scan_period = pno->slow_scan_period;
 	cmd->slow_scan_period = pno->slow_scan_period;