From ae8ef356d85d2f6cadb5e58c0d90e7b6f2115327 Mon Sep 17 00:00:00 2001 From: Aakanksha Doda Date: Mon, 18 May 2020 12:42:13 +0530 Subject: [PATCH] qcacmn: Add a check to not process DEL_MULTISTREAM event in wait state Add a check to make sure that WLAN_GREEN_AP_DEL_MULTISTREAM_STA_EVENT event is not processed in wait state to avoid any disruptions in the qdf_timer running before when WLAN_GREEN_AP_DEL_STA_EVENT event was received. Change-Id: I7ca04243f5faa593afb65bd41db1f4bf3a8d4e74 --- umac/green_ap/core/src/wlan_green_ap_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/umac/green_ap/core/src/wlan_green_ap_main.c b/umac/green_ap/core/src/wlan_green_ap_main.c index 1a0ed4ee38db..925f0962d285 100644 --- a/umac/green_ap/core/src/wlan_green_ap_main.c +++ b/umac/green_ap/core/src/wlan_green_ap_main.c @@ -276,6 +276,8 @@ QDF_STATUS wlan_green_ap_state_mc(struct wlan_pdev_green_ap_ctx *green_ap_ctx, green_ap_ctx->ps_mode == WLAN_GREEN_AP_MODE_NO_STA) || (!green_ap_ctx->num_nodes_multistream && green_ap_ctx->ps_mode == WLAN_GREEN_AP_MODE_NUM_STREAM)) { + if (event == WLAN_GREEN_AP_DEL_MULTISTREAM_STA_EVENT) + break; if ((channel == 0) || (channel_flags == 0)) { /* * Stay in the current state and restart the