Commit e728f804 authored by Chaitanya Tata's avatar Chaitanya Tata Committed by Daniel DeGrasse
Browse files

drivers: nrf_wifi: Fix TX drop statistics



In case FMAC API fails, increment the TX drop counter, helpful in
debug.

Signed-off-by: default avatarChaitanya Tata <Chaitanya.Tata@nordicsemi.no>
parent 85b0a993
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -429,6 +429,10 @@ int nrf_wifi_if_send(const struct device *dev,
#ifdef CONFIG_NRF70_RAW_DATA_TX
	}
#endif /* CONFIG_NRF70_RAW_DATA_TX */
	if (ret == NRF_WIFI_STATUS_FAIL) {
		/* FMAC API takes care of freeing the nbuf */
		host_stats->total_tx_drop_pkts++;
	}
	goto unlock;
drop:
	if (host_stats != NULL) {