|
@@ -922,6 +922,14 @@ QDF_STATUS sme_rrm_process_beacon_report_req_ind(tpAniSirGlobal pMac,
|
|
|
|
|
|
sme_debug("Received Beacon report request ind Channel = %d",
|
|
|
pBeaconReq->channelInfo.channelNum);
|
|
|
+
|
|
|
+ if (pBeaconReq->channelList.numChannels >
|
|
|
+ SIR_ESE_MAX_MEAS_IE_REQS) {
|
|
|
+ sme_err("Beacon report request numChannels:%u exceeds max num channels",
|
|
|
+ pBeaconReq->channelList.numChannels);
|
|
|
+ return QDF_STATUS_E_INVAL;
|
|
|
+ }
|
|
|
+
|
|
|
/* section 11.10.8.1 (IEEE Std 802.11k-2008) */
|
|
|
/* channel 0 and 255 has special meaning. */
|
|
|
if ((pBeaconReq->channelInfo.channelNum == 0) ||
|