浏览代码

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
Deeksha Gupta 4 年之前
父节点
当前提交
cdfe6b4daf
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      core/sme/src/common/sme_api.c

+ 4 - 4
core/sme/src/common/sme_api.c

@@ -13814,10 +13814,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
@@ -13826,6 +13822,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;