|
@@ -1516,7 +1516,8 @@ static int wma_unified_radio_tx_power_level_stats_event_handler(void *handle,
|
|
|
fixed_param->radio_id;
|
|
|
tx_power_level_values = (uint8_t *) param_tlvs->tx_time_per_power_level;
|
|
|
|
|
|
- if (fixed_param->total_num_tx_power_levels >
|
|
|
+ if (rs_results->total_num_tx_power_levels &&
|
|
|
+ fixed_param->total_num_tx_power_levels >
|
|
|
rs_results->total_num_tx_power_levels) {
|
|
|
WMA_LOGE("%s: excess tx_power buffers:%d, total_num_tx_power_levels:%d",
|
|
|
__func__, fixed_param->total_num_tx_power_levels,
|