From 3f4b5a6f3b64937b5e36f9c0ff58d9b585d9d155 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Wed, 18 Dec 2024 15:19:07 +0200 Subject: [PATCH] net: shell: ping: Do not wait in ICMP Echo-Req Use the net_icmp_send_echo_request_no_wait() when sending ICMP Echo-Req so that we can avoid the warning message from system workqueue handler. Signed-off-by: Jukka Rissanen --- subsys/net/lib/shell/ping.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/subsys/net/lib/shell/ping.c b/subsys/net/lib/shell/ping.c index 410a5aef414..230da3b00ff 100644 --- a/subsys/net/lib/shell/ping.c +++ b/subsys/net/lib/shell/ping.c @@ -272,11 +272,11 @@ static void ping_work(struct k_work *work) params.data = NULL; params.data_size = ctx->payload_size; - ret = net_icmp_send_echo_request(&ctx->icmp, - ctx->iface, - &ctx->addr, - ¶ms, - ctx); + ret = net_icmp_send_echo_request_no_wait(&ctx->icmp, + ctx->iface, + &ctx->addr, + ¶ms, + ctx); if (ret != 0) { PR_WARNING("Failed to send ping, err: %d", ret); ping_done(ctx);