diff --git a/umac/regulatory/core/src/reg_priv_objs.c b/umac/regulatory/core/src/reg_priv_objs.c index 07cf6a79bf3e..3509f91fc38d 100644 --- a/umac/regulatory/core/src/reg_priv_objs.c +++ b/umac/regulatory/core/src/reg_priv_objs.c @@ -240,8 +240,6 @@ QDF_STATUS wlan_regulatory_pdev_obj_created_notification( psoc_reg_rules = &psoc_priv_obj->mas_chan_params[pdev_id].reg_rules; reg_save_reg_rules_to_pdev(psoc_reg_rules, pdev_priv_obj); - reg_reset_reg_rules(psoc_reg_rules); - status = wlan_objmgr_pdev_component_obj_attach( pdev, WLAN_UMAC_COMP_REGULATORY, pdev_priv_obj, QDF_STATUS_SUCCESS); diff --git a/umac/regulatory/dispatcher/src/wlan_reg_services_api.c b/umac/regulatory/dispatcher/src/wlan_reg_services_api.c index 7176ec1c55f2..2fc2c6ecc3a6 100644 --- a/umac/regulatory/dispatcher/src/wlan_reg_services_api.c +++ b/umac/regulatory/dispatcher/src/wlan_reg_services_api.c @@ -394,8 +394,6 @@ QDF_STATUS regulatory_psoc_open(struct wlan_objmgr_psoc *psoc) QDF_STATUS regulatory_psoc_close(struct wlan_objmgr_psoc *psoc) { struct wlan_lmac_if_reg_tx_ops *tx_ops; - struct wlan_regulatory_psoc_priv_obj *soc_reg; - uint8_t i; tx_ops = reg_get_psoc_tx_ops(psoc); if (tx_ops->unregister_11d_new_cc_handler) @@ -405,15 +403,6 @@ QDF_STATUS regulatory_psoc_close(struct wlan_objmgr_psoc *psoc) if (tx_ops->unregister_ch_avoid_event_handler) tx_ops->unregister_ch_avoid_event_handler(psoc, NULL); - soc_reg = reg_get_psoc_obj(psoc); - - if (!soc_reg) { - reg_err("reg psoc private obj is NULL"); - return QDF_STATUS_E_FAULT; - } - for (i = 0; i < PSOC_MAX_PHY_REG_CAP; i++) - reg_reset_reg_rules(&soc_reg->mas_chan_params[i].reg_rules); - return QDF_STATUS_SUCCESS; }