diff --git a/components/cmn_services/policy_mgr/inc/wlan_policy_mgr_api.h b/components/cmn_services/policy_mgr/inc/wlan_policy_mgr_api.h index b675fffd3a..0065fbd723 100644 --- a/components/cmn_services/policy_mgr/inc/wlan_policy_mgr_api.h +++ b/components/cmn_services/policy_mgr/inc/wlan_policy_mgr_api.h @@ -2886,14 +2886,14 @@ bool policy_mgr_is_current_hwmode_dbs(struct wlan_objmgr_psoc *psoc); bool policy_mgr_is_current_hwmode_sbs(struct wlan_objmgr_psoc *psoc); /** - * policy_mgr_is_dp_hw_dbs_2x2_capable() - if hardware is capable of dbs 2x2 - * for Data Path. + * policy_mgr_is_dp_hw_dbs_capable() - if hardware is capable of dbs 2x2 + * or 1X1 for Data Path (HW mode) * @psoc: PSOC object information - * This API is for Data Path to get HW dbs 2x2 capable. + * This API is for Data Path to get HW mode support dbs. * - * Return: true - DBS2x2, false - DBS1x1 + * Return: true - DBS capable, false - not */ -bool policy_mgr_is_dp_hw_dbs_2x2_capable(struct wlan_objmgr_psoc *psoc); +bool policy_mgr_is_dp_hw_dbs_capable(struct wlan_objmgr_psoc *psoc); /** * policy_mgr_is_hw_dbs_2x2_capable() - if hardware is capable of dbs 2x2 diff --git a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_get_set_utils.c b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_get_set_utils.c index a745ba7742..d9bf724f73 100644 --- a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_get_set_utils.c +++ b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_get_set_utils.c @@ -2213,11 +2213,9 @@ bool policy_mgr_is_hw_dbs_required_for_band(struct wlan_objmgr_psoc *psoc, return false; } -bool policy_mgr_is_dp_hw_dbs_2x2_capable(struct wlan_objmgr_psoc *psoc) +bool policy_mgr_is_dp_hw_dbs_capable(struct wlan_objmgr_psoc *psoc) { - return policy_mgr_is_hw_dbs_2x2_capable(psoc) || - policy_mgr_is_hw_dbs_required_for_band(psoc, - HW_MODE_MAC_BAND_2G); + return policy_mgr_find_if_hwlist_has_dbs(psoc); } /* diff --git a/core/cds/src/cds_api.c b/core/cds/src/cds_api.c index 448463b487..5756ec160a 100644 --- a/core/cds/src/cds_api.c +++ b/core/cds/src/cds_api.c @@ -122,7 +122,7 @@ static struct ol_if_ops dp_ol_if_ops = { .peer_set_default_routing = target_if_peer_set_default_routing, .peer_rx_reorder_queue_setup = target_if_peer_rx_reorder_queue_setup, .peer_rx_reorder_queue_remove = target_if_peer_rx_reorder_queue_remove, - .is_hw_dbs_capable = policy_mgr_is_hw_dbs_capable, + .is_hw_dbs_capable = policy_mgr_is_dp_hw_dbs_capable, .lro_hash_config = target_if_lro_hash_config, .rx_invalid_peer = wma_rx_invalid_peer_ind, .is_roam_inprogress = wma_is_roam_in_progress,