From f33e2fe57ca1a7364dcf686d2d81dacc5e5ce624 Mon Sep 17 00:00:00 2001 From: Yeshwanth Sriram Guntuka Date: Tue, 13 Aug 2019 18:35:31 +0530 Subject: [PATCH] qcacld-3.0: Add debug print for beacon report meas mode Add debug print to indicate the measurement mode for beacon report request. Change-Id: I7f61cd7f058ef0dcc4db425e685974cc3f53415a CRs-Fixed: 2507593 --- core/sme/src/rrm/sme_rrm.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/core/sme/src/rrm/sme_rrm.c b/core/sme/src/rrm/sme_rrm.c index edd4889d3742..795229669fbb 100644 --- a/core/sme/src/rrm/sme_rrm.c +++ b/core/sme/src/rrm/sme_rrm.c @@ -992,6 +992,18 @@ static QDF_STATUS sme_rrm_fill_scan_channels(struct mac_context *mac, return QDF_STATUS_SUCCESS; } +static uint8_t *sme_rrm_get_meas_mode_string(uint8_t meas_mode) +{ + switch (meas_mode) { + CASE_RETURN_STRING(eSIR_PASSIVE_SCAN); + CASE_RETURN_STRING(eSIR_ACTIVE_SCAN); + CASE_RETURN_STRING(eSIR_BEACON_TABLE); + default: + return (uint8_t *)"UNKNOWN"; + break; + } +} + /** * sme_rrm_process_beacon_report_req_ind() -Process beacon report request * @mac:- Global Mac structure @@ -1171,11 +1183,12 @@ QDF_STATUS sme_rrm_process_beacon_report_req_ind(struct mac_context *mac, (uint8_t *) &pBeaconReq->measurementDuration, SIR_ESE_MAX_MEAS_IE_REQS); - sme_debug("token: %d regClass: %d randnIntvl: %d msgSource: %d measurementduration %d, rrm_ctx duration %d", + sme_debug("token: %d regClass: %d randnIntvl: %d msgSource: %d measurementduration %d, rrm_ctx duration %d Meas_mode: %s", pSmeRrmContext->token, pSmeRrmContext->regClass, pSmeRrmContext->randnIntvl, pSmeRrmContext->msgSource, pBeaconReq->measurementDuration[0], - pSmeRrmContext->duration[0]); + pSmeRrmContext->duration[0], + sme_rrm_get_meas_mode_string(pSmeRrmContext->measMode[0])); return sme_rrm_issue_scan_req(mac);