qcacmn: Add boundary check for number of APs
Add boundary check for number of APs. Change-Id: I41e36d11bc3e71928866a27afc2fbf046b59f0f5 CRs-Fixed: 1095770
This commit is contained in:

committed by
qcabuildsw

parent
ad16a88062
commit
bf1a9ef0f8
@@ -11291,8 +11291,8 @@ QDF_STATUS send_get_buf_extscan_hotlist_cmd_tlv(wmi_unified_t wmi_handle,
|
|||||||
/* setbssid hotlist expects the bssid list
|
/* setbssid hotlist expects the bssid list
|
||||||
* to be non zero value
|
* to be non zero value
|
||||||
*/
|
*/
|
||||||
if (!numap) {
|
if ((numap <= 0) || (numap > WMI_WLAN_EXTSCAN_MAX_HOTLIST_APS)) {
|
||||||
WMI_LOGE("%s: Invalid number of bssid's", __func__);
|
WMI_LOGE("Invalid number of APs: %d", numap);
|
||||||
return QDF_STATUS_E_INVAL;
|
return QDF_STATUS_E_INVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user