Browse Source

qcacld-3.0: Remove redundant Assoc_ie prints

In lim_fill_session_params(), remove redundant assoc_ie
prints if assoc_ie length doesn't change after strip.

Change-Id: Ib6b2457a66168d86a6de9e5ce9ebd9ec9f217b53
CRs-Fixed: 3128565
Deeksha Gupta 3 years ago
parent
commit
1c119483f9
1 changed files with 12 additions and 4 deletions
  1. 12 4
      core/mac/src/pe/lim/lim_process_sme_req_messages.c

+ 12 - 4
core/mac/src/pe/lim/lim_process_sme_req_messages.c

@@ -3841,6 +3841,7 @@ lim_fill_session_params(struct mac_context *mac_ctx,
 	struct join_req *pe_join_req;
 	int32_t akm;
 	struct mlme_legacy_priv *mlme_priv;
+	uint32_t assoc_ie_len;
 
 	ie_len = util_scan_entry_ie_len(req->entry);
 	bss_len = (uint16_t)(offsetof(struct bss_description,
@@ -3896,12 +3897,19 @@ lim_fill_session_params(struct mac_context *mac_ctx,
 	if (req->assoc_ie.len)
 		QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_DEBUG,
 				   req->assoc_ie.ptr, req->assoc_ie.len);
+
+	assoc_ie_len = req->assoc_ie.len;
 	lim_fill_crypto_params(mac_ctx, session, req);
 
-	pe_debug("After stripping Assoc IE len: %d", req->assoc_ie.len);
-	if (req->assoc_ie.len)
-		QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_DEBUG,
-				   req->assoc_ie.ptr, req->assoc_ie.len);
+	if (assoc_ie_len != req->assoc_ie.len) {
+		pe_debug("After stripping Assoc IE len: %d", req->assoc_ie.len);
+		if (req->assoc_ie.len)
+			QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_PE,
+					   QDF_TRACE_LEVEL_DEBUG,
+					   req->assoc_ie.ptr,
+					   req->assoc_ie.len);
+	}
+
 	qdf_mem_copy(pe_join_req->addIEAssoc.addIEdata,
 		     req->assoc_ie.ptr, req->assoc_ie.len);
 	/* update assoc ie to cm */