Bladeren bron

qcacld-3.0: Logging enhancements to RRM APIs

Add logging enhancements to RRM code

Change-Id: I4aacbca13c604d2f2dd354d9417a3e65dff398ae
CRs-Fixed: 1106418
Padma, Santhosh Kumar 8 jaren geleden
bovenliggende
commit
93ec7d2960
3 gewijzigde bestanden met toevoegingen van 15 en 4 verwijderingen
  1. 3 0
      core/mac/src/pe/lim/lim_send_management_frames.c
  2. 7 4
      core/mac/src/pe/rrm/rrm_api.c
  3. 5 0
      core/sme/src/rrm/sme_rrm.c

+ 3 - 0
core/mac/src/pe/lim/lim_send_management_frames.c

@@ -4271,6 +4271,9 @@ lim_send_radio_measure_report_action_frame(tpAniSirGlobal pMac,
 		return eSIR_FAILURE;
 	}
 
+	lim_log(pMac, LOG1, FL("dialog_token %d num_report %d"),
+			dialog_token, num_report);
+
 	frm->Category.category = SIR_MAC_ACTION_RRM;
 	frm->Action.action = SIR_MAC_RRM_RADIO_MEASURE_RPT;
 	frm->DialogToken.token = dialog_token;

+ 7 - 4
core/mac/src/pe/rrm/rrm_api.c

@@ -92,7 +92,7 @@ void
 rrm_cache_mgmt_tx_power(tpAniSirGlobal pMac, int8_t txPower,
 			tpPESession pSessionEntry)
 {
-	lim_log(pMac, LOG3, "Cache Mgmt Tx Power = %d", txPower);
+	lim_log(pMac, LOG1, "Cache Mgmt Tx Power = %d", txPower);
 
 	if (pSessionEntry == NULL) {
 		lim_log(pMac, LOG3, "%s: pSessionEntry is NULL", __func__);
@@ -118,14 +118,14 @@ rrm_cache_mgmt_tx_power(tpAniSirGlobal pMac, int8_t txPower,
  */
 int8_t rrm_get_mgmt_tx_power(tpAniSirGlobal pMac, tpPESession pSessionEntry)
 {
-	lim_log(pMac, LOG3, "RrmGetMgmtTxPower called");
-
 	if (pSessionEntry == NULL) {
 		lim_log(pMac, LOG3, "%s: txpower from rrmPEContext: %d",
 			__func__, pMac->rrm.rrmPEContext.txMgmtPower);
 		return pMac->rrm.rrmPEContext.txMgmtPower;
 	}
 
+	lim_log(pMac, LOG1, FL("tx mgmt pwr %d"), pSessionEntry->txMgmtPower);
+
 	return pSessionEntry->txMgmtPower;
 }
 
@@ -581,7 +581,7 @@ rrm_process_beacon_report_req(tpAniSirGlobal pMac,
 
 	measDuration = pBeaconReq->measurement_request.Beacon.meas_duration;
 
-	lim_log(pMac, LOG3,
+	lim_log(pMac, LOG1,
 		"maxDuration = %d sign = %d maxMeasduration = %d measDuration = %d",
 		maxDuration, sign, maxMeasduration, measDuration);
 
@@ -958,6 +958,9 @@ static void rrm_process_beacon_request_failure(tpAniSirGlobal pMac,
 	pReport->token = pCurrentReq->token;
 	pReport->type = SIR_MAC_RRM_BEACON_TYPE;
 
+	lim_log(pMac, LOG1,
+			FL("status %d token %d"), status, pReport->token);
+
 	switch (status) {
 	case eRRM_REFUSED:
 		pReport->refused = 1;

+ 5 - 0
core/sme/src/rrm/sme_rrm.c

@@ -916,6 +916,11 @@ QDF_STATUS sme_rrm_process_beacon_report_req_ind(tpAniSirGlobal pMac, void *pMsg
 		     (uint8_t *) &pBeaconReq->measurementDuration,
 		     SIR_ESE_MAX_MEAS_IE_REQS);
 
+	sms_log(pMac, LOG1,
+		FL("token %d regClass %d randnIntvl %d msgSource %d"),
+		pSmeRrmContext->token, pSmeRrmContext->regClass,
+		pSmeRrmContext->randnIntvl, pSmeRrmContext->msgSource);
+
 	status = sme_rrm_issue_scan_req(pMac);
 
 	return status;