From 589238f61085c510a603245428d136b36110cfb4 Mon Sep 17 00:00:00 2001 From: Chaitanya Tata Date: Fri, 31 May 2024 01:33:06 +0530 Subject: [PATCH] nrf_wifi: Fix VIF type count update In current SAP implementation based on a single VIF, we modify the VIF type from STA->AP and vice-versa, so, call the API to update the counts properly. The counts are crucial to remove the RPU during interface down. Signed-off-by: Chaitanya Tata --- nrf_wifi/fw_if/umac_if/src/default/fmac_api.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nrf_wifi/fw_if/umac_if/src/default/fmac_api.c b/nrf_wifi/fw_if/umac_if/src/default/fmac_api.c index c8f82e7b1a..0f32979b61 100644 --- a/nrf_wifi/fw_if/umac_if/src/default/fmac_api.c +++ b/nrf_wifi/fw_if/umac_if/src/default/fmac_api.c @@ -2256,6 +2256,10 @@ enum nrf_wifi_status nrf_wifi_fmac_chg_vif(void *dev_ctx, def_dev_ctx = wifi_dev_priv(fmac_dev_ctx); + nrf_wifi_fmac_vif_update_if_type(fmac_dev_ctx, + if_idx, + vif_info->iftype); + def_dev_ctx->vif_ctx[if_idx]->if_type = vif_info->iftype; }