ソースを参照

qcacld-3.0: Change to calculate tx_retries from the right source

qcacld-2.0 to qcacld-3.0 propagation

Change the logic to get tx_retries from multiple_retry_cnt.
Currently tx_retries calculate from summary_stat.retry_cnt[] which
are not initialized in current code. FW will enable
FW_REPORT_TX_STATS_PER_VDEV feature and add multiple_retry_cnt
support.

Change-Id: Idf3ba2cc7fa3ab287256a850555bb50e8a117bd2
CRs-Fixed: 1061540
gbian 8 年 前
コミット
4c2f9d9d90
1 ファイル変更4 行追加4 行削除
  1. 4 4
      core/hdd/src/wlan_hdd_stats.c

+ 4 - 4
core/hdd/src/wlan_hdd_stats.c

@@ -2112,10 +2112,10 @@ static int __wlan_hdd_cfg80211_get_station(struct wiphy *wiphy,
 		pAdapter->hdd_stats.summary_stat.tx_frm_cnt[3];
 
 	sinfo->tx_retries =
-		pAdapter->hdd_stats.summary_stat.retry_cnt[0] +
-		pAdapter->hdd_stats.summary_stat.retry_cnt[1] +
-		pAdapter->hdd_stats.summary_stat.retry_cnt[2] +
-		pAdapter->hdd_stats.summary_stat.retry_cnt[3];
+		pAdapter->hdd_stats.summary_stat.multiple_retry_cnt[0] +
+		pAdapter->hdd_stats.summary_stat.multiple_retry_cnt[1] +
+		pAdapter->hdd_stats.summary_stat.multiple_retry_cnt[2] +
+		pAdapter->hdd_stats.summary_stat.multiple_retry_cnt[3];
 
 	sinfo->tx_failed =
 		pAdapter->hdd_stats.summary_stat.fail_cnt[0] +