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

Commit b7f80459 authored by Hardik Arya's avatar Hardik Arya
Browse files

diag: Send proper response for get mask command



Currently diag is not returning proper response for
get msg build mask command for new multi-sim commands.
The patch updates the response buffer properly before
sending it to tools.

Change-Id: I7507a2094f469b9322d75011e583c9838711f784
Signed-off-by: default avatarHardik Arya <harya@codeaurora.org>
parent 10da9faf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -893,7 +893,7 @@ static int diag_cmd_get_build_mask(unsigned char *src_buf, int src_len,
		if (src_len < sizeof(struct diag_build_mask_req_sub_t))
			goto fail;
		req_sub = (struct diag_build_mask_req_sub_t *)src_buf;
		rsp_sub.header.cmd_code = DIAG_CMD_MSG_CONFIG;
		rsp_sub.header.cmd_code = req_sub->header.cmd_code;
		rsp_sub.sub_cmd = DIAG_CMD_OP_GET_BUILD_MASK;
		rsp_sub.ssid_first = req_sub->ssid_first;
		rsp_sub.ssid_last = req_sub->ssid_last;