diff --git a/umac/regulatory/dispatcher/inc/wlan_reg_ucfg_api.h b/umac/regulatory/dispatcher/inc/wlan_reg_ucfg_api.h index 640d536442..4583f0d7b9 100644 --- a/umac/regulatory/dispatcher/inc/wlan_reg_ucfg_api.h +++ b/umac/regulatory/dispatcher/inc/wlan_reg_ucfg_api.h @@ -329,6 +329,18 @@ enum country_src ucfg_reg_get_cc_and_src(struct wlan_objmgr_psoc *psoc, void ucfg_reg_unit_simulate_ch_avoid(struct wlan_objmgr_psoc *psoc, struct ch_avoid_ind_type *ch_avoid); +/** + * ucfg_reg_ch_avoid () - Send channel avoid cmd to regulatory + * @psoc: psoc ptr + * @ch_avoid: ch_avoid_ind_type ranges + * + * This function send channel avoid cmd to regulatory from os_if/upper layer + * + * Return: void + */ +void ucfg_reg_ch_avoid(struct wlan_objmgr_psoc *psoc, + struct ch_avoid_ind_type *ch_avoid); + /** * ucfg_reg_11d_vdev_delete_update() - update vdev delete to regulatory * @vdev: vdev ptr diff --git a/umac/regulatory/dispatcher/src/wlan_reg_ucfg_api.c b/umac/regulatory/dispatcher/src/wlan_reg_ucfg_api.c index 0ca077df8a..3be545f80e 100644 --- a/umac/regulatory/dispatcher/src/wlan_reg_ucfg_api.c +++ b/umac/regulatory/dispatcher/src/wlan_reg_ucfg_api.c @@ -253,6 +253,12 @@ void ucfg_reg_unit_simulate_ch_avoid(struct wlan_objmgr_psoc *psoc, reg_process_ch_avoid_event(psoc, ch_avoid); } +void ucfg_reg_ch_avoid(struct wlan_objmgr_psoc *psoc, + struct ch_avoid_ind_type *ch_avoid) +{ + reg_process_ch_avoid_event(psoc, ch_avoid); +} + QDF_STATUS ucfg_reg_11d_vdev_delete_update(struct wlan_objmgr_vdev *vdev) { return reg_11d_vdev_delete_update(vdev);