qcacmn: Fix error while adding beacons with CSA IE

Fix error while processing beacon with CSA IE.
Log the event and add the beacon/probe with CSA IE in
database.

Change-Id: Ia7552460e91a50888ef04e0ebd79a0350dd16d1a
CRs-Fixed: 2033231
This commit is contained in:
Abhishek Singh 2017-04-12 14:58:08 +05:30 • committed by snandini
commit d9e8b4f531

View file

@ -458,17 +458,17 @@ static QDF_STATUS scm_add_update_entry(struct scan_dbs *scan_db,
{
QDF_STATUS status;
/* SSID shouldn't be NULL in probe resp */
if (scan_params->frm_subtype ==
MGMT_SUBTYPE_PROBE_RESP &&
!scan_params->ie_list.ssid)
return QDF_STATUS_E_INVAL;
scm_info("Probe resp doesnt contain SSID");
/* CSA or ECSA present ignore */
if (scan_params->ie_list.csa ||
scan_params->ie_list.xcsa ||
scan_params->ie_list.cswrp)
return QDF_STATUS_E_INVAL;
scm_info("CSA IE present for BSSID: %pM",
scan_params->bssid.bytes);
scm_find_duplicate_and_del(scan_db, scan_params);
status = scm_add_scan_entry(scan_db, scan_params);