Skip to content

Commit

Permalink
[nrf fromtree] net: l2: wifi: Log packet errors
Browse files Browse the repository at this point in the history
Log packet errors, this is handy for debugging.

Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
(cherry picked from commit 50c1f85)
  • Loading branch information
Krishna T authored and tmon-nordic committed Feb 24, 2023
1 parent b2af5aa commit f8c53c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions subsys/net/l2/wifi/wifi_shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f8c53c0

Please sign in to comment.