qcacld-3.0: Allow burst scan when SAP is on DFS channel

When SAP comes up on DFS channel, then scan windows scans
only limited APs since NL scan cache will be flushed every
7 secs and scan results shall be read by the wpa_supplicant
only after the scan done indication.

The change is to allow burst scan when SAP is on DFS channel.

Change-Id: Ia1458cf4f4f868f2d0c36b2679118016fd966528
CRs-Fixed: 2017252
This commit is contained in:
Nitesh Shah 2017-03-09 17:06:34 +05:30 committed by Sandeep Puligilla
parent b551b434ef
commit 77442574ca

View File

@ -433,6 +433,11 @@ QDF_STATUS wma_get_buf_start_scan_cmd(tp_wma_handle wma_handle,
cmd->dwell_time_passive = cmd->dwell_time_active;
}
cmd->burst_duration = 0;
if (CDS_IS_DFS_CH(cds_get_channel(CDS_SAP_MODE, NULL)))
cmd->burst_duration =
WMA_BURST_SCAN_MAX_NUM_OFFCHANNELS *
scan_req->maxChannelTime;
WMA_LOGI("SAP: burst_duration: %d", cmd->burst_duration);
}
cmd->n_probes = (cmd->repeat_probe_time > 0) ?