|
@@ -570,12 +570,18 @@ rrm_process_beacon_report_req(struct mac_context *mac,
|
|
|
}
|
|
|
|
|
|
if (pBeaconReq->measurement_request.Beacon.RequestedInfo.present) {
|
|
|
+ if (!pBeaconReq->measurement_request.Beacon.RequestedInfo.
|
|
|
+ num_requested_eids) {
|
|
|
+ pe_debug("802.11k BCN RPT: Requested num of EID is 0");
|
|
|
+ return eRRM_FAILURE;
|
|
|
+ }
|
|
|
pCurrentReq->request.Beacon.reqIes.pElementIds =
|
|
|
qdf_mem_malloc(sizeof(uint8_t) *
|
|
|
pBeaconReq->measurement_request.Beacon.
|
|
|
RequestedInfo.num_requested_eids);
|
|
|
if (!pCurrentReq->request.Beacon.reqIes.pElementIds)
|
|
|
return eRRM_FAILURE;
|
|
|
+
|
|
|
pCurrentReq->request.Beacon.reqIes.num =
|
|
|
pBeaconReq->measurement_request.Beacon.RequestedInfo.
|
|
|
num_requested_eids;
|
|
@@ -583,6 +589,11 @@ rrm_process_beacon_report_req(struct mac_context *mac,
|
|
|
pBeaconReq->measurement_request.Beacon.
|
|
|
RequestedInfo.requested_eids,
|
|
|
pCurrentReq->request.Beacon.reqIes.num);
|
|
|
+ pe_debug("802.11k BCN RPT: Requested EIDs: num:[%d]",
|
|
|
+ pCurrentReq->request.Beacon.reqIes.num);
|
|
|
+ QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_DEBUG,
|
|
|
+ pCurrentReq->request.Beacon.reqIes.pElementIds,
|
|
|
+ pCurrentReq->request.Beacon.reqIes.num);
|
|
|
}
|
|
|
|
|
|
/* Prepare the request to send to SME. */
|