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

Commit ded9e8c2 authored by Huashan Qu's avatar Huashan Qu Committed by Madan Koyyalamudi
Browse files

qcacld-3.0: Return success when firmware doesn't support 11k offload

Return success when firmware doesn't support 11k offload, or else
subsequent roaming related wmi commands have no chance to issue.

Change-Id: I69d55cca63f2b7ab4787295a2825159395cf2a11
CRs-Fixed: 2976163
parent e72f5e86
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -746,14 +746,14 @@ target_if_cm_roam_offload_11k_params(wmi_unified_t wmi_handle,
	if (!wmi_service_enabled(wmi_handle,
				 wmi_service_11k_neighbour_report_support)) {
		target_if_err("FW doesn't support 11k offload");
		return QDF_STATUS_E_NOSUPPORT;
		return QDF_STATUS_SUCCESS;
	}

	/* If 11k enable command and ssid length is 0, drop it */
	if (req->offload_11k_bitmask &&
	    !req->neighbor_report_params.ssid.length) {
		target_if_debug("SSID Len 0");
		return QDF_STATUS_E_INVAL;
		return QDF_STATUS_SUCCESS;
	}

	status = wmi_unified_offload_11k_cmd(wmi_handle, req);