summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Seto <wseto@qti.qualcomm.com>2014-07-16 09:22:44 -0700
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-07-22 22:01:36 -0700
commit3e73848ad71fe32c51f2add48df3a38cc1335af8 (patch)
treef94836a1308276d5ba2e4d67c8953e6f9bb53945
parentf30dcf97eb430170e6b8ecac0789ace36094a0b1 (diff)
wlan: Get stats from firmware irrespective of link-speed configuration
TestWifiWatchdog test is failing because of failing to update summary stats(tx_packets, tx_reties, tx_failed) to framework. Call wlan_hdd_get_station_stats() to get stats from firmware, so that summary stats will be updated, irrespective of ini parameter 'gReportMaxLinkSpeed' configuration. If gReportMaxLinkSpeed is configured to report MAX link-speed then overwrite rate_flags with 'pAdapter->maxRateFlags' Change-Id: Ib30f37be42f25ac17975b607404c0e9472ef97d3 CRs-Fixed: 695161
-rw-r--r--CORE/HDD/src/wlan_hdd_cfg80211.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 437baa5b886f..b65d7d16bb05 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -10794,13 +10794,14 @@ static int __wlan_hdd_cfg80211_get_station(struct wiphy *wiphy,
wlan_hdd_get_rssi(pAdapter, &sinfo->signal);
sinfo->filled |= STATION_INFO_SIGNAL;
+ wlan_hdd_get_station_stats(pAdapter);
+ rate_flags = pAdapter->hdd_stats.ClassA_stat.tx_rate_flags;
+
+ /*overwrite rate_flags if MAX link-speed need to be reported*/
if ((eHDD_LINK_SPEED_REPORT_MAX == pCfg->reportMaxLinkSpeed) ||
(eHDD_LINK_SPEED_REPORT_MAX_SCALED == pCfg-> reportMaxLinkSpeed &&
sinfo->signal >= pCfg->linkSpeedRssiHigh)) {
rate_flags = pAdapter->maxRateFlags;
- } else {
- wlan_hdd_get_station_stats(pAdapter);
- rate_flags = pAdapter->hdd_stats.ClassA_stat.tx_rate_flags;
}
//convert to the UI units of 100kbps