mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
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
This commit is contained in:
parent
65e7069eeb
commit
f3f2284d74
1 changed files with 2 additions and 2 deletions
|
|
@ -372,6 +372,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");
|
||||
|
|
@ -407,6 +408,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");
|
||||
|
|
@ -548,8 +550,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
|
||||
|
|
|
|||
Loading…
Reference in a new issue