qcacmn: Enable support for Tx OTA Ack stats

Retrieve Tx OTA stats through cdp api.

Change-Id: I4bff475e4f3364fef181b4c52022a145a879a4c4
CRs-Fixed: 2211900
Tento commit je obsažen v:
Alok Kumar
2018-03-19 19:30:40 +05:30
odevzdal nshrivas
rodič 87f18a3869
revize f1d9fe23cf
2 změnil soubory, kde provedl 24 přidání a 1 odebrání

Zobrazit soubor

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -341,6 +341,28 @@ cdp_get_vdev_id(ol_txrx_soc_handle soc, struct cdp_vdev *vdev)
return 0;
}
/**
* cdp_get_tx_ack_stats() - get tx ack count for vdev
* @soc - data path soc handle
* @vdev_id - vdev id
*
* return tx ack count
* 0 invalid count
*/
static inline uint32_t
cdp_get_tx_ack_stats(ol_txrx_soc_handle soc, uint8_t vdev_id)
{
if (!soc || !soc->ops || !soc->ops->misc_ops) {
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
"%s invalid instance", __func__);
return 0;
}
if (soc->ops->misc_ops->get_tx_ack_stats)
return soc->ops->misc_ops->get_tx_ack_stats(vdev_id);
return 0;
}
/**
* cdp_bad_peer_txctl_set_setting() - TBD
* @soc - data path soc handle