Skip to content

Commit be97064

Browse files
committed
[nrf fromtree] 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]> (cherry picked from commit e728f80)
1 parent 7a3d5f9 commit be97064

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)