Skip to content

Commit 6aea527

Browse files
kapbhnashif
authored andcommitted
drivers: wifi: Add overrun count in statistics
Add overrun count in statistics. It will represent the number of packets dropped either at received and sent due to lack of buffer memory. Signed-off-by: Kapil Bhatt <[email protected]>
1 parent ec0b9cc commit 6aea527

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/wifi/nrfwifi/src/net_if.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,6 +1141,7 @@ int nrf_wifi_stats_get(const struct device *dev, struct net_stats_wifi *zstats)
11411141
zstats->multicast.tx = stats.fw.umac.interface_data_stats.tx_multicast_pkt_count;
11421142
zstats->unicast.rx = stats.fw.umac.interface_data_stats.rx_unicast_pkt_count;
11431143
zstats->unicast.tx = stats.fw.umac.interface_data_stats.tx_unicast_pkt_count;
1144+
zstats->overrun_count = stats.host.total_tx_drop_pkts + stats.host.total_rx_drop_pkts;
11441145

11451146
#ifdef CONFIG_NRF70_RAW_DATA_TX
11461147
def_dev_ctx = wifi_dev_priv(rpu_ctx_zep->rpu_ctx);

0 commit comments

Comments
 (0)