From 16836226e4f1fef01cd4aecdac86b2b7bee32c8f Mon Sep 17 00:00:00 2001 From: Deeksha Gupta Date: Mon, 15 Mar 2021 10:44:48 +0530 Subject: [PATCH] qcacld-3.0: Set command_in_progress after adding twt session Currently, In twt setup command, driver set the TWT command_in_progress before adding the dialog_id in TWT context. Due to which, set active command fails because the dialog id was not added to the twt context. So the add dialog command response is getting dropped at sme. Set the TWT command_in_progress after adding the dialog_id to TWT context. Change-Id: Ic2c7e23720e2bc9f5a6737ba2f1dc4b1356dc179 CRs-Fixed: 2897736 --- core/sme/src/common/sme_api.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index c77c993249f3..031fde23ee96 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -14486,10 +14486,6 @@ QDF_STATUS sme_add_dialog_cmd(mac_handle_t mac_handle, return status; } - mlme_set_twt_command_in_progress(mac->psoc, - (struct qdf_mac_addr *)twt_params->peer_macaddr, - twt_params->dialog_id, WLAN_TWT_SETUP); - /* * Add the dialog id to TWT context to drop back to back * commands @@ -14498,6 +14494,10 @@ QDF_STATUS sme_add_dialog_cmd(mac_handle_t mac_handle, (struct qdf_mac_addr *)twt_params->peer_macaddr, twt_params->dialog_id); + mlme_set_twt_command_in_progress(mac->psoc, + (struct qdf_mac_addr *)twt_params->peer_macaddr, + twt_params->dialog_id, WLAN_TWT_SETUP); + /* Serialize the req through MC thread */ mac->sme.twt_add_dialog_cb = twt_add_dialog_cb; twt_msg.bodyptr = cmd_params;