Skip to content

Commit f8c53c0

Browse files
Krishna Ttmon-nordic
authored andcommitted
[nrf fromtree] net: l2: wifi: Log packet errors
Log packet errors, this is handy for debugging. Signed-off-by: Krishna T <[email protected]> (cherry picked from commit 50c1f85)
1 parent b2af5aa commit f8c53c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

subsys/net/l2/wifi/wifi_shell.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,8 @@ static void print_wifi_stats(struct net_if *iface, struct net_stats_wifi *data,
388388
shell_fprintf(sh, SHELL_NORMAL, "Bytes sent : %u\n", data->bytes.sent);
389389
shell_fprintf(sh, SHELL_NORMAL, "Packets received : %u\n", data->pkts.rx);
390390
shell_fprintf(sh, SHELL_NORMAL, "Packets sent : %u\n", data->pkts.tx);
391+
shell_fprintf(sh, SHELL_NORMAL, "Receive errors : %u\n", data->errors.rx);
392+
shell_fprintf(sh, SHELL_NORMAL, "Send errors : %u\n", data->errors.tx);
391393
shell_fprintf(sh, SHELL_NORMAL, "Bcast received : %u\n", data->broadcast.rx);
392394
shell_fprintf(sh, SHELL_NORMAL, "Bcast sent : %u\n", data->broadcast.tx);
393395
shell_fprintf(sh, SHELL_NORMAL, "Mcast received : %u\n", data->multicast.rx);

0 commit comments

Comments
 (0)