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

Commit c1f6688e authored by Mohit Aggarwal's avatar Mohit Aggarwal Committed by Gerrit - the friendly Code Review server
Browse files

diag: Do not notify DCI client for initial packet from peripheral



Currently diag driver is sending notification to
DCI client on receiving initial packet from
peripheral. This patch will fix this issue.

Change-Id: I142b3dfe9d935b3d83492de7fd8780f31fe75c91
Signed-off-by: default avatarMohit Aggarwal <maggarwa@codeaurora.org>
parent d3846f3c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -917,6 +917,9 @@ static int diag_socket_read(void *ctxt, unsigned char *buf, int buf_len)
			 * channel open for communication.
			 */
			memcpy(&info->remote_addr, &src_addr, sizeof(src_addr));
			if (info->ins_id == INST_ID_DCI)
				atomic_set(&info->opened, 1);
			else
				__socket_open_channel(info);
		}