Browse Source

qcacld-3.0: Change the log level in SME/PE/WMA

Change the info/err/warn log level to debug in
SME/PE/WMA layer.

Change-Id: Ica0a53d5d6e08b62bbc240ba763ccce59b26af0e
CRs-Fixed: 2299223
Sandeep Puligilla 6 years ago
parent
commit
1f1e400e99

+ 1 - 1
core/mac/src/pe/lim/lim_process_assoc_rsp_frame.c

@@ -632,7 +632,7 @@ lim_process_assoc_rsp_frame(tpAniSirGlobal mac_ctx,
 	}
 
 	if (!assoc_rsp->suppRatesPresent) {
-		pe_err("assoc response does not have supported rate set");
+		pe_debug("assoc response does not have supported rate set");
 		qdf_mem_copy(&assoc_rsp->supportedRates,
 			&session_entry->rateSet,
 			sizeof(tSirMacRateSet));

+ 2 - 2
core/mac/src/pe/sch/sch_beacon_gen.c

@@ -1042,8 +1042,8 @@ void sch_process_pre_beacon_ind(tpAniSirGlobal pMac,
 
 	/* If SME is not in normal mode, no need to generate beacon */
 	if (psessionEntry->limSmeState != eLIM_SME_NORMAL_STATE) {
-		pe_err("PreBeaconInd received in invalid state: %d",
-		       psessionEntry->limSmeState);
+		pe_debug("PreBeaconInd received in invalid state: %d",
+			 psessionEntry->limSmeState);
 		goto end;
 	}
 

+ 6 - 6
core/mac/src/pe/sch/sch_beacon_process.c

@@ -557,8 +557,8 @@ sch_bcn_update_opmode_change(tpAniSirGlobal mac_ctx, tpDphHashNode sta_ds,
 			 * containing channel width change then don't update
 			 * CH_WIDTH
 			 */
-			pe_err("CB disabled & CH_WIDTH changed old[%d] new[%d]",
-				oper_mode, bcn->OperatingMode.chanWidth);
+			pe_debug("CB disabled & CH_WIDTH changed old[%d] new[%d]",
+				 oper_mode, bcn->OperatingMode.chanWidth);
 			return;
 		}
 
@@ -906,10 +906,10 @@ static void __sch_beacon_process_for_session(tpAniSirGlobal mac_ctx,
 
 	if ((false == mac_ctx->sap.SapDfsInfo.is_dfs_cac_timer_running)
 	    && beaconParams.paramChangeBitmap) {
-		pe_warn("Beacon for session[%d] got changed.",
-		       session->peSessionId);
-		pe_warn("sending beacon param change bitmap: 0x%x",
-		       beaconParams.paramChangeBitmap);
+		pe_debug("Beacon for session[%d] got changed.",
+			 session->peSessionId);
+		pe_debug("sending beacon param change bitmap: 0x%x",
+			 beaconParams.paramChangeBitmap);
 		lim_send_beacon_params(mac_ctx, &beaconParams, session);
 	}
 

+ 2 - 2
core/mac/src/sys/legacy/src/utils/src/parser_api.c

@@ -2831,13 +2831,13 @@ sir_convert_assoc_req_frame2_struct(tpAniSirGlobal pMac,
 	if (ar->VHTCaps.present) {
 		qdf_mem_copy(&pAssocReq->VHTCaps, &ar->VHTCaps,
 			     sizeof(tDot11fIEVHTCaps));
-		pe_warn("Received Assoc Req with VHT Cap");
+		pe_debug("Received Assoc Req with VHT Cap");
 		lim_log_vht_cap(pMac, &pAssocReq->VHTCaps);
 	}
 	if (ar->OperatingMode.present) {
 		qdf_mem_copy(&pAssocReq->operMode, &ar->OperatingMode,
 			     sizeof(tDot11fIEOperatingMode));
-		pe_warn("Received Assoc Req with Operating Mode IE");
+		pe_debug("Received Assoc Req with Operating Mode IE");
 		lim_log_operating_mode(pMac, &pAssocReq->operMode);
 	}
 	if (ar->ExtCap.present) {

+ 3 - 3
core/sap/src/sap_module.c

@@ -2605,9 +2605,9 @@ QDF_STATUS wlansap_set_tx_leakage_threshold(tHalHandle hal,
 
 	mac = PMAC_STRUCT(hal);
 	tgt_dfs_set_tx_leakage_threshold(mac->pdev, tx_leakage_threshold);
-	QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO,
-			"%s: leakage_threshold %d", __func__,
-			tx_leakage_threshold);
+	QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_DEBUG,
+		  "%s: leakage_threshold %d", __func__,
+		  tx_leakage_threshold);
 	return QDF_STATUS_SUCCESS;
 }
 

+ 1 - 2
core/sme/src/common/sme_api.c

@@ -2729,8 +2729,7 @@ QDF_STATUS sme_get_ap_channel_from_scan_cache(
 				status = QDF_STATUS_E_FAILURE;
 			}
 		} else {
-			QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_ERROR,
-					FL("Failed to get scan get result"));
+			sme_err("Failed to get scan get result");
 			status = QDF_STATUS_E_FAILURE;
 		}
 		csr_free_scan_filter(mac_ctx, scan_filter);

+ 1 - 1
core/sme/src/common/sme_ft_api.c

@@ -357,7 +357,7 @@ QDF_STATUS sme_ft_update_key(tHalHandle hHal, uint32_t sessionId,
 		break;
 
 	default:
-		sme_warn("Unhandled state: %d", pSession->ftSmeContext.FTState);
+		sme_debug("Unhandled state:%d", pSession->ftSmeContext.FTState);
 		status = QDF_STATUS_E_FAILURE;
 		break;
 	}

+ 1 - 1
core/sme/src/csr/csr_api_roam.c

@@ -11801,7 +11801,7 @@ static bool csr_is_deauth_disassoc_already_active(tpAniSirGlobal mac_ctx,
 	     eCSR_ROAM_SUBSTATE_DISASSOC_REQ) &&
 	    !qdf_mem_cmp(peer_macaddr.bytes, sme_cmd->u.roamCmd.peerMac,
 			 QDF_MAC_ADDR_SIZE)) {
-		sme_err("Ignore DEAUTH_IND/DIASSOC_IND as Deauth/Disassoc already in progress");
+		sme_debug("Ignore DEAUTH_IND/DIASSOC_IND as Deauth/Disassoc already in progress");
 		ret = true;
 	}
 

+ 1 - 1
core/sme/src/csr/csr_util.c

@@ -1747,7 +1747,7 @@ uint32_t csr_translate_to_wni_cfg_dot11_mode(tpAniSirGlobal pMac,
 
 	switch (csrDot11Mode) {
 	case eCSR_CFG_DOT11_MODE_AUTO:
-		sme_warn("Warning: sees eCSR_CFG_DOT11_MODE_AUTO");
+		sme_debug("eCSR_CFG_DOT11_MODE_AUTO");
 		if (IS_FEATURE_SUPPORTED_BY_FW(DOT11AX))
 			ret = WNI_CFG_DOT11_MODE_11AX;
 		else if (IS_FEATURE_SUPPORTED_BY_FW(DOT11AC))

+ 1 - 1
core/wma/src/wma_main.c

@@ -8510,7 +8510,7 @@ static QDF_STATUS wma_mc_process_msg(struct scheduler_msg *msg)
 		qdf_mem_free(msg->bodyptr);
 		break;
 	default:
-		WMA_LOGE("Unhandled WMA message of type %d", msg->type);
+		WMA_LOGD("Unhandled WMA message of type %d", msg->type);
 		if (msg->bodyptr)
 			qdf_mem_free(msg->bodyptr);
 	}

+ 2 - 2
core/wma/src/wma_mgmt.c

@@ -2932,8 +2932,8 @@ void wma_send_beacon(tp_wma_handle wma, tpSendbeaconParams bcn_info)
 
 		if (bcn_info->p2pIeOffset) {
 			p2p_ie = bcn_info->beacon + bcn_info->p2pIeOffset;
-			WMA_LOGI("%s: p2pIe is present - vdev_id %hu, p2p_ie = %pK, p2p ie len = %hu",
-				__func__, vdev_id, p2p_ie, p2p_ie[1]);
+			WMA_LOGD("%s: p2pIe is present - vdev_id %hu, p2p_ie = %pK, p2p ie len = %hu",
+				 __func__, vdev_id, p2p_ie, p2p_ie[1]);
 			if (wma_p2p_go_set_beacon_ie(wma, vdev_id,
 							 p2p_ie) < 0) {
 				WMA_LOGE("%s : wmi_unified_bcn_tmpl_send Failed ",

+ 1 - 1
core/wma/src/wma_utils.c

@@ -2881,7 +2881,7 @@ int wma_rso_cmd_status_event_handler(wmi_roam_event_fixed_param *wmi_event)
 	sme_msg.type = eWNI_SME_RSO_CMD_STATUS_IND;
 	sme_msg.bodyptr = rso_status;
 	sme_msg.bodyval = 0;
-	WMA_LOGI("%s: Post RSO cmd status to SME",  __func__);
+	WMA_LOGD("%s: Post RSO cmd status to SME",  __func__);
 
 	qdf_status = scheduler_post_msg(QDF_MODULE_ID_SME, &sme_msg);
 	if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {