summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/mac/src/pe/rrm/rrm_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/mac/src/pe/rrm/rrm_api.c b/core/mac/src/pe/rrm/rrm_api.c
index 5ef0a9afbb0c..fe196f7d9a90 100644
--- a/core/mac/src/pe/rrm/rrm_api.c
+++ b/core/mac/src/pe/rrm/rrm_api.c
@@ -746,7 +746,7 @@ rrm_fill_beacon_ies(tpAniSirGlobal pMac,
pIes += sizeof(uint16_t);
}
- while (BcnNumIes > 0) {
+ while (BcnNumIes >= 2) {
len = *(pBcnIes + 1);
len += 2; /* element id + length. */
pe_debug("EID = %d, len = %d total = %d",