From bb2fbd1054991044543e1471cbaac1a254f6c8d8 Mon Sep 17 00:00:00 2001 From: "Kanchanapally, Vidyullatha" Date: Fri, 24 Jan 2014 13:47:37 -0800 Subject: wlan: copy measurement type and duration (RRM). Fix for issue where DUT was doing a passive scan instead of an active scan when there is a beacon report request on a specific channel. In the case where the num_APChannelReport is zero, the measurement type and measurement duration are not being copied. Hence added an else condition to address this. Change-Id: Ieb5bb172fe551d415b9975edf21e2edcbdbf491b CRs-Fixed: 594614 --- CORE/MAC/src/pe/rrm/rrmApi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CORE/MAC/src/pe/rrm/rrmApi.c b/CORE/MAC/src/pe/rrm/rrmApi.c index 1420f699db6a..5e8f760f7dcf 100644 --- a/CORE/MAC/src/pe/rrm/rrmApi.c +++ b/CORE/MAC/src/pe/rrm/rrmApi.c @@ -668,6 +668,11 @@ rrmProcessBeaconReportReq( tpAniSirGlobal pMac, pSmeBcnReportReq->fMeasurementtype[num_APChanReport] = pBeaconReq->measurement_request.Beacon.meas_mode; } } + else + { + pSmeBcnReportReq->measurementDuration[0] = SYS_TU_TO_MS(measDuration); + pSmeBcnReportReq->fMeasurementtype[0] = pBeaconReq->measurement_request.Beacon.meas_mode; + } //Send request to SME. mmhMsg.type = eWNI_SME_BEACON_REPORT_REQ_IND; -- cgit v1.2.3