Parcourir la source

qcacld-3.0: Optimize Auth and Assoc logs

Add vdev id in auth TX and print assoc timeout in assoc TX.

Change-Id: I9bf369ae0960968a19a1f48f1492c004743fc3c0
CRs-Fixed: 3028123
Utkarsh Bhatnagar il y a 3 ans
Parent
commit
d1d592bca6

+ 3 - 1
core/mac/src/pe/lim/lim_process_mlm_req_messages.c

@@ -952,7 +952,9 @@ static void lim_process_mlm_assoc_req(struct mac_context *mac_ctx, uint32_t *msg
 	MTRACE(mac_trace(mac_ctx, TRACE_CODE_MLM_STATE,
 			 session_entry->peSessionId,
 			 session_entry->limMlmState));
-	pe_debug("vdev %d Sending Assoc_Req Frame", session_entry->vdev_id);
+	pe_debug("vdev %d Sending Assoc_Req Frame, timeout %d msec",
+		 session_entry->vdev_id,
+		 (int)mac_ctx->lim.lim_timers.gLimAssocFailureTimer.initScheduleTimeInMsecs);
 
 	/* Prepare and send Association request frame */
 	lim_send_assoc_req_mgmt_frame(mac_ctx, mlm_assoc_req, session_entry);

+ 2 - 0
core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c

@@ -506,6 +506,8 @@ void lim_process_mlm_auth_cnf(struct mac_context *mac_ctx, uint32_t *msg)
 
 	if (auth_cnf->resultCode == eSIR_SME_SUCCESS) {
 		if (session_entry->limSmeState == eLIM_SME_WT_AUTH_STATE) {
+			lim_deactivate_and_change_timer(mac_ctx,
+							eLIM_ASSOC_FAIL_TIMER);
 			lim_send_mlm_assoc_req(mac_ctx, session_entry);
 		} else {
 			/*

+ 4 - 4
core/mac/src/pe/lim/lim_send_management_frames.c

@@ -3151,10 +3151,10 @@ alloc_packet:
 		}
 	}
 
-	pe_nofl_info("Auth TX: seq %d seq num %d status %d WEP %d to " QDF_MAC_ADDR_FMT,
-		     auth_frame->authTransactionSeqNumber, mac_ctx->mgmtSeqNum,
-		     auth_frame->authStatusCode, mac_hdr->fc.wep,
-		     QDF_MAC_ADDR_REF(mac_hdr->da));
+	pe_nofl_info("Auth TX: vdev %d seq %d seq num %d status %d WEP %d to " QDF_MAC_ADDR_FMT,
+		     vdev_id, auth_frame->authTransactionSeqNumber,
+		     mac_ctx->mgmtSeqNum, auth_frame->authStatusCode,
+		     mac_hdr->fc.wep, QDF_MAC_ADDR_REF(mac_hdr->da));
 	QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_DEBUG,
 			   frame, frame_len);