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

Commit cb87a859 authored by Manoj Prabhu B's avatar Manoj Prabhu B
Browse files

diag: Initialize per proc hdlc status flag when switching modes



Reset the hdlc status of each proc whenever there is a switch in
logging mode.

Change-Id: I71189ed5753414989e01e0668fda3b42b5c07c89
Signed-off-by: default avatarManoj Prabhu B <bmanoj@codeaurora.org>
parent daae2461
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1793,6 +1793,7 @@ static int diag_switch_logging_proc(struct diag_logging_mode_param_t *param,
	uint8_t do_switch = 1;

	for (proc = 0; proc < NUM_DIAG_MD_DEV; proc++) {
		driver->proc_hdlc_disabled[proc] = 0;
		local_proc = 1 << proc;
		if (param->device_mask & (local_proc)) {
			curr_mode = driver->logging_mode[proc];