Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57816a11 authored by Jianmin Zhu's avatar Jianmin Zhu Committed by Madan Koyyalamudi
Browse files

qcacld-3.0: Fix sme_get_rssi_snr_by_bssid failure

Afte DUT sta connected, when sme_get_rssi_snr_by_bssid is called to get
RSSI of current AP, only bssid is needed in scan filter.
If freq list, security are added into scan filter, can't get any scan
result and AP RSSI.

Change-Id: If96edc8768a6b2c8d729afcf479c84339517468e
CRs-Fixed: 3029559
parent 3ef9b068
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -14300,19 +14300,11 @@ QDF_STATUS sme_get_rssi_snr_by_bssid(mac_handle_t mac_handle,
		goto exit;
	}

	status = csr_roam_get_scan_filter_from_profile(mac_ctx,
						       profile, scan_filter,
						       false, vdev_id);
	if (QDF_STATUS_SUCCESS != status) {
		sme_err("prepare_filter failed");
		qdf_mem_free(scan_filter);
		goto exit;
	}

	/* update filter to get scan result with just target BSSID */
	scan_filter->num_of_bssid = 1;
	qdf_mem_copy(scan_filter->bssid_list[0].bytes,
		     bssid, sizeof(struct qdf_mac_addr));
	scan_filter->ignore_auth_enc_type = true;

	status = csr_scan_get_result(mac_ctx, scan_filter, &result_handle,
				     false);