qcacld-3.0: Check for zero/broadcast BSSID in BLM
Currently the BLM does not check the BSSID of the entry for 0 or broadcast BSSID, and thus can lead to addition of many entries with such property. This would also result in removal of old valid BSSID entry data, which is essentially required. Fix is to check the BSSID of the entry for 0 or broadcast, and reject them if not valid. Change-Id: I2939673a1c4efb1a22e03ffe82121513c071fa4b CRs-Fixed: 2595331
This commit is contained in:

committed by
nshrivas

parent
1d4a50bbc7
commit
628d3ef690
@@ -719,6 +719,12 @@ blm_add_bssid_to_reject_list(struct wlan_objmgr_pdev *pdev,
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
if (qdf_is_macaddr_zero(&ap_info->bssid) ||
|
||||
qdf_is_macaddr_group(&ap_info->bssid)) {
|
||||
blm_err("Zero/Broadcast BSSID received, entry not added");
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
status = qdf_mutex_acquire(&blm_ctx->reject_ap_list_lock);
|
||||
if (QDF_IS_STATUS_ERROR(status)) {
|
||||
blm_err("failed to acquire reject_ap_list_lock");
|
||||
|
Reference in New Issue
Block a user