Skip to content

Commit

Permalink
[nrf noup]: qt: Remove reboot for STA_DISCONNECT
Browse files Browse the repository at this point in the history
STA disconnect doesn't require any reboot to perform.

Signed-off-by: Triveni Danda <[email protected]>
  • Loading branch information
D-Triveni committed Feb 28, 2024
1 parent b3cea7b commit 8c53ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qt_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 8c53ace

Please sign in to comment.