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: I797a32e07175763def71371fc765de8a535e8a5a
CRs-Fixed: 670995
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 791c20d..da92a4d 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -8846,17 +8846,16 @@
     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
     myRate = pAdapter->hdd_stats.ClassA_stat.tx_rate * 5;