From 81c973e1d777874afee738fa3136bb2bd8f7c1e3 Mon Sep 17 00:00:00 2001 From: Yun Park Date: Tue, 1 May 2018 15:36:06 -0700 Subject: [PATCH] Revert "qcacld-3.0: Update IPA uC TXRX stats to adapter stats" This reverts Change-Id: Ib6b112c8891da753be3782ff621191e5edc4d925 Change-Id: I7bfde78e67ca9c9edd9e25b69a2c55ffe1c9b87e CRs-Fixed: 2234379 --- core/hdd/src/wlan_hdd_ipa.c | 11 ++--------- core/hdd/src/wlan_hdd_main.c | 3 --- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/core/hdd/src/wlan_hdd_ipa.c b/core/hdd/src/wlan_hdd_ipa.c index 6e9eb7b80eb7..69ff23e46a7b 100644 --- a/core/hdd/src/wlan_hdd_ipa.c +++ b/core/hdd/src/wlan_hdd_ipa.c @@ -382,15 +382,8 @@ void hdd_ipa_send_skb_to_network(qdf_nbuf_t skb, qdf_netdev_t dev) cpu_index = wlan_hdd_get_cpu(); ++adapter->hdd_stats.tx_rx_stats.rx_packets[cpu_index]; - - /* - * Update STA RX exception packet stats. - * For SAP as part of IPA HW stats are updated. - */ - if (adapter->device_mode == QDF_STA_MODE) { - ++adapter->stats.rx_packets; - adapter->stats.rx_bytes += skb->len; - } + ++adapter->stats.rx_packets; + adapter->stats.rx_bytes += skb->len; result = hdd_ipa_aggregated_rx_ind(skb); if (result == NET_RX_SUCCESS) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 8f9621324e81..94f22cca6e48 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -7280,9 +7280,6 @@ static void hdd_bus_bw_work_handler(struct work_struct *work) tx_packets += (uint64_t)ipa_tx_packets; rx_packets += (uint64_t)ipa_rx_packets; - adapter->stats.tx_packets += ipa_tx_packets; - adapter->stats.rx_packets += ipa_rx_packets; - ucfg_ipa_set_perf_level(hdd_ctx->hdd_pdev, tx_packets, rx_packets); ucfg_ipa_uc_stat_request(hdd_ctx->hdd_pdev, 2); }