diff --git a/scratch/test/s1g-test-tim-raw.cc b/scratch/test/s1g-test-tim-raw.cc index 5f8b1546c..6c2129621 100644 --- a/scratch/test/s1g-test-tim-raw.cc +++ b/scratch/test/s1g-test-tim-raw.cc @@ -242,7 +242,10 @@ void checkRawAndTimConfiguration (void) // Number of TIM groups in a single page has to equal number of different RPS elements because // If #TIM > #RPS, the same RPS will be used in more than 1 TIM and that is wrong because // each TIM can accommodate different AIDs (same RPS means same stations in RAWs) + if(config.pageSliceCount) + { NS_ASSERT (config.pageSliceCount == config.rps.rpsset.size()); + } for (uint32_t j = 0; j < config.rps.rpsset.size(); j++) { uint32_t totalRawTime = 0; diff --git a/src/wifi/model/ap-wifi-mac.cc b/src/wifi/model/ap-wifi-mac.cc index 9160f6400..5b40ff002 100644 --- a/src/wifi/model/ap-wifi-mac.cc +++ b/src/wifi/model/ap-wifi-mac.cc @@ -1021,6 +1021,10 @@ ApWifiMac::SendOneBeacon (void) // Standard 10.47 page 325-326 } } + else if (m_pageslice.GetPageSliceCount () == 0 && numPagedStas == 0) + { + m_PageSliceNum = 0; + } uint8_t NumEncodedBlock; if (m_PageSliceNum != (m_pageslice.GetPageSliceCount() - 1) && m_PageSliceNum != 31) // convenient overflow if count==0