qcacld-3.0: Drop the blacklist event if no APs are present
Currently, target_if forwards the blacklist event to upper layers even if there is no AP info present. This event can be dropped in target_if to avoid accessing unallocated memory. Change-Id: Icfaabb0a8e3304882979ffde7f5cd27fd4c8a067 CRs-Fixed: 3057424
This commit is contained in:

کامیت شده توسط
Madan Koyyalamudi

والد
a3828df476
کامیت
b0b8c6afb5
@@ -2711,11 +2711,8 @@ extract_btm_blacklist_event(wmi_unified_t wmi_handle,
|
||||
}
|
||||
|
||||
num_entries = param_buf->num_blacklist_with_timeout;
|
||||
if (num_entries == 0) {
|
||||
/* no aps to blacklist just return*/
|
||||
wmi_err("No APs in blacklist received");
|
||||
if (num_entries == 0)
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
if (num_entries > MAX_RSSI_AVOID_BSSID_LIST) {
|
||||
wmi_err("num blacklist entries:%d exceeds maximum value",
|
||||
|
مرجع در شماره جدید
Block a user