Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into RCA
Browse files Browse the repository at this point in the history
  • Loading branch information
letiangit committed May 11, 2018
2 parents cea4559 + b8fb6a6 commit f5ab86e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scratch/test/s1g-test-tim-raw.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions src/wifi/model/ap-wifi-mac.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f5ab86e

Please sign in to comment.