Browse Source

qcacld-3.0: Set Netdev Tx/Rx stat counter for IPA uC data path

Netdev Tx/Rx stat counters doesn't reflect packet counter from IPA
offload data path.
Change to add Tx/Rx packet counts from IPA uC data path through IPA uC
stats query.

Change-Id: If80dee818e97f4f75407885c20ee9abf2257be7c
CRs-Fixed: 956283
Yun Park 7 years ago
parent
commit
2aa880cc76
1 changed files with 5 additions and 0 deletions
  1. 5 0
      core/hdd/src/wlan_hdd_main.c

+ 5 - 0
core/hdd/src/wlan_hdd_main.c

@@ -6619,6 +6619,11 @@ 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;
 
+	if (adapter) {
+		adapter->stats.tx_packets += ipa_tx_packets;
+		adapter->stats.rx_packets += ipa_rx_packets;
+	}
+
 	if (!connected) {
 		hdd_err("bus bandwidth timer running in disconnected state");
 		return;