Skip to content

Commit e728f80

Browse files
krish2718danieldegrasse
authored andcommitted
drivers: nrf_wifi: Fix TX drop statistics
In case FMAC API fails, increment the TX drop counter, helpful in debug. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 85b0a99 commit e728f80

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/wifi/nrf_wifi/src/net_if.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,10 @@ int nrf_wifi_if_send(const struct device *dev,
429429
#ifdef CONFIG_NRF70_RAW_DATA_TX
430430
}
431431
#endif /* CONFIG_NRF70_RAW_DATA_TX */
432+
if (ret == NRF_WIFI_STATUS_FAIL) {
433+
/* FMAC API takes care of freeing the nbuf */
434+
host_stats->total_tx_drop_pkts++;
435+
}
432436
goto unlock;
433437
drop:
434438
if (host_stats != NULL) {

0 commit comments

Comments
 (0)