qcacmn: Use target if component for VDEV manager response path

Currently, VDEV manager responses are using legacy path instead of
target_if, vdev_mgr and os_if components. As the driver implementation
is planned for converged model, legacy implementation will be moved to
the respective components.

To avoid rework, Use target_if, vdev_mgr and os_if components to process
the FW responses corresponding to the vdev manager.

Change-Id: I778f6de93481fc730383e8f8e1c604f173947d69
CRs-Fixed: 3093776
This commit is contained in:
Bapiraju Alla
2021-12-14 17:23:54 +05:30
کامیت شده توسط Madan Koyyalamudi
والد df5cc86477
کامیت 76caeb9b44
11فایلهای تغییر یافته به همراه380 افزوده شده و 0 حذف شده

مشاهده پرونده

@@ -47,6 +47,21 @@ static void mlme_cm_ops_deinit(void)
glbl_cm_ops = NULL;
}
struct mlme_vdev_mgr_ops *glbl_vdev_mgr_ops;
osif_vdev_mgr_get_global_ops_cb glbl_vdev_mgr_ops_cb;
static void mlme_vdev_mgr_ops_init(void)
{
if (glbl_vdev_mgr_ops_cb)
glbl_vdev_mgr_ops = glbl_vdev_mgr_ops_cb();
}
static void mlme_vdev_mgr_ops_deinit(void)
{
if (glbl_vdev_mgr_ops_cb)
glbl_vdev_mgr_ops = NULL;
}
QDF_STATUS wlan_cmn_mlme_init(void)
{
QDF_STATUS status;
@@ -68,6 +83,8 @@ QDF_STATUS wlan_cmn_mlme_init(void)
mlme_cm_ops_init();
mlme_vdev_mgr_ops_init();
return QDF_STATUS_SUCCESS;
}
@@ -75,6 +92,7 @@ QDF_STATUS wlan_cmn_mlme_deinit(void)
{
QDF_STATUS status;
mlme_vdev_mgr_ops_deinit();
status = wlan_vdev_mlme_deinit();
if (status != QDF_STATUS_SUCCESS)
return status;
@@ -574,6 +592,12 @@ bool mlme_max_chan_switch_is_set(struct wlan_objmgr_psoc *psoc)
return phy_config->max_chan_switch_ie;
}
void mlme_set_osif_vdev_mgr_cb(
osif_vdev_mgr_get_global_ops_cb mlme_vdev_mgr_osif_ops)
{
glbl_vdev_mgr_ops_cb = mlme_vdev_mgr_osif_ops;
}
#ifdef WLAN_FEATURE_DYNAMIC_MAC_ADDR_UPDATE
QDF_STATUS mlme_vdev_ops_send_set_mac_address(struct qdf_mac_addr mac_addr,
struct qdf_mac_addr mld_addr,
@@ -587,4 +611,13 @@ QDF_STATUS mlme_vdev_ops_send_set_mac_address(struct qdf_mac_addr mac_addr,
return ret;
}
void mlme_vdev_mgr_notify_set_mac_addr_response(uint8_t vdev_id,
uint8_t resp_status)
{
if (glbl_vdev_mgr_ops &&
glbl_vdev_mgr_ops->mlme_vdev_mgr_set_mac_addr_response)
glbl_vdev_mgr_ops->mlme_vdev_mgr_set_mac_addr_response(
vdev_id, resp_status);
}
#endif