Browse Source

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
Aakanksha Doda 5 years ago
parent
commit
ae8ef356d8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      umac/green_ap/core/src/wlan_green_ap_main.c

+ 2 - 0
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