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

Commit 370f6f36 authored by Sreelakshmi Gownipalli's avatar Sreelakshmi Gownipalli Committed by Gerrit - the friendly Code Review server
Browse files

diag: Close the control channel during SSR



Close the control channel when diag receives bye packet from qrtr
during SSR.

Change-Id: I4b26edc1ac6c114b486ca4ad3e1703b296760945
Signed-off-by: default avatarSreelakshmi Gownipalli <sgownipa@codeaurora.org>
parent dabca6e5
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -652,14 +652,11 @@ static void handle_ctrl_pkt(struct diag_socket_info *info, void *buf, int len)
				 info->name);

			mutex_lock(&driver->diag_notifier_mutex);
			if (bootup_req[info->peripheral] == PERIPHERAL_SSR_UP) {
			if (bootup_req[info->peripheral] == PERIPHERAL_SSR_UP)
				DIAG_LOG(DIAG_DEBUG_PERIPHERALS,
				"diag: %s is up, stopping cleanup: bootup_req = %d\n",
				"diag: %s is up, bootup_req = %d\n",
				info->name, (int)bootup_req[info->peripheral]);
			mutex_unlock(&driver->diag_notifier_mutex);
				break;
			}
			mutex_unlock(&driver->diag_notifier_mutex);
			socket_close_channel(info);
		}
		break;