diff options
| author | Padma, Santhosh Kumar <skpadma@qti.qualcomm.com> | 2014-03-04 15:51:07 +0530 |
|---|---|---|
| committer | Akash Patel <c_akashp@qca.qualcomm.com> | 2014-03-06 18:59:43 -0800 |
| commit | 0d4bb6b1c8e16d0b053cbb0a3cb573d7cdfdebeb (patch) | |
| tree | 538fc712c6ad558a8690dfd6dfd4242eef5f06df | |
| parent | 88fafdf8863f020fecc5e8b8433cf1fb31e31a7a (diff) | |
qcacld: HDD: Fix to update nss variable properly
Currently we update variable nss based on variable myRate when
myRate is non-zero. Variable myRate is observed zero which
depends on tx rate received from firmware. This fix updates
variable nss independent of variable myRate.
Change-Id: I6898acc9a430c81fdf7eb2332fbc4d47924ac82d
CRs-Fixed: 623832
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_cfg80211.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c index ae94218d5c52..d1ab5d317aed 100644 --- a/CORE/HDD/src/wlan_hdd_cfg80211.c +++ b/CORE/HDD/src/wlan_hdd_cfg80211.c @@ -7379,14 +7379,19 @@ static int wlan_hdd_cfg80211_get_station(struct wiphy *wiphy, struct net_device //convert to the UI units of 100kbps myRate = pAdapter->hdd_stats.ClassA_stat.tx_rate * 5; #ifdef QCA_WIFI_2_0 - if (!(rate_flags & eHAL_TX_RATE_LEGACY) && myRate) + if (!(rate_flags & eHAL_TX_RATE_LEGACY)) { nss = pAdapter->hdd_stats.ClassA_stat.rx_frag_cnt; - pAdapter->hdd_stats.ClassA_stat.mcs_index = - wlan_hdd_get_mcs_idx(myRate, rate_flags, nss); - hddLog(VOS_TRACE_LEVEL_DEBUG, "computed mcs idx %d from rate:%d", + + if(myRate) + { + pAdapter->hdd_stats.ClassA_stat.mcs_index = + wlan_hdd_get_mcs_idx(myRate, rate_flags, nss); + hddLog(VOS_TRACE_LEVEL_DEBUG, "computed mcs idx %d from rate:%d", pAdapter->hdd_stats.ClassA_stat.mcs_index, myRate); + } + myRate = 0; } #endif |
