qcacmn: Separate MEC, DA and WDS Enable Flags

Add new flags for MEC and DA enable/disable
and keep it independent of WDS enable flag

Change-Id: Idb49c45ebb34a38f876dbdb293806c4e96d49b5d
CRs-Fixed: 2336332
This commit is contained in:
phadiman
2018-10-29 12:50:02 +05:30
committed by nshrivas
parent a999ec4a42
commit 4213e9ca61
7 changed files with 85 additions and 4 deletions

View File

@@ -408,6 +408,27 @@ static inline void cdp_tx_flush_buffers
soc->ops->ctrl_ops->tx_flush_buffers(vdev);
}
static inline uint32_t cdp_txrx_get_vdev_param(ol_txrx_soc_handle soc,
struct cdp_vdev *vdev,
enum cdp_vdev_param_type type)
{
if (!soc || !soc->ops) {
QDF_TRACE(QDF_MODULE_ID_CDP, QDF_TRACE_LEVEL_DEBUG,
"%s: Invalid Instance:", __func__);
QDF_BUG(0);
return -1;
}
if (!soc->ops->ctrl_ops ||
!soc->ops->ctrl_ops->txrx_get_vdev_param) {
QDF_TRACE(QDF_MODULE_ID_CDP, QDF_TRACE_LEVEL_DEBUG,
"%s: callback not registered:", __func__);
return -1;
}
return soc->ops->ctrl_ops->txrx_get_vdev_param(vdev, type);
}
static inline void cdp_txrx_set_vdev_param(ol_txrx_soc_handle soc,
struct cdp_vdev *vdev, enum cdp_vdev_param_type type,
uint32_t val)