[qca-nss-drv]: wifi offload tx/rx byte stats update
Updating Tx/Rx byte count stats for led to work
properly with NSS wifi offload.
Change-Id: I5c7b2cb5ff9f8d38d8cfa72147b0335256f5c3f1
Signed-off-by: Ankit Dhanuka <adhanuka@codeaurora.org>
diff --git a/nss_wifi.c b/nss_wifi.c
index 5aed7a2..c80b163 100644
--- a/nss_wifi.c
+++ b/nss_wifi.c
@@ -49,6 +49,8 @@
nss_top->stats_wifi[radio_id][NSS_STATS_WIFI_RX_INV_PEER_RCV_CNT] += stats->rx_inv_peer_rcv_cnt;
nss_top->stats_wifi[radio_id][NSS_STATS_WIFI_RX_PN_CHECK_FAILED] += stats->rx_pn_check_failed;
nss_top->stats_wifi[radio_id][NSS_STATS_WIFI_RX_DELIVERED] += stats->rx_pkts_deliverd;
+ nss_top->stats_wifi[radio_id][NSS_STATS_WIFI_RX_BYTES_DELIVERED] += stats->rx_bytes_deliverd;
+ nss_top->stats_wifi[radio_id][NSS_STATS_WIFI_TX_BYTES_COMPLETED] += stats->tx_bytes_transmit_completions;
spin_unlock_bh(&nss_top->stats_lock);
}