From 89cefa812dd0b0b0db2886349e18a99770417e1c Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Sirasanagandla Date: Tue, 15 Oct 2019 15:19:35 +0530 Subject: [PATCH] qcacmn: For p2p scan skip DFS channels only In the current implementation, when ini gSkipDfsChannelInP2pSearch is set then DFS channels are skipped for p2p scan but side-effect is passive and indoor channels are also skipped. This is because api wlan_reg_is_dfs_ch() returns true for passive, indoor and DFS channels. To fix this, use api wlan_reg_chan_has_dfs_attribute() instead of wlan_reg_is_dfs_ch() for explicitly getting DFS (radar) channels only. Change-Id: I7aa50991753e057f72ed945e90647123ae51ed87 CRs-Fixed: 2545583 --- umac/scan/core/src/wlan_scan_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umac/scan/core/src/wlan_scan_manager.c b/umac/scan/core/src/wlan_scan_manager.c index 15d9980c43ee..e6440ba962ec 100644 --- a/umac/scan/core/src/wlan_scan_manager.c +++ b/umac/scan/core/src/wlan_scan_manager.c @@ -960,7 +960,7 @@ scm_update_channel_list(struct scan_start_request *req, freq = req->scan_req.chan_list.chan[i].freq; if (skip_dfs_ch && - wlan_reg_is_dfs_ch(pdev, wlan_reg_freq_to_chan(pdev, freq))) + wlan_reg_chan_has_dfs_attribute_for_freq(pdev, freq)) continue; if (utils_dfs_is_freq_in_nol(pdev, freq)) continue;