Skip to content

Commit

Permalink
nrf_wifi: Fix de-initialization of HAL
Browse files Browse the repository at this point in the history
Use the unused HAL de-init API before proceeding with FMAC de-init, this
way we can move the entire logic and locking to HAL de-init, so, remove
the HAL locks in FMAC.

Signed-off-by: Chaitanya Tata <[email protected]>
  • Loading branch information
krish2718 authored and Krishna T committed Jun 2, 2024
1 parent 3824ed4 commit bdc1484
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nrf_wifi/fw_if/umac_if/src/default/fmac_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,11 +433,10 @@ enum nrf_wifi_status nrf_wifi_fmac_dev_init(struct nrf_wifi_fmac_dev_ctx *fmac_d

void nrf_wifi_fmac_dev_deinit(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx)
{
nrf_wifi_hal_lock_rx(fmac_dev_ctx->hal_dev_ctx);
nrf_wifi_hal_dev_deinit(fmac_dev_ctx->hal_dev_ctx);
nrf_wifi_fmac_fw_deinit(fmac_dev_ctx);
nrf_wifi_osal_mem_free(fmac_dev_ctx->fpriv->opriv,
fmac_dev_ctx->tx_pwr_ceil_params);
nrf_wifi_hal_unlock_rx(fmac_dev_ctx->hal_dev_ctx);
}

#ifdef CONFIG_NRF_WIFI_RPU_RECOVERY
Expand Down

0 comments on commit bdc1484

Please sign in to comment.