diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 1e13d79e7b..cb67e59bff 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -1466,39 +1466,6 @@ static void hdd_update_wiphy_vhtcap(struct hdd_context *hdd_ctx) band_5g->vht_cap.cap, value, value1); } -/** - * hdd_update_hw_dbs_capable() - sets the dbs capability of the device - * @hdd_ctx: HDD context - * - * Sets the DBS capability as per INI and firmware capability - * - * Return: None - */ -static void hdd_update_hw_dbs_capable(struct hdd_context *hdd_ctx) -{ - uint8_t hw_dbs_capable = 0; - uint8_t dual_mac_feature = DISABLE_DBS_CXN_AND_SCAN; - QDF_STATUS status; - - status = ucfg_policy_mgr_get_dual_mac_feature(hdd_ctx->psoc, - &dual_mac_feature); - if (status != QDF_STATUS_SUCCESS) - hdd_err("can't get dual_mac_feature value"); - if (policy_mgr_is_hw_dbs_capable(hdd_ctx->psoc)) { - switch (dual_mac_feature) { - case ENABLE_DBS_CXN_AND_SCAN: - case ENABLE_DBS_CXN_AND_ENABLE_SCAN_WITH_ASYNC_SCAN_OFF: - case ENABLE_DBS_CXN_AND_DISABLE_SIMULTANEOUS_SCAN: - hw_dbs_capable = 1; - break; - default: - hw_dbs_capable = 0; - break; - } - } - sme_update_hw_dbs_capable(hdd_ctx->mac_handle, hw_dbs_capable); -} - static void hdd_update_tgt_ht_cap(struct hdd_context *hdd_ctx, struct wma_tgt_ht_cap *cfg) { @@ -1962,7 +1929,6 @@ void hdd_update_tgt_cfg(hdd_handle_t hdd_handle, struct wma_tgt_cfg *cfg) hdd_update_vdev_nss(hdd_ctx); - hdd_update_hw_dbs_capable(hdd_ctx); hdd_ctx->dynamic_nss_chains_support = cfg->dynamic_nss_chains_support; ucfg_mlme_get_fine_time_meas_cap(hdd_ctx->psoc, &fine_time_meas_cap); diff --git a/core/mac/inc/ani_global.h b/core/mac/inc/ani_global.h index 463d85f231..b02de3bd0c 100644 --- a/core/mac/inc/ani_global.h +++ b/core/mac/inc/ani_global.h @@ -783,8 +783,6 @@ struct mac_context { struct vdev_type_nss vdev_type_nss_5g; uint16_t mgmtSeqNum; - /* DBS capability based on INI and FW capability */ - uint8_t hw_dbs_capable; uint32_t sta_sap_scc_on_dfs_chan; sir_mgmt_frame_ind_callback mgmt_frame_ind_cb; qdf_atomic_t global_cmd_id; diff --git a/core/sme/inc/sme_api.h b/core/sme/inc/sme_api.h index 8de5b4780e..e2fd2f4f85 100644 --- a/core/sme/inc/sme_api.h +++ b/core/sme/inc/sme_api.h @@ -1677,8 +1677,6 @@ void sme_set_pdev_ht_vht_ies(mac_handle_t mac_handle, bool enable2x2); void sme_update_vdev_type_nss(mac_handle_t mac_handle, uint8_t max_supp_nss, enum nss_chains_band_info band); -void sme_update_hw_dbs_capable(mac_handle_t mac_handle, uint8_t hw_dbs_capable); - #ifdef FEATURE_P2P_LISTEN_OFFLOAD void sme_register_p2p_lo_event(mac_handle_t mac_handle, void *context, p2p_lo_callback callback); diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index c30a9fa7f1..6a821fa960 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -12865,22 +12865,6 @@ QDF_STATUS sme_set_he_bss_color(mac_handle_t mac_handle, uint8_t session_id, } #endif -/** - * sme_update_hw_dbs_capable() - sets the HW DBS capability - * @mac_handle: Opaque handle to the global MAC context - * @hw_dbs_capable: HW DBS capability - * - * Sets HW DBS capability based on INI and fw capability. - * - * Return: None - */ -void sme_update_hw_dbs_capable(mac_handle_t mac_handle, uint8_t hw_dbs_capable) -{ - struct mac_context *mac_ctx = MAC_CONTEXT(mac_handle); - - mac_ctx->hw_dbs_capable = hw_dbs_capable; -} - #ifdef FEATURE_P2P_LISTEN_OFFLOAD /** * sme_register_p2p_lo_event() - Register for the p2p lo event