Parcourir la source

qcacld-3.0: Print channels in Hex format in lim_convert_supported_channels

In lim_convert_supported_channels, the channel were displayed
in a loop.

Print the channels in Hex format instead in a loop in order
to optimize the logs.

Change-Id: Ia9920e6931cbdd2a2b78682de42d796d5f8394ba
CRs-Fixed: 3133533
VIJAY RAJ il y a 3 ans
Parent
commit
eaf2fde24f
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4 2
      core/mac/src/pe/lim/lim_process_assoc_req_frame.c

+ 4 - 2
core/mac/src/pe/lim/lim_process_assoc_req_frame.c

@@ -87,8 +87,6 @@ static void lim_convert_supported_channels(struct mac_context *mac_ctx,
 
 		/* Get Number of Channels in a Subband */
 		chn_count = assoc_req->supportedChannels.supportedChannels[i];
-		pe_debug("Rcv assoc_req: chnl: %d numOfChnl: %d",
-			first_ch_no, chn_count);
 		if (index >= SIR_MAX_SUPPORTED_CHANNEL_LIST) {
 			pe_warn("Ch count > max supported: %d", chn_count);
 			assoc_ind->supportedChannels.numChnl = 0;
@@ -125,6 +123,10 @@ static void lim_convert_supported_channels(struct mac_context *mac_ctx,
 		assoc_ind->powerCap.minTxPower,
 		assoc_ind->powerCap.maxTxPower,
 		assoc_ind->supportedChannels.numChnl);
+
+	QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_DEBUG,
+			   assoc_req->supportedChannels.supportedChannels,
+			   assoc_req->supportedChannels.length);
 }
 
 /**