qcacld-3.0: Fix radio_stats to handle num_radios more than 1
In case of multiple radio, driver need to wait until it receives
all the radios stats and tx power levels stats and then
post the radio stats to user space.
Change-Id: I6e4f9ac8f0d2950551301589dfd8332e8c349605
CRs-Fixed: 992365
diff --git a/core/mac/inc/sir_api.h b/core/mac/inc/sir_api.h
index 8ab3e32..5f98bcc 100644
--- a/core/mac/inc/sir_api.h
+++ b/core/mac/inc/sir_api.h
@@ -5046,7 +5046,7 @@
uint32_t tx_time_per_tpc[MAX_TPC_LEVELS];
/* channel statistics tSirWifiChannelStats */
- tSirWifiChannelStats channels[0];
+ tSirWifiChannelStats *channels;
} tSirWifiRadioStat, *tpSirWifiRadioStat;
/* per rate statistics */
@@ -5238,6 +5238,7 @@
uint8_t ifaceId;
uint32_t rspId;
uint32_t moreResultToFollow;
+ uint32_t nr_received;
union {
uint32_t num_peers;
uint32_t num_radio;