mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-18 10:42:19 -04:00
Merge "qcacld-3.0: Check radio id for FW event" into wlan-cld3.driver.lnx.2.0-dev
This commit is contained in:
commit
bb3aa0a5dd
1 changed files with 7 additions and 0 deletions
|
|
@ -1634,6 +1634,13 @@ static int wma_unified_link_radio_stats_event_handler(void *handle,
|
|||
}
|
||||
link_stats_results = wma_handle->link_stats_results;
|
||||
|
||||
if (radio_stats->radio_id >= link_stats_results->num_radio) {
|
||||
WMA_LOGE("%s, invalid radio id:%d, num radio:%d",
|
||||
__func__, radio_stats->radio_id,
|
||||
link_stats_results->num_radio);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
WMA_LOGD("Radio stats Fixed Param:");
|
||||
WMA_LOGD("req_id: %u num_radio: %u more_radio_events: %u",
|
||||
fixed_param->request_id, fixed_param->num_radio,
|
||||
|
|
|
|||
Loading…
Reference in a new issue