Ver código fonte

qcacld-3.0: Optimize prints in lim_add_sta

Optimize prints in lim_add_sta by removing duplicate info and
printing in fewer line.

Change-Id: I9e3094188d8ba810fbea01c5af0f1f0851c72cf7
CRs-Fixed: 3134745
Abhishek Singh 3 anos atrás
pai
commit
9564278537
1 arquivos alterados com 22 adições e 42 exclusões
  1. 22 42
      core/mac/src/pe/lim/lim_assoc_utils.c

+ 22 - 42
core/mac/src/pe/lim/lim_assoc_utils.c

@@ -2240,10 +2240,6 @@ lim_add_sta(struct mac_context *mac_ctx,
 
 	sir_copy_mac_addr(sta_mac, session_entry->self_mac_addr);
 
-	pe_debug("sessionid: %d update_entry = %d limsystemrole = %d",
-		session_entry->smeSessionId, update_entry,
-		GET_LIM_SYSTEM_ROLE(session_entry));
-
 	add_sta_params = qdf_mem_malloc(sizeof(tAddStaParams));
 	if (!add_sta_params)
 		return QDF_STATUS_E_NOMEM;
@@ -2258,9 +2254,6 @@ lim_add_sta(struct mac_context *mac_ctx,
 	else
 		sta_Addr = &sta_mac;
 
-	pe_debug(QDF_MAC_ADDR_FMT ": Subtype(Assoc/Reassoc): %d",
-		QDF_MAC_ADDR_REF(*sta_Addr), sta_ds->mlmStaContext.subType);
-
 	qdf_mem_copy((uint8_t *) add_sta_params->staMac,
 		     (uint8_t *) *sta_Addr, sizeof(tSirMacAddr));
 	qdf_mem_copy((uint8_t *) add_sta_params->bssId,
@@ -2288,10 +2281,6 @@ lim_add_sta(struct mac_context *mac_ctx,
 	}
 	sta_ds->valid = 0;
 	sta_ds->mlmStaContext.mlmState = eLIM_MLM_WT_ADD_STA_RSP_STATE;
-
-	pe_debug("Assoc ID: %d wmmEnabled: %d listenInterval: %d",
-		 add_sta_params->assocId, add_sta_params->wmmEnabled,
-		 add_sta_params->listenInterval);
 	add_sta_params->staType = sta_ds->staType;
 
 	add_sta_params->updateSta = update_entry;
@@ -2320,11 +2309,6 @@ lim_add_sta(struct mac_context *mac_ctx,
 		add_sta_params->vhtCapable = session_entry->vhtCapability;
 	}
 
-	pe_debug("updateSta: %d htcapable: %d vhtCapable: %d sta mac"
-		 QDF_MAC_ADDR_FMT, add_sta_params->updateSta,
-		 add_sta_params->htCapable, add_sta_params->vhtCapable,
-		 QDF_MAC_ADDR_REF(add_sta_params->staMac));
-
 	/*
 	 * If HT client is connected to SAP DUT and self cap is NSS = 2 then
 	 * disable ASYNC DBS scan by sending WMI_VDEV_PARAM_SMPS_INTOLERANT
@@ -2337,7 +2321,6 @@ lim_add_sta(struct mac_context *mac_ctx,
 		(session_entry->nss == 2)) {
 		session_entry->ht_client_cnt++;
 		if (session_entry->ht_client_cnt == 1) {
-			pe_debug("setting SMPS intolrent vdev_param");
 			wma_cli_set_command(session_entry->smeSessionId,
 				(int)WMI_VDEV_PARAM_SMPS_INTOLERANT,
 				1, VDEV_CMD);
@@ -2358,15 +2341,6 @@ lim_add_sta(struct mac_context *mac_ctx,
 	add_sta_params->ch_width = sta_ds->ch_width;
 	add_sta_params->mimoPS = sta_ds->htMIMOPSState;
 
-	pe_debug("maxAmpduDensity: %d maxAmpduDensity: %d",
-		 add_sta_params->maxAmpduDensity, add_sta_params->maxAmpduSize);
-
-	pe_debug("fShortGI20Mhz: %d fShortGI40Mhz: %d",
-		 add_sta_params->fShortGI20Mhz,	add_sta_params->fShortGI40Mhz);
-
-	pe_debug("txChannelWidth: %d mimoPS: %d", add_sta_params->ch_width,
-		 add_sta_params->mimoPS);
-
 	if (add_sta_params->vhtCapable) {
 		if (sta_ds->vhtSupportedChannelWidthSet)
 			add_sta_params->ch_width =
@@ -2395,10 +2369,6 @@ lim_add_sta(struct mac_context *mac_ctx,
 			sta_ds->vht_mcs_10_11_supp;
 	}
 
-	pe_debug("TxChWidth %d vhtTxBFCap %d, su_bfer %d, vht_mcs11 %d",
-		 add_sta_params->ch_width, add_sta_params->vhtTxBFCapable,
-		 add_sta_params->enable_su_tx_bformer,
-		 add_sta_params->vht_mcs_10_11_supp);
 #ifdef FEATURE_WLAN_TDLS
 	if ((STA_ENTRY_PEER == sta_ds->staType) ||
 		(STA_ENTRY_TDLS_PEER == sta_ds->staType))
@@ -2489,9 +2459,6 @@ lim_add_sta(struct mac_context *mac_ctx,
 				SIR_MAC_GET_VHT_MAX_AMPDU_EXPO(
 						sta_ds->vht_caps);
 		}
-		pe_debug("Sta type is TDLS_PEER, ht_caps: 0x%x, vht_caps: 0x%x",
-			  add_sta_params->ht_caps,
-			  add_sta_params->vht_caps);
 		lim_add_tdls_sta_he_config(add_sta_params, sta_ds);
 
 		if (lim_is_he_6ghz_band(session_entry))
@@ -2533,16 +2500,8 @@ lim_add_sta(struct mac_context *mac_ctx,
 
 		add_sta_params->maxSPLen =
 			sta_ds->qos.capability.qosInfo.maxSpLen;
-		pe_debug("uAPSD = 0x%x, maxSpLen = %d",
-			add_sta_params->uAPSD, add_sta_params->maxSPLen);
 	}
 	add_sta_params->rmfEnabled = sta_ds->rmfEnabled;
-	pe_debug("PMF enabled %d", add_sta_params->rmfEnabled);
-
-	pe_debug("htLdpcCapable: %d vhtLdpcCapable: %d "
-			"p2pCapableSta: %d",
-		add_sta_params->htLdpcCapable, add_sta_params->vhtLdpcCapable,
-		add_sta_params->p2pCapableSta);
 
 	if (!add_sta_params->htLdpcCapable)
 		add_sta_params->ht_caps &= ~(1 << SIR_MAC_HT_CAP_ADVCODING_S);
@@ -2613,7 +2572,28 @@ lim_add_sta(struct mac_context *mac_ctx,
 	msg_q.bodyptr = add_sta_params;
 	msg_q.bodyval = 0;
 
-	pe_debug("Sending WMA_ADD_STA_REQ for assocId %d", sta_ds->assocId);
+	pe_debug("vdev %d: " QDF_MAC_ADDR_FMT " opmode %d sta_type %d subtype %d: update %d aid %d wmm %d li %d ht %d vht %d ht client %d",
+		 session_entry->vdev_id,
+		 QDF_MAC_ADDR_REF(add_sta_params->staMac),
+		 session_entry->opmode, sta_ds->staType,
+		 sta_ds->mlmStaContext.subType, add_sta_params->updateSta,
+		 add_sta_params->assocId, add_sta_params->wmmEnabled,
+		 add_sta_params->listenInterval, add_sta_params->htCapable,
+		 add_sta_params->vhtCapable, session_entry->ht_client_cnt);
+	pe_nofl_debug("max_ampdu: density %d size %d, width %d sgi20 %d sgi40 %d mimops %d txbf %d subfer %d vht_mcs11 %d uapsd %d "
+		      "max splen %d pmf %d ht ldpc %d vht ldpc %d isp2p %d",
+		      add_sta_params->maxAmpduDensity,
+		      add_sta_params->maxAmpduSize, add_sta_params->ch_width,
+		      add_sta_params->fShortGI20Mhz,
+		      add_sta_params->fShortGI40Mhz,
+		      add_sta_params->mimoPS, add_sta_params->vhtTxBFCapable,
+		      add_sta_params->enable_su_tx_bformer,
+		      add_sta_params->vht_mcs_10_11_supp, add_sta_params->uAPSD,
+		      add_sta_params->maxSPLen, add_sta_params->rmfEnabled,
+		      add_sta_params->htLdpcCapable,
+		      add_sta_params->vhtLdpcCapable,
+		      add_sta_params->p2pCapableSta);
+
 	MTRACE(mac_trace_msg_tx(mac_ctx, session_entry->peSessionId,
 			 msg_q.type));