mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
Merge "qcacld-3.0: Do not send limit_off_chan param if vdev is not up" into wlan-cld3.driver.lnx.2.0-dev
This commit is contained in:
commit
289abe261d
1 changed files with 10 additions and 0 deletions
|
|
@ -7096,6 +7096,16 @@ static QDF_STATUS wma_process_limit_off_chan(tp_wma_handle wma_handle,
|
|||
int32_t err;
|
||||
struct wmi_limit_off_chan_param limit_off_chan_param;
|
||||
|
||||
if (param->vdev_id >= wma_handle->max_bssid) {
|
||||
WMA_LOGE(FL("Invalid vdev_id: %d"), param->vdev_id);
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
if (!wma_is_vdev_up(param->vdev_id)) {
|
||||
WMA_LOGE("vdev %d is not up skipping limit_off_chan_param",
|
||||
param->vdev_id);
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
limit_off_chan_param.vdev_id = param->vdev_id;
|
||||
limit_off_chan_param.status = param->is_tos_active;
|
||||
limit_off_chan_param.max_offchan_time = param->max_off_chan_time;
|
||||
|
|
|
|||
Loading…
Reference in a new issue