diff options
| author | Nishank Aggarwal <naggar@codeaurora.org> | 2017-03-08 11:49:20 +0530 |
|---|---|---|
| committer | Sandeep Puligilla <spuligil@codeaurora.org> | 2017-03-10 16:52:57 -0800 |
| commit | dfb465cdff154b0f68ce1a251f364e68ea350de8 (patch) | |
| tree | 67726b6831f51448ccee1abdccf043013c243545 | |
| parent | 273d2ebd98cabb88b41f8c2c8c024505d87657b7 (diff) | |
qcacld-3.0: Set different scan priority for p2p search and p2p listen
The p2p search should be preempted if there is p2p listen
requested by action frame tx. So p2p listen should always
have high priority than p2p search.
Change-Id: I551e95ab3381bcbf002e67478a82f8ef31b56b5b
CRs-Fixed: 2011260
| -rw-r--r-- | core/wma/src/wma_scan_roam.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/wma/src/wma_scan_roam.c b/core/wma/src/wma_scan_roam.c index 22d957ab0a40..033b3a77eff9 100644 --- a/core/wma/src/wma_scan_roam.c +++ b/core/wma/src/wma_scan_roam.c @@ -379,6 +379,7 @@ QDF_STATUS wma_get_buf_start_scan_cmd(tp_wma_handle wma_handle, cmd->notify_scan_events |= WMI_SCAN_EVENT_FOREIGN_CHANNEL; cmd->repeat_probe_time = 0; + cmd->scan_priority = WMI_SCAN_PRIORITY_HIGH; break; case P2P_SCAN_TYPE_SEARCH: WMA_LOGD("P2P_SCAN_TYPE_SEARCH"); @@ -414,6 +415,7 @@ QDF_STATUS wma_get_buf_start_scan_cmd(tp_wma_handle wma_handle, cmd->burst_duration = WMA_P2P_SCAN_MAX_BURST_DURATION; } + cmd->scan_priority = WMI_SCAN_PRIORITY_MEDIUM; break; default: WMA_LOGE("Invalid scan type"); @@ -555,8 +557,6 @@ QDF_STATUS wma_start_scan(tp_wma_handle wma_handle, WMA_LOGI("scan_id 0x%x, vdev_id %d, p2pScanType %d, msg_type 0x%x", cmd.scan_id, cmd.vdev_id, scan_req->p2pScanType, msg_type); - if (scan_req->p2pScanType) - cmd.scan_priority = WMI_SCAN_PRIORITY_MEDIUM; /* * Cache vdev_id and scan_id because cmd is freed after calling * wmi_unified_cmd_send cmd. WMI internally frees cmd buffer after |
