qcacmn: Add support for last_per

Calculate last_per based on unicast packets and success packets
in last one second

Change-Id: I8b469e5d9c1e40498b3267bf7bdf3149159bdc31
CRs-Fixed: 2343479
This commit is contained in:
Amir Patel
2018-11-13 14:29:36 +05:30
committed by nshrivas
parent 2a2b7fecb0
commit 3c60631d7c
3 changed files with 11 additions and 5 deletions

View File

@@ -195,11 +195,6 @@ static void dp_tx_stats_update(struct dp_soc *soc, struct dp_peer *peer,
dp_peer_stats_notify(peer);
if (peer->stats.tx.ucast.num)
peer->stats.tx.last_per = ((peer->stats.tx.ucast.num -
peer->stats.tx.tx_success.num) * 100) /
peer->stats.tx.ucast.num;
#if defined(FEATURE_PERPKT_INFO) && WDI_EVENT_ENABLE
dp_wdi_event_handler(WDI_EVENT_UPDATE_DP_STATS, pdev->soc,
&peer->stats, ppdu->peer_id,