From f8c53c0836a00e8101381666cdf2cf8af90d3162 Mon Sep 17 00:00:00 2001 From: Krishna T Date: Fri, 24 Feb 2023 02:21:56 +0530 Subject: [PATCH] [nrf fromtree] net: l2: wifi: Log packet errors Log packet errors, this is handy for debugging. Signed-off-by: Krishna T (cherry picked from commit 50c1f857e0743e7ed70a0a43ff2193e4f94a9f08) --- subsys/net/l2/wifi/wifi_shell.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subsys/net/l2/wifi/wifi_shell.c b/subsys/net/l2/wifi/wifi_shell.c index 57c55d7ccaa..3e9bcdecafe 100644 --- a/subsys/net/l2/wifi/wifi_shell.c +++ b/subsys/net/l2/wifi/wifi_shell.c @@ -388,6 +388,8 @@ static void print_wifi_stats(struct net_if *iface, struct net_stats_wifi *data, shell_fprintf(sh, SHELL_NORMAL, "Bytes sent : %u\n", data->bytes.sent); shell_fprintf(sh, SHELL_NORMAL, "Packets received : %u\n", data->pkts.rx); shell_fprintf(sh, SHELL_NORMAL, "Packets sent : %u\n", data->pkts.tx); + shell_fprintf(sh, SHELL_NORMAL, "Receive errors : %u\n", data->errors.rx); + shell_fprintf(sh, SHELL_NORMAL, "Send errors : %u\n", data->errors.tx); shell_fprintf(sh, SHELL_NORMAL, "Bcast received : %u\n", data->broadcast.rx); shell_fprintf(sh, SHELL_NORMAL, "Bcast sent : %u\n", data->broadcast.tx); shell_fprintf(sh, SHELL_NORMAL, "Mcast received : %u\n", data->multicast.rx);