mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
qcacmn: Disable 6Ghz channel update for P2P scan
Currently P2P doesn't support 6Ghz, disable P2P interfaces 6Ghz channel list updating to reduce P2P scan time duration. Change-Id: Idd851dfb52e123215c5a2bd968f896e88a0dfb0e CRs-Fixed: 2774756
This commit is contained in:
parent
a77e55a3ec
commit
12cef43327
1 changed files with 6 additions and 1 deletions
|
|
@ -1138,6 +1138,7 @@ scm_update_channel_list(struct scan_start_request *req,
|
|||
bool p2p_search = false;
|
||||
bool skip_dfs_ch = true;
|
||||
uint32_t first_freq;
|
||||
enum QDF_OPMODE op_mode;
|
||||
|
||||
pdev = wlan_vdev_get_pdev(req->vdev);
|
||||
|
||||
|
|
@ -1198,7 +1199,11 @@ scm_update_channel_list(struct scan_start_request *req,
|
|||
|
||||
req->scan_req.chan_list.num_chan = num_scan_channels;
|
||||
/* Dont upadte the channel list for SAP mode */
|
||||
if (wlan_vdev_mlme_get_opmode(req->vdev) != QDF_SAP_MODE) {
|
||||
op_mode = wlan_vdev_mlme_get_opmode(req->vdev);
|
||||
if (op_mode != QDF_SAP_MODE &&
|
||||
op_mode != QDF_P2P_DEVICE_MODE &&
|
||||
op_mode != QDF_P2P_CLIENT_MODE &&
|
||||
op_mode != QDF_P2P_GO_MODE) {
|
||||
scm_update_6ghz_channel_list(req->vdev,
|
||||
&req->scan_req.chan_list,
|
||||
scan_obj);
|
||||
|
|
|
|||
Loading…
Reference in a new issue