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
Этот коммит содержится в:
Rajeev Kumar Sirasanagandla
2019-10-15 15:19:35 +05:30
коммит произвёл nshrivas
родитель 72924111f9
Коммит 89cefa812d

Просмотреть файл

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