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

Commit d98ce55f authored by Sreelakshmi Gownipalli's avatar Sreelakshmi Gownipalli
Browse files

diag: Set the number of log codes for DCI correctly



Set the number of log codes for the equipment id correctly
while sending the dci log mask control packet to peripherals.

Change-Id: Ie069652967fdc0df6706557222523b94c9cf559e
Signed-off-by: default avatarSreelakshmi Gownipalli <sgownipa@codeaurora.org>
parent fd1798d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2578,7 +2578,7 @@ static int dci_fill_log_mask(unsigned char *dest_ptr, unsigned char *src_ptr)
	int header_len = sizeof(struct diag_ctrl_log_mask);

	header.cmd_type = DIAG_CTRL_MSG_LOG_MASK;
	header.num_items = DCI_MAX_ITEMS_PER_LOG_CODE;
	header.num_items = LOG_SIZE_TO_ITEMS(DCI_MAX_ITEMS_PER_LOG_CODE);
	header.data_len = 11 + DCI_MAX_ITEMS_PER_LOG_CODE;
	header.stream_id = DCI_MASK_STREAM;
	header.status = 3;