Skip to content

Commit

Permalink
nrf_wifi: Fix the if check in TX done handling
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
VivekUppunda authored and jfischer-no committed Mar 4, 2024
1 parent 319739c commit d622557
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nrf_wifi/fw_if/umac_if/src/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d622557

Please sign in to comment.