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 <kapil.bhatt@nordicsemi.no>
This commit is contained in:
parent
15db23223a
commit
459a63b137
2 changed files with 4 additions and 0 deletions
|
|
@ -623,6 +623,9 @@ struct net_stats_wifi {
|
|||
|
||||
/** Total number of unicast packets received and sent */
|
||||
struct net_stats_pkts unicast;
|
||||
|
||||
/** Total number of dropped packets at received and sent*/
|
||||
net_stats_t overrun_count;
|
||||
};
|
||||
|
||||
#if defined(CONFIG_NET_STATISTICS_USER_API)
|
||||
|
|
|
|||
|
|
@ -877,6 +877,7 @@ static void print_wifi_stats(struct net_if *iface, struct net_stats_wifi *data,
|
|||
PR("Beacons missed : %u\n", data->sta_mgmt.beacons_miss);
|
||||
PR("Unicast received : %u\n", data->unicast.rx);
|
||||
PR("Unicast sent : %u\n", data->unicast.tx);
|
||||
PR("Overrun count : %u\n", data->overrun_count);
|
||||
}
|
||||
#endif /* CONFIG_NET_STATISTICS_WIFI && CONFIG_NET_STATISTICS_USER_API */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue