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:
Liangwei Dong 2020-09-10 17:55:45 +08:00 • committed by snandini
commit 12cef43327

View file

@ -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);