diff --git a/umac/regulatory/core/src/reg_services_common.c b/umac/regulatory/core/src/reg_services_common.c index 8cf19a04226f..fab24c194507 100644 --- a/umac/regulatory/core/src/reg_services_common.c +++ b/umac/regulatory/core/src/reg_services_common.c @@ -1318,7 +1318,7 @@ uint32_t reg_freq_to_chan(struct wlan_objmgr_pdev *pdev, if (!IS_VALID_PDEV_REG_OBJ(pdev_priv_obj)) { reg_err("reg pdev priv obj is NULL"); - return QDF_STATUS_E_FAILURE; + return 0; } chan_list = pdev_priv_obj->cur_chan_list; @@ -1343,7 +1343,7 @@ uint32_t reg_chan_to_freq(struct wlan_objmgr_pdev *pdev, if (!IS_VALID_PDEV_REG_OBJ(pdev_priv_obj)) { reg_err("reg pdev priv obj is NULL"); - return QDF_STATUS_E_FAILURE; + return 0; } chan_list = pdev_priv_obj->cur_chan_list; diff --git a/umac/regulatory/core/src/reg_services_common.h b/umac/regulatory/core/src/reg_services_common.h index 52df9be9558e..5525208025be 100644 --- a/umac/regulatory/core/src/reg_services_common.h +++ b/umac/regulatory/core/src/reg_services_common.h @@ -241,7 +241,7 @@ bool reg_is_dfs_ch(struct wlan_objmgr_pdev *pdev, uint32_t chan); * @pdev: Pointer to pdev * @freq: Channel frequency * - * Return: Channel number + * Return: Channel number if success, otherwise 0 */ uint32_t reg_freq_to_chan(struct wlan_objmgr_pdev *pdev, uint32_t freq); @@ -250,7 +250,7 @@ uint32_t reg_freq_to_chan(struct wlan_objmgr_pdev *pdev, uint32_t freq); * @pdev: Pointer to pdev * @chan_num: Channel number * - * Return: Channel frequency + * Return: Channel frequency if success, otherwise 0 */ uint32_t reg_chan_to_freq(struct wlan_objmgr_pdev *pdev, uint32_t chan_num);