summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNitesh Shah <niteshs@codeaurora.org>2017-03-09 17:06:34 +0530
committerSandeep Puligilla <spuligil@codeaurora.org>2017-03-11 21:54:41 -0800
commit710ab4353febe37fe57c9c1c0724a4db7d4471f6 (patch)
treed3487860006b59297a925a138f8d1e1bed6b4cb2
parent201ee8aace101937974ab32cd136bb3e6467a212 (diff)
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
-rw-r--r--core/wma/src/wma_scan_roam.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/wma/src/wma_scan_roam.c b/core/wma/src/wma_scan_roam.c
index 7e6fffe37fab..d2dceca72d92 100644
--- a/core/wma/src/wma_scan_roam.c
+++ b/core/wma/src/wma_scan_roam.c
@@ -440,6 +440,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) ?