diff options
| author | Padma, Santhosh Kumar <skpadma@codeaurora.org> | 2016-12-26 15:58:37 +0530 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2017-01-13 05:15:10 -0800 |
| commit | 336baace6ac551d2529bc49f98011bb4f3fc30a4 (patch) | |
| tree | ce2a5bed0d2f830ef070babd70c6ce70756fea20 | |
| parent | f03cb499645ebbb1d37deddbf4de209e63074c53 (diff) | |
qcacld-3.0: Logging enhancements to RRM APIs
Add logging enhancements to RRM code
Change-Id: I4aacbca13c604d2f2dd354d9417a3e65dff398ae
CRs-Fixed: 1106418
| -rw-r--r-- | core/mac/src/pe/lim/lim_send_management_frames.c | 3 | ||||
| -rw-r--r-- | core/mac/src/pe/rrm/rrm_api.c | 11 | ||||
| -rw-r--r-- | core/sme/src/rrm/sme_rrm.c | 5 |
3 files changed, 15 insertions, 4 deletions
diff --git a/core/mac/src/pe/lim/lim_send_management_frames.c b/core/mac/src/pe/lim/lim_send_management_frames.c index 8db860f6420f..13bbdd0a1e7e 100644 --- a/core/mac/src/pe/lim/lim_send_management_frames.c +++ b/core/mac/src/pe/lim/lim_send_management_frames.c @@ -4177,6 +4177,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; diff --git a/core/mac/src/pe/rrm/rrm_api.c b/core/mac/src/pe/rrm/rrm_api.c index 67abf9f391cf..1ab704b4f214 100644 --- a/core/mac/src/pe/rrm/rrm_api.c +++ b/core/mac/src/pe/rrm/rrm_api.c @@ -90,7 +90,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__); @@ -116,14 +116,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; } @@ -578,7 +578,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); @@ -955,6 +955,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; diff --git a/core/sme/src/rrm/sme_rrm.c b/core/sme/src/rrm/sme_rrm.c index 34d9308eb416..559f525aeb4e 100644 --- a/core/sme/src/rrm/sme_rrm.c +++ b/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; |
