Преглед на файлове

qcacmn: Fix Connecting log to print during connect failure

For the NO Candidate scenario, the connecting event is
not logged resulting in breaking the connectivity logging
mechanism sanity.

Add support to log CONNECTING connectivity log during
NO CANDIDATE found scenario in order to maintain the
logging mechanism sanity.

Change-Id: I534307802d28365ffea330e85b710074ab863c09
CRs-Fixed: 3678114
Vijay Raj преди 1 година
родител
ревизия
f57a86b4b9
променени са 1 файла, в които са добавени 20 реда и са изтрити 1 реда
  1. 20 1
      umac/mlme/connection_mgr/core/src/wlan_cm_connect.c

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

@@ -47,6 +47,9 @@
 #ifdef WLAN_FEATURE_LL_LT_SAP
 #include "wlan_ll_sap_api.h"
 #endif
+#ifdef CONNECTIVITY_DIAG_EVENT
+#include "wlan_connectivity_logging.h"
+#endif
 
 void
 cm_fill_failure_resp_from_cm_id(struct cnx_mgr *cm_ctx,
@@ -295,6 +298,21 @@ cm_connect_handle_event_post_fail(struct cnx_mgr *cm_ctx, wlan_cm_id cm_id)
 	qdf_mem_free(resp);
 }
 
+#ifdef CONNECTIVITY_DIAG_EVENT
+static void
+cm_connectivity_connecting_event(struct wlan_objmgr_vdev *vdev,
+				 struct wlan_cm_connect_req *req)
+{
+	wlan_connectivity_connecting_event(vdev, req);
+}
+#else
+static void
+cm_connectivity_connecting_event(struct wlan_objmgr_vdev *vdev,
+				 struct wlan_cm_connect_req *req)
+{
+}
+#endif
+
 QDF_STATUS
 cm_send_connect_start_fail(struct cnx_mgr *cm_ctx,
 			   struct cm_connect_req *req,
@@ -307,12 +325,13 @@ cm_send_connect_start_fail(struct cnx_mgr *cm_ctx,
 	if (!resp)
 		return QDF_STATUS_E_NOMEM;
 
+	cm_connectivity_connecting_event(cm_ctx->vdev, &req->req);
+
 	cm_fill_failure_resp_from_cm_id(cm_ctx, resp, req->cm_id, reason);
 
 	status = cm_sm_deliver_event_sync(cm_ctx, WLAN_CM_SM_EV_CONNECT_FAILURE,
 					  sizeof(*resp), resp);
 	qdf_mem_free(resp);
-
 	return status;
 }