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

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

diag: Fix to proper updation of buffering flag



This patch adressess the proper updation of
buffering flag with the check for streaming buffering
mode against the peripheral's buffering mode.

CRs-Fixed: 1017305
Change-Id: Idc4556e568a42aa2441295c9e3caa3f2c92c4cc6
Signed-off-by: default avatarManoj Prabhu B <bmanoj@codeaurora.org>
parent 0130e341
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1099,7 +1099,7 @@ int diag_send_peripheral_buffering_mode(struct diag_buffering_mode_t *params)
	driver->buffering_mode[peripheral].mode = params->mode;
	driver->buffering_mode[peripheral].low_wm_val = params->low_wm_val;
	driver->buffering_mode[peripheral].high_wm_val = params->high_wm_val;
	if (mode == DIAG_BUFFERING_MODE_STREAMING)
	if (params->mode == DIAG_BUFFERING_MODE_STREAMING)
		driver->buffering_flag[peripheral] = 0;
fail:
	mutex_unlock(&driver->mode_lock);