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

Commit 7f4272bf authored by Katish Paran's avatar Katish Paran
Browse files

diag: Response for 0x7C command



If modem proc has registered for the polling command and is up,
in that case Apps diag should not respond for the 0x7C command.
The 0x7C response should come from modem.

Change-Id: If1f79d19647988d4d909d1a079c46699c7b3ddab
CRs-fixed: 605172
Signed-off-by: default avatarKatish Paran <kparan@codeaurora.org>
parent 538c521c
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -1728,8 +1728,17 @@ int diag_process_apps_pkt(unsigned char *buf, int len)
		encode_rsp_and_send(5);
		return 0;
	}
	 /* Check for ID for NO MODEM present */
	else if (chk_polling_response()) {
	 /*
	  * If the apps processor is master and no other
	  * processor has registered for polling command.
	  * If modem is not up and we have not received feature
	  * mask update from modem, in that case APPS should
	  * respond for 0X7C command
	  */
	else if (chk_apps_master() &&
			!(driver->polling_reg_flag) &&
			!(driver->smd_data[MODEM_DATA].ch) &&
			!(driver->rcvd_feature_mask[MODEM_DATA])) {
		/* respond to 0x0 command */
		if (*buf == 0x00) {
			for (i = 0; i < 55; i++)