From 8c53aceb776cf0d19d3e4cd39b25542b2bb0c10e Mon Sep 17 00:00:00 2001 From: Triveni Danda Date: Wed, 28 Feb 2024 16:04:39 +0530 Subject: [PATCH] [nrf noup]: qt: Remove reboot for STA_DISCONNECT STA disconnect doesn't require any reboot to perform. Signed-off-by: Triveni Danda --- qt_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt_client.c b/qt_client.c index 179d8ff..b789f56 100644 --- a/qt_client.c +++ b/qt_client.c @@ -106,7 +106,7 @@ static void control_receive_message(int sock, void *eloop_ctx, void *sock_ctx) { len = assemble_packet(buffer, BUFFER_LEN, &resp); sendto(sock, (const char *)buffer, len, MSG_CONFIRM, (const struct sockaddr *) &from, fromlen); #ifdef CONFIG_ZEPHYR - if(!strcmp(api->name, "DEVICE_RESET") || !strcmp(api->name, "STA_DISCONNECT")) { + if(!strcmp(api->name, "DEVICE_RESET")) { k_msleep(500); shell_execute_cmd(NULL, "kernel reboot cold"); }