mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
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:
parent
c606ed04ef
commit
089c33e336
1 changed files with 2 additions and 2 deletions
|
|
@ -11291,8 +11291,8 @@ QDF_STATUS send_get_buf_extscan_hotlist_cmd_tlv(wmi_unified_t wmi_handle,
|
|||
/* setbssid hotlist expects the bssid list
|
||||
* to be non zero value
|
||||
*/
|
||||
if (!numap) {
|
||||
WMI_LOGE("%s: Invalid number of bssid's", __func__);
|
||||
if ((numap <= 0) || (numap > WMI_WLAN_EXTSCAN_MAX_HOTLIST_APS)) {
|
||||
WMI_LOGE("Invalid number of APs: %d", numap);
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue