diff options
| author | Service qcabuildsw <qcabuildsw@localhost> | 2016-09-20 17:45:14 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-09-20 17:45:14 -0700 |
| commit | 1fbb72bde0b28eb775fe42947f77794751810a82 (patch) | |
| tree | 8395c155a0625990640900d0d35e77bdfd5be7c7 | |
| parent | f96d23aa349e279d3bd4b117929a872b5742a4f0 (diff) | |
| parent | 32be083b3d8795f46c66c50af3a38c64d72c1ba7 (diff) | |
Merge "qcacld-3.0: Fix the bug in populating the ll stats" into wlan-cld3.driver.lnx.1.1-dev
| -rw-r--r-- | core/wma/src/wma_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/wma/src/wma_utils.c b/core/wma/src/wma_utils.c index 866149dc82ee..945e139adfc2 100644 --- a/core/wma/src/wma_utils.c +++ b/core/wma/src/wma_utils.c @@ -497,7 +497,7 @@ static int wma_unified_link_peer_stats_event_handler(void *handle, wmi_rate_stats *rate_stats; tSirLLStatsResults *link_stats_results; uint8_t *results, *t_peer_stats, *t_rate_stats; - uint32_t count, num_rates = 0; + uint32_t count, num_rates = 0, rate_cnt; uint32_t next_res_offset, next_peer_offset, next_rate_offset; size_t peer_info_size, peer_stats_size, rate_stats_size; size_t link_stats_results_size; @@ -585,7 +585,7 @@ static int wma_unified_link_peer_stats_event_handler(void *handle, next_res_offset = peer_stats_size; next_peer_offset = WMI_TLV_HDR_SIZE; next_rate_offset = WMI_TLV_HDR_SIZE; - for (count = 0; count < fixed_param->num_peers; count++) { + for (rate_cnt = 0; rate_cnt < fixed_param->num_peers; rate_cnt++) { WMA_LOGD("Peer Info:"); WMA_LOGD("peer_type %u capabilities %u num_rates %u", peer_stats->peer_type, peer_stats->capabilities, |
