Skip to content

Commit

Permalink
wifi: Fix type of some variables
Browse files Browse the repository at this point in the history
  • Loading branch information
sderonne committed Jan 3, 2025
1 parent 018a87d commit 00b529b
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions src/wifi/test/wifi-primary-channels-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -608,10 +608,9 @@ WifiPrimaryChannelsTest::DoRun()
// To have simultaneous transmissions on adjacent channels, just initialize
// nRounds to 1 and nApsPerRound to m_channelWidth / 20. Of course, the test
// will fail because some stations will not receive some frames due to interfence
for (MHz_u txChannelWidth = 20,
nRounds = 2,
nApsPerRound = Count20MHzSubchannels(m_channelWidth) / 2;
txChannelWidth <= m_channelWidth;
uint16_t nRounds = 2;
uint16_t nApsPerRound = Count20MHzSubchannels(m_channelWidth) / 2;
for (MHz_u txChannelWidth{20}; txChannelWidth <= m_channelWidth;
txChannelWidth *= 2, nRounds *= 2, nApsPerRound /= 2)
{
nRounds = std::min<uint16_t>(nRounds, m_nBss);
Expand Down Expand Up @@ -646,10 +645,9 @@ WifiPrimaryChannelsTest::DoRun()
* channel width, every round is repeated as many times as the number of ways in
* which we can partition the transmission channel width in equal sized RUs.
*/
for (MHz_u txChannelWidth = 20,
nRounds = 2,
nApsPerRound = Count20MHzSubchannels(m_channelWidth) / 2;
txChannelWidth <= m_channelWidth;
nRounds = 2;
nApsPerRound = Count20MHzSubchannels(m_channelWidth) / 2;
for (MHz_u txChannelWidth{20}; txChannelWidth <= m_channelWidth;
txChannelWidth *= 2, nRounds *= 2, nApsPerRound /= 2)
{
nRounds = std::min<uint16_t>(nRounds, m_nBss);
Expand Down Expand Up @@ -696,10 +694,9 @@ WifiPrimaryChannelsTest::DoRun()
* channel width, every round is repeated as many times as the number of ways in
* which we can partition the transmission channel width in equal sized RUs.
*/
for (MHz_u txChannelWidth = 20,
nRounds = 2,
nApsPerRound = Count20MHzSubchannels(m_channelWidth) / 2;
txChannelWidth <= m_channelWidth;
nRounds = 2;
nApsPerRound = Count20MHzSubchannels(m_channelWidth) / 2;
for (MHz_u txChannelWidth{20}; txChannelWidth <= m_channelWidth;
txChannelWidth *= 2, nRounds *= 2, nApsPerRound /= 2)
{
nRounds = std::min<uint16_t>(nRounds, m_nBss);
Expand Down

0 comments on commit 00b529b

Please sign in to comment.