瀏覽代碼

qcacld-3.0: disable adaptive dwell mode for p2p scans

Disable  adaptive dwell time logic for p2p scans to avoid p2p find
failures.

Change-Id: I2e5a26d6281021a720c61c65570ec472335cf6f9
CRs-Fixed: 1110342
Tushnim Bhattacharyya 8 年之前
父節點
當前提交
5015e98888
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      core/wma/src/wma_scan_roam.c

+ 4 - 1
core/wma/src/wma_scan_roam.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2013-2017 The Linux Foundation. All rights reserved.
  *
  * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
  *
@@ -266,6 +266,9 @@ QDF_STATUS wma_get_buf_start_scan_cmd(tp_wma_handle wma_handle,
 	else
 		WMA_LOGD("OFDM_RATES not included in 11B mode");
 
+	if (scan_req->p2pScanType)
+		scan_req->scan_adaptive_dwell_mode = WMI_DWELL_MODE_STATIC;
+
 	WMI_SCAN_SET_DWELL_MODE(cmd->scan_ctrl_flags,
 			scan_req->scan_adaptive_dwell_mode);