Skip to content

Commit 634bfae

Browse files
ajayparidagmarull
authored andcommitted
[nrf fromlist] net: wifi: Unicast frames statistics
Unicast RX stats It represents total number of unicast (any type data, action or any other unicast frames) frames received at firmware level. The actual frames passed to host will be different as firmware may drop packets or some packets may be dropped because of errors. Unicast TX stats Transmission side the unicast packets count states the packets handed over to firmware. The stats taken at firmware level. Actual packets transmission may vary depending upon various factors. Upstream PR: zephyrproject-rtos/zephyr#71917 Signed-off-by: Ajay Parida <[email protected]>
1 parent b320a9e commit 634bfae

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

include/zephyr/net/net_stats.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ struct net_stats_wifi {
494494
struct net_stats_pkts broadcast;
495495
struct net_stats_pkts multicast;
496496
struct net_stats_pkts errors;
497+
struct net_stats_pkts unicast;
497498
};
498499

499500
#if defined(CONFIG_NET_STATISTICS_USER_API)

subsys/net/l2/wifi/wifi_shell.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,8 @@ static void print_wifi_stats(struct net_if *iface, struct net_stats_wifi *data,
846846
PR("Mcast sent : %u\n", data->multicast.tx);
847847
PR("Beacons received : %u\n", data->sta_mgmt.beacons_rx);
848848
PR("Beacons missed : %u\n", data->sta_mgmt.beacons_miss);
849+
PR("Unicast received : %u\n", data->unicast.rx);
850+
PR("Unicast sent : %u\n", data->unicast.tx);
849851
}
850852
#endif /* CONFIG_NET_STATISTICS_WIFI && CONFIG_NET_STATISTICS_USER_API */
851853

0 commit comments

Comments
 (0)