Переглянути джерело

qcacld-3.0: Update tx retries from host dp vdev stats

Currently host updates tx retries for get sta info command in
connected case from fw peer stats, based on new requirement,
update these stats from host data path vdev stats.

Change-Id: Ie87cb2018d6b3d5d1f3931f40c41f15116079976
CRs-Fixed: 3292051
Ashish Kumar Dhanotiya 2 роки тому
батько
коміт
2cb6c9089d
1 змінених файлів з 7 додано та 2 видалено
  1. 7 2
      core/hdd/src/wlan_hdd_station_info.c

+ 7 - 2
core/hdd/src/wlan_hdd_station_info.c

@@ -1614,6 +1614,7 @@ static int hdd_get_peer_stats(struct hdd_adapter *adapter,
 {
 	void *soc = cds_get_context(QDF_MODULE_ID_SOC);
 	struct cdp_peer_stats *peer_stats;
+	struct cds_vdev_dp_stats dp_stats;
 	struct stats_event *stats;
 	QDF_STATUS status;
 	int i, ret = 0;
@@ -1650,8 +1651,12 @@ static int hdd_get_peer_stats(struct hdd_adapter *adapter,
 		return -EINVAL;
 	}
 
-	stainfo->tx_retry_succeed = stats->peer_stats_info_ext->tx_retries -
-				    stats->peer_stats_info_ext->tx_failed;
+	if (cds_dp_get_vdev_stats(adapter->vdev_id, &dp_stats))
+		stainfo->tx_retry_succeed =
+					dp_stats.tx_mpdu_success_with_retries;
+	else
+		hdd_err("failed to get dp vdev stats");
+
 	/* This host counter is not supported
 	 * since currently tx retry is not done in host side
 	 */