qcacmn: Add target_if/mlme/vdev_mgr for vdev mgmt ops

Add target_if/mlme/vdev_mgr to handle vdev
mgmt related ops inorder to send corresponding
requests to WMI and processing response events
and Tx callbacks are introduced in MLME LMAC
Tx Ops structure which are initialized from
target_if main.

Change-Id: I9d02b17fdb04757d7dc523dd41e409c0fb1e5edf
CRs-Fixed: 2383346
This commit is contained in:
Naga
2019-01-18 13:14:49 +05:30
committed by nshrivas
parent 916a4b1e96
commit f3a70cea4e
5 changed files with 1496 additions and 0 deletions

View File

@@ -76,6 +76,10 @@
#include <target_if_crypto.h>
#endif
#ifdef CMN_VDEV_MGR_TGT_IF_ENABLE
#include <target_if_vdev_mgr_tx_ops.h>
#endif
static struct target_if_ctx *g_target_if_ctx;
struct target_if_ctx *target_if_get_ctx()
@@ -369,6 +373,20 @@ target_if_cp_stats_tx_ops_register(struct wlan_lmac_if_tx_ops *tx_ops)
return target_if_cp_stats_register_tx_ops(tx_ops);
}
#ifdef CMN_VDEV_MGR_TGT_IF_ENABLE
static QDF_STATUS
target_if_vdev_mgr_tx_ops_register(struct wlan_lmac_if_tx_ops *tx_ops)
{
return target_if_vdev_mgr_register_tx_ops(tx_ops);
}
#else
static QDF_STATUS
target_if_vdev_mgr_tx_ops_register(struct wlan_lmac_if_tx_ops *tx_ops)
{
return QDF_STATUS_SUCCESS;
}
#endif
#ifdef QCA_WIFI_FTM
static
void target_if_ftm_tx_ops_register(struct wlan_lmac_if_tx_ops *tx_ops)
@@ -419,6 +437,8 @@ QDF_STATUS target_if_register_umac_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops)
target_if_crypto_tx_ops_register(tx_ops);
target_if_vdev_mgr_tx_ops_register(tx_ops);
/* Converged UMAC components to register their TX-ops here */
return QDF_STATUS_SUCCESS;
}