diff --git a/umac/regulatory/core/src/reg_services_common.c b/umac/regulatory/core/src/reg_services_common.c index ba0a0d4de4bb..937a36a1e79c 100644 --- a/umac/regulatory/core/src/reg_services_common.c +++ b/umac/regulatory/core/src/reg_services_common.c @@ -1522,22 +1522,6 @@ void reg_set_channel_params(struct wlan_objmgr_pdev *pdev, } #endif /* CONFIG_CHAN_NUM_API */ -QDF_STATUS reg_get_curr_band(struct wlan_objmgr_pdev *pdev, - enum band_info *band) -{ - struct wlan_regulatory_pdev_priv_obj *pdev_reg; - - pdev_reg = reg_get_pdev_obj(pdev); - if (!IS_VALID_PDEV_REG_OBJ(pdev_reg)) { - reg_err("pdev reg component is NULL"); - return QDF_STATUS_E_INVAL; - } - - *band = pdev_reg->band_capability; - - return QDF_STATUS_SUCCESS; -} - QDF_STATUS reg_read_default_country(struct wlan_objmgr_psoc *psoc, uint8_t *country_code) { diff --git a/umac/regulatory/core/src/reg_services_common.h b/umac/regulatory/core/src/reg_services_common.h index 64a0a221a643..43bffe9aa085 100644 --- a/umac/regulatory/core/src/reg_services_common.h +++ b/umac/regulatory/core/src/reg_services_common.h @@ -407,16 +407,6 @@ QDF_STATUS reg_program_default_cc(struct wlan_objmgr_pdev *pdev, QDF_STATUS reg_get_current_cc(struct wlan_objmgr_pdev *pdev, struct cc_regdmn_s *rd); -/** - * reg_get_curr_band() - Get current band - * @pdev: Pdev pointer - * @band: Pointer to save the current band - * - * Return: QDF_STATUS - */ -QDF_STATUS reg_get_curr_band(struct wlan_objmgr_pdev *pdev, - enum band_info *band); - /** * reg_set_regdb_offloaded() - set/clear regulatory offloaded flag * diff --git a/umac/regulatory/dispatcher/inc/wlan_reg_ucfg_api.h b/umac/regulatory/dispatcher/inc/wlan_reg_ucfg_api.h index 52703f9a1c0c..aadfa5a5b96b 100644 --- a/umac/regulatory/dispatcher/inc/wlan_reg_ucfg_api.h +++ b/umac/regulatory/dispatcher/inc/wlan_reg_ucfg_api.h @@ -177,15 +177,6 @@ QDF_STATUS ucfg_reg_set_country(struct wlan_objmgr_pdev *dev, */ QDF_STATUS ucfg_reg_reset_country(struct wlan_objmgr_psoc *psoc); -/** - * ucfg_reg_get_curr_band() - Get the current band capability - * @pdev: The physical dev to get default country from - * @band: buffer to populate the band into - * - * Return: QDF_STATUS - */ -QDF_STATUS ucfg_reg_get_curr_band(struct wlan_objmgr_pdev *pdev, - enum band_info *band); /** * ucfg_reg_enable_dfs_channels() - Enable the use of DFS channels * @pdev: The physical dev to enable DFS channels for diff --git a/umac/regulatory/dispatcher/src/wlan_reg_ucfg_api.c b/umac/regulatory/dispatcher/src/wlan_reg_ucfg_api.c index 3a002b52bc70..1ce1eab29240 100644 --- a/umac/regulatory/dispatcher/src/wlan_reg_ucfg_api.c +++ b/umac/regulatory/dispatcher/src/wlan_reg_ucfg_api.c @@ -227,13 +227,6 @@ QDF_STATUS ucfg_reg_enable_dfs_channels(struct wlan_objmgr_pdev *pdev, return reg_enable_dfs_channels(pdev, dfs_enable); } -QDF_STATUS ucfg_reg_get_curr_band(struct wlan_objmgr_pdev *pdev, - enum band_info *band) -{ - return reg_get_curr_band(pdev, band); - -} - void ucfg_reg_register_chan_change_callback(struct wlan_objmgr_psoc *psoc, void *cbk, void *arg) {