From 4c2f9d9d90491007b59c7486484bb989520e106f Mon Sep 17 00:00:00 2001 From: gbian Date: Thu, 29 Sep 2016 17:27:04 +0800 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_stats.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/hdd/src/wlan_hdd_stats.c b/core/hdd/src/wlan_hdd_stats.c index c24dfe39d2c2..f6ee0d00a6df 100644 --- a/core/hdd/src/wlan_hdd_stats.c +++ b/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] +