qcacld-3.0: Reject scan cmd if ie length greater than max allowed
Firmware cannot handle scan IE more than a certain size owing to memory restrictions. Check the scan IE length before passing params to firmware. Change-Id: I73321a9d4932f4cbb876de904dacecf15c9083ff CRs-Fixed: 2159363
This commit is contained in:
parent
247554ce79
commit
7cc925c403
@ -202,6 +202,12 @@ QDF_STATUS wma_get_buf_start_scan_cmd(tp_wma_handle wma_handle,
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
if (scan_req->uIEFieldLen > WLAN_SCAN_PARAMS_MAX_IE_LEN) {
|
||||
WMA_LOGD(FL("scan_ie_len (%d) greater than max (%d)"),
|
||||
scan_req->uIEFieldLen, WLAN_SCAN_PARAMS_MAX_IE_LEN);
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
cmd->vdev_id = scan_req->sessionId;
|
||||
/*
|
||||
* host cycles through the lower 12 bits for scan id generation
|
||||
|
Loading…
Reference in New Issue
Block a user