From 4dc3ac25562b5b6f44788d9623dfc58233c98069 Mon Sep 17 00:00:00 2001 From: Abhishek Singh Date: Fri, 12 Oct 2018 10:29:20 +0530 Subject: [PATCH] qcacld-3.0: Fix SAP VDEV state machine for dfs cac offload If DFS CAC is offloaded the SAP VDEV state machine does not move to CAC wait state and thus stop AP and radar indications are dropped. This leads to del_self_sta without del_bss. To fix this move the SAP VDEV state machine to cac wait state when dfs cac offload is set. Change-Id: I0b526974a4586b41f5a4b1ea5968721f444c610b CRs-Fixed: 2332087 --- core/sap/src/sap_fsm.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c index 189232a9096e..b249a03537fb 100644 --- a/core/sap/src/sap_fsm.c +++ b/core/sap/src/sap_fsm.c @@ -3676,6 +3676,16 @@ static int sap_start_dfs_cac_timer(struct sap_context *sap_ctx) QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_DEBUG, "%s: cac timer offloaded to firmware", __func__); mac->sap.SapDfsInfo.is_dfs_cac_timer_running = true; +#ifdef CONFIG_VDEV_SM + status = + wlan_vdev_mlme_sm_deliver_evt(sap_ctx->vdev, + WLAN_VDEV_SM_EV_DFS_CAC_WAIT, + 0, NULL); + if (QDF_IS_STATUS_ERROR(status)) + QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR, + "%s: failed to post WLAN_VDEV_SM_EV_DFS_CAC_WAIT", + __func__); +#endif return 1; }