Skip to content

Commit 459a63b

Browse files
kapbhnashif
authored andcommitted
net: wifi: Add over run count statistics
Over run count It represents the number of packets dropped either at received and sent due to lack of buffer memory to retain all packets on the network interface. Signed-off-by: Kapil Bhatt <[email protected]>
1 parent 15db232 commit 459a63b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

include/zephyr/net/net_stats.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,9 @@ struct net_stats_wifi {
623623

624624
/** Total number of unicast packets received and sent */
625625
struct net_stats_pkts unicast;
626+
627+
/** Total number of dropped packets at received and sent*/
628+
net_stats_t overrun_count;
626629
};
627630

628631
#if defined(CONFIG_NET_STATISTICS_USER_API)

subsys/net/l2/wifi/wifi_shell.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,7 @@ static void print_wifi_stats(struct net_if *iface, struct net_stats_wifi *data,
877877
PR("Beacons missed : %u\n", data->sta_mgmt.beacons_miss);
878878
PR("Unicast received : %u\n", data->unicast.rx);
879879
PR("Unicast sent : %u\n", data->unicast.tx);
880+
PR("Overrun count : %u\n", data->overrun_count);
880881
}
881882
#endif /* CONFIG_NET_STATISTICS_WIFI && CONFIG_NET_STATISTICS_USER_API */
882883

0 commit comments

Comments
 (0)