|
@@ -128,6 +128,52 @@ cdp_get_peer_sawf_tx_stats(ol_txrx_soc_handle soc, uint32_t svc_id,
|
|
|
mac, data);
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * cdp_sawf_mpdu_stats_req() - Call to subscribe to MPDU stats TLV
|
|
|
+ * @soc: soc handle
|
|
|
+ * @enable: 1: enable 0: disable
|
|
|
+ *
|
|
|
+ * return: status Success/Failure
|
|
|
+ */
|
|
|
+static inline QDF_STATUS
|
|
|
+cdp_sawf_mpdu_stats_req(ol_txrx_soc_handle soc, uint8_t enable)
|
|
|
+{
|
|
|
+ if (!soc || !soc->ops) {
|
|
|
+ dp_cdp_debug("Invalid Instance");
|
|
|
+ QDF_BUG(0);
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (!soc->ops->sawf_ops ||
|
|
|
+ !soc->ops->sawf_ops->sawf_mpdu_stats_req)
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+
|
|
|
+ return soc->ops->sawf_ops->sawf_mpdu_stats_req(soc, enable);
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * cdp_sawf_mpdu_details_stats_req - Call to subscribe to MPDU details stats TLV
|
|
|
+ * @soc: soc handle
|
|
|
+ * @enable: 1: enable 0: disable
|
|
|
+ *
|
|
|
+ * return: status Success/Failure
|
|
|
+ */
|
|
|
+static inline QDF_STATUS
|
|
|
+cdp_sawf_mpdu_details_stats_req(ol_txrx_soc_handle soc, uint8_t enable)
|
|
|
+{
|
|
|
+ if (!soc || !soc->ops) {
|
|
|
+ dp_cdp_debug("Invalid Instance");
|
|
|
+ QDF_BUG(0);
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (!soc->ops->sawf_ops ||
|
|
|
+ !soc->ops->sawf_ops->sawf_mpdu_details_stats_req)
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+
|
|
|
+ return soc->ops->sawf_ops->sawf_mpdu_details_stats_req(soc, enable);
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* cdp_sawf_set_mov_avg_params - Set moving average pararms
|
|
|
* @num_pkt: No of packets per window to calucalte moving average
|
|
@@ -147,7 +193,7 @@ cdp_sawf_set_mov_avg_params(ol_txrx_soc_handle soc,
|
|
|
}
|
|
|
|
|
|
if (!soc->ops->sawf_ops ||
|
|
|
- !soc->ops->sawf_ops->txrx_get_peer_sawf_tx_stats)
|
|
|
+ !soc->ops->sawf_ops->txrx_sawf_set_mov_avg_params)
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
|
|
|
return soc->ops->sawf_ops->txrx_sawf_set_mov_avg_params(num_pkt,
|
|
@@ -173,7 +219,7 @@ cdp_sawf_set_sla_params(ol_txrx_soc_handle soc,
|
|
|
}
|
|
|
|
|
|
if (!soc->ops->sawf_ops ||
|
|
|
- !soc->ops->sawf_ops->txrx_get_peer_sawf_tx_stats)
|
|
|
+ !soc->ops->sawf_ops->txrx_sawf_set_sla_params)
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
|
|
|
return soc->ops->sawf_ops->txrx_sawf_set_sla_params(num_pkt,
|
|
@@ -195,7 +241,7 @@ cdp_sawf_init_telemtery_params(ol_txrx_soc_handle soc)
|
|
|
}
|
|
|
|
|
|
if (!soc->ops->sawf_ops ||
|
|
|
- !soc->ops->sawf_ops->txrx_get_peer_sawf_tx_stats)
|
|
|
+ !soc->ops->sawf_ops->txrx_sawf_init_telemtery_params)
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
|
|
|
return soc->ops->sawf_ops->txrx_sawf_init_telemtery_params();
|