From 9019baa26d6bd7c2d2ceffa1d322c66decb5c2fa Mon Sep 17 00:00:00 2001 From: Sandeep Puligilla Date: Wed, 15 Jan 2020 00:05:33 -0800 Subject: [PATCH] qcacmn: Reduce time for scan when miracast is active Scan can cause issues in video streaming when miracast session is active. Reduce the scan time by removing the DFS channels from scan list during the active miracast session. Change-Id: I14666ebccabaf373a67f396fb7f85c2f7ee34449 CRs-Fixed: 2603528 --- umac/scan/core/src/wlan_scan_manager.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/umac/scan/core/src/wlan_scan_manager.c b/umac/scan/core/src/wlan_scan_manager.c index 697efffce0a7..b3213c3ffb47 100644 --- a/umac/scan/core/src/wlan_scan_manager.c +++ b/umac/scan/core/src/wlan_scan_manager.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2020 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -1106,7 +1106,8 @@ scm_update_channel_list(struct scan_start_request *req, if ((scan_obj->scan_def.allow_dfs_chan_in_scan && (scan_obj->scan_def.allow_dfs_chan_in_first_scan || first_scan_done)) && - !(scan_obj->scan_def.skip_dfs_chan_in_p2p_search && p2p_search)) + !(scan_obj->scan_def.skip_dfs_chan_in_p2p_search && p2p_search) && + !scan_obj->miracast_enabled) skip_dfs_ch = false; for (i = 0; i < req->scan_req.chan_list.num_chan; i++) {