From d622557b17c7c97d196f0baf27b322d87f2850b8 Mon Sep 17 00:00:00 2001 From: Vivekananda Uppunda Date: Mon, 4 Mar 2024 12:41:59 +0530 Subject: [PATCH] nrf_wifi: Fix the if check in TX done handling This change fixes the check for config status in tx done handling for raw tx packet. Fixes issue SHEL-2551 Signed-off-by: Vivekananda Uppunda --- nrf_wifi/fw_if/umac_if/src/tx.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nrf_wifi/fw_if/umac_if/src/tx.c b/nrf_wifi/fw_if/umac_if/src/tx.c index 215917d0b7..b0bf63b753 100644 --- a/nrf_wifi/fw_if/umac_if/src/tx.c +++ b/nrf_wifi/fw_if/umac_if/src/tx.c @@ -1455,8 +1455,11 @@ enum nrf_wifi_status nrf_wifi_fmac_rawtx_done_event_process( nrf_wifi_osal_spinlock_take(fmac_dev_ctx->fpriv->opriv, def_dev_ctx->tx_config.tx_lock); - if (!config->status) { - /* Increment raw TX failure count */ + if (config->status == NRF_WIFI_STATUS_FAIL) { + /** + * If the status indicates failure, + * increment raw TX failure count. The TX buffers + * still need to be freed. */ def_dev_ctx->raw_pkt_stats.raw_pkt_send_failure += 1; }