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
This commit is contained in:
Aakanksha Doda 2020-05-18 12:42:13 +05:30 • committed by nshrivas
commit ae8ef356d8

View file

@ -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