浏览代码

qcacmn: Update scan request with all channels

When scan is issued with 0 channels, use all valid channels
on underlying vap to scan. In essence 0 channel in scan
request is expanded to all supported channel list in scan
request by host driver.

Change-Id: Ie1677fa804b290bb1e4715244efb5789641260f4
CRs-Fixed: 2339615
Om Prakash Tripathi 6 年之前
父节点
当前提交
a2f9c7c8b4
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      umac/scan/dispatcher/src/wlan_scan_ucfg_api.c

+ 2 - 3
umac/scan/dispatcher/src/wlan_scan_ucfg_api.c

@@ -880,8 +880,7 @@ ucfg_scan_req_update_params(struct wlan_objmgr_vdev *vdev,
 	if (custom_chan_list->num_chan)
 		qdf_mem_copy(&req->scan_req.chan_list, custom_chan_list,
 				sizeof(struct chan_list));
-	else if (req->scan_req.scan_f_wide_band &&
-			!req->scan_req.chan_list.num_chan)
+	else if (!req->scan_req.chan_list.num_chan)
 		ucfg_scan_init_chanlist_params(req, 0, NULL, NULL);
 
 	scm_debug("dwell time: active %d, passive %d, repeat_probe_time %d "
@@ -1753,7 +1752,7 @@ ucfg_scan_init_chanlist_params(struct scan_start_request *req,
 	 * provided in scan request causing scan to take
 	 * too much time to complete.
 	 */
-	if (pdev && !num_chans && ucfg_scan_get_wide_band_scan(pdev)) {
+	if (pdev && !num_chans) {
 		reg_chan_list = qdf_mem_malloc_atomic(NUM_CHANNELS *
 				sizeof(struct regulatory_channel));
 		if (!reg_chan_list) {