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

Commit 51d366f6 authored by Alok Kumar's avatar Alok Kumar Committed by nshrivas
Browse files

qcacld-3.0: Copy bitmap in WMI_SERVICE_SEGMENT_BM_SIZE32 chunk

Host uses WMI_SERVIE_EXT_BM_SIZE32, it allocates the number of
A_UINT32 words needed to store the WMI_SERVICE flags that it knows
about, but that may not be enough to cover the WMI_SERVICE flags
reported by the target.

Allocate WMI_SERVICE bitmap in WMI_SERVICE_SEGMENT_BM_SIZE32 chunks
in the host, rather than in A_UINT32 chunks.

Change-Id: Ie0511f5057117cc28fd682dc856e6bc05b87d7c4
CRs-Fixed: 2542196
parent 3762b860
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2365,7 +2365,7 @@ static int wma_rx_service_available_event(void *handle, uint8_t *cmd_param_info,
	wma_handle->wmi_service_ext_offset = ev->wmi_service_segment_offset;
	qdf_mem_copy(wma_handle->wmi_service_ext_bitmap,
		     &ev->wmi_service_segment_bitmap[0],
				WMI_SERVICE_EXT_BM_SIZE32 * sizeof(A_UINT32));
		     WMI_SERVICE_SEGMENT_BM_SIZE32 * sizeof(A_UINT32));

	return 0;
}