qcacmn: Don't use dfs_find_target_channel_in_channel_matrix()

As part of regulatory cleanup, remove
dfs_find_target_channel_in_channel_matrix()

Use dfs_find_target_channel_in_channel_matrix_for_freq() instead
of dfs_find_target_channel_in_channel_matrix()

Change-Id: I8750b95d5cf4a4fa3d738c2209edf1328794d486
CRs-Fixed: 2959916
This commit is contained in:
Jyoti Kumari
2021-05-16 23:55:23 +05:30
zatwierdzone przez Madan Koyyalamudi
rodzic e122023f44
commit aab3676557
4 zmienionych plików z 0 dodań i 208 usunięć

Wyświetl plik

@@ -599,25 +599,6 @@ QDF_STATUS utils_dfs_update_cur_chan_flags(struct wlan_objmgr_pdev *pdev,
uint16_t flagext);
#ifdef QCA_MCL_DFS_SUPPORT
/**
* utils_dfs_mark_leaking_ch() - to mark channel leaking in to nol
* @pdev: Pointer to pdev structure.
* @ch_width: channel width
* @temp_ch_lst_sz: the target channel list
* @temp_ch_lst: the target channel list
*
* This function removes the channels from temp channel list that
* (if selected as target channel) will cause leakage in one of
* the NOL channels
*
* Return: QDF_STATUS
*/
#ifdef CONFIG_CHAN_NUM_API
QDF_STATUS utils_dfs_mark_leaking_ch(struct wlan_objmgr_pdev *pdev,
enum phy_ch_width ch_width,
uint8_t temp_ch_lst_sz,
uint8_t *temp_ch_lst);
#endif
/**
* utils_dfs_mark_leaking_chan_for_freq() - to mark channel leaking in to nol
* @pdev: Pointer to pdev structure.
@@ -650,16 +631,6 @@ QDF_STATUS utils_dfs_mark_leaking_chan_for_freq(struct wlan_objmgr_pdev *pdev,
*/
bool utils_dfs_can_ignore_radar_event(struct wlan_objmgr_pdev *pdev);
#else
#ifdef CONFIG_CHAN_NUM_API
static inline QDF_STATUS utils_dfs_mark_leaking_ch
(struct wlan_objmgr_pdev *pdev,
enum phy_ch_width ch_width,
uint8_t temp_ch_lst_sz,
uint8_t *temp_ch_lst)
{
return QDF_STATUS_SUCCESS;
}
#endif
#ifdef CONFIG_CHAN_FREQ_API
static inline QDF_STATUS utils_dfs_mark_leaking_chan_for_freq
(struct wlan_objmgr_pdev *pdev,

Wyświetl plik

@@ -1148,24 +1148,6 @@ uint32_t utils_dfs_chan_to_freq(uint8_t chan)
qdf_export_symbol(utils_dfs_chan_to_freq);
#ifdef QCA_MCL_DFS_SUPPORT
#ifdef CONFIG_CHAN_NUM_API
QDF_STATUS utils_dfs_mark_leaking_ch(struct wlan_objmgr_pdev *pdev,
enum phy_ch_width ch_width,
uint8_t temp_ch_lst_sz,
uint8_t *temp_ch_lst)
{
struct wlan_dfs *dfs = NULL;
dfs = wlan_pdev_get_dfs_obj(pdev);
if (!dfs) {
dfs_err(dfs, WLAN_DEBUG_DFS_ALWAYS, "null dfs");
return QDF_STATUS_E_FAILURE;
}
return dfs_mark_leaking_ch(dfs, ch_width, temp_ch_lst_sz, temp_ch_lst);
}
qdf_export_symbol(utils_dfs_mark_leaking_ch);
#endif
#ifdef CONFIG_CHAN_FREQ_API
QDF_STATUS utils_dfs_mark_leaking_chan_for_freq(struct wlan_objmgr_pdev *pdev,