Explorar o código

qcacmn: Make CM ser disconnect req as blocking or non blocking

Make CM serialization disconnect req as blocking or non blocking based
on feature macro

Change-Id: I71d664e28cba35d44c0c1fac2bd6a38c4bc4c9df
CRs-Fixed: 2879850
Himanshu Batra %!s(int64=4) %!d(string=hai) anos
pai
achega
051c1e0d79

+ 1 - 1
umac/mlme/connection_mgr/core/src/wlan_cm_connect.c

@@ -242,7 +242,7 @@ static QDF_STATUS cm_ser_connect_req(struct wlan_objmgr_pdev *pdev,
 	cmd.is_high_priority = false;
 	cmd.cmd_timeout_duration = cm_ctx->connect_timeout;
 	cmd.vdev = cm_ctx->vdev;
-	cmd.is_blocking = cm_ser_get_blocking_cmd();
+	cmd.is_blocking = true;
 
 	ser_cmd_status = wlan_serialization_request(&cmd);
 	switch (ser_cmd_status) {

+ 7 - 0
umac/mlme/connection_mgr/core/src/wlan_cm_main_api.h

@@ -436,10 +436,17 @@ void cm_send_disconnect_resp(struct cnx_mgr *cm_ctx, wlan_cm_id cm_id);
  *
  * Return: bool
  */
+#ifdef CONN_MGR_ADV_FEATURE
 static inline bool cm_ser_get_blocking_cmd(void)
 {
 	return true;
 }
+#else
+static inline bool cm_ser_get_blocking_cmd(void)
+{
+	return false;
+}
+#endif
 
 /**
  * cm_get_cm_id() - Get unique cm id for connect/disconnect request