From 09546389daa77df1f9045e23a88a25ca2da0b6eb Mon Sep 17 00:00:00 2001 From: Divyajyothi Goparaju Date: Thu, 25 Aug 2022 18:50:26 +0530 Subject: [PATCH] qcacmn: Replace wlan_reg_get_channel_state_for_freq Replace all occurrences of wlan_reg_get_channel_state_for_freq with wlan_reg_get_channel_state_for_pwrmode and use extra parameter as REG_CURRENT_PWR_MODE Change-Id: Idfd0b095867a5e75e795d6297f998725e62f7300 CRs-Fixed: 3145012 --- .../regulatory/dispatcher/inc/wlan_reg_services_api.h | 11 ----------- .../regulatory/dispatcher/src/wlan_reg_services_api.c | 7 ------- 2 files changed, 18 deletions(-) diff --git a/umac/regulatory/dispatcher/inc/wlan_reg_services_api.h b/umac/regulatory/dispatcher/inc/wlan_reg_services_api.h index fa05c46f94..9f8d3d7386 100644 --- a/umac/regulatory/dispatcher/inc/wlan_reg_services_api.h +++ b/umac/regulatory/dispatcher/inc/wlan_reg_services_api.h @@ -1470,17 +1470,6 @@ wlan_reg_get_2g_bonded_channel_state_for_freq(struct wlan_objmgr_pdev *pdev, qdf_freq_t sec_ch_freq, enum phy_ch_width bw); -/** - * wlan_reg_get_channel_state_for_freq() - Get channel state from regulatory - * @pdev: Pointer to pdev - * @freq: channel center frequency. - * - * Return: channel state - */ -enum channel_state -wlan_reg_get_channel_state_for_freq(struct wlan_objmgr_pdev *pdev, - qdf_freq_t freq); - #ifdef CONFIG_REG_6G_PWRMODE /** * wlan_reg_get_channel_state_for_pwrmode() - Get channel state from regulatory diff --git a/umac/regulatory/dispatcher/src/wlan_reg_services_api.c b/umac/regulatory/dispatcher/src/wlan_reg_services_api.c index c0114d1e38..b37a55bd97 100644 --- a/umac/regulatory/dispatcher/src/wlan_reg_services_api.c +++ b/umac/regulatory/dispatcher/src/wlan_reg_services_api.c @@ -1334,13 +1334,6 @@ void wlan_reg_set_create_punc_bitmap(struct ch_params *ch_params, } #endif /* WLAN_FEATURE_11BE */ -enum channel_state -wlan_reg_get_channel_state_for_freq(struct wlan_objmgr_pdev *pdev, - qdf_freq_t freq) -{ - return reg_get_channel_state_for_freq(pdev, freq); -} - #ifdef CONFIG_REG_6G_PWRMODE enum channel_state wlan_reg_get_channel_state_for_pwrmode(struct wlan_objmgr_pdev *pdev,