wifi: Enable support for 80+80MHz when spectrum PHY is used

There is no sense to use non-contiguous operating channel with YANS
This commit is contained in:
Sébastien Deronne
2023-05-18 10:30:43 +02:00
parent f9d161a35b
commit 0a889ae4c5
2 changed files with 2 additions and 2 deletions

View File

@@ -1144,8 +1144,6 @@ WifiPhy::SetOperatingChannel(const ChannelTuple& tuple)
void
WifiPhy::SetOperatingChannel(const ChannelSegments& channelSegments)
{
NS_ASSERT_MSG(channelSegments.size() == 1,
"Non-contiguous operating channel is not supported yet");
NS_LOG_FUNCTION(this << +std::get<0>(channelSegments.front())
<< std::get<1>(channelSegments.front())
<< static_cast<WifiPhyBand>(std::get<2>(channelSegments.front()))

View File

@@ -141,6 +141,8 @@ void
YansWifiPhy::FinalizeChannelSwitch()
{
NS_LOG_FUNCTION(this);
NS_ABORT_MSG_IF(GetOperatingChannel().GetNSegments() > 1,
"operating channel made of non-contiguous segments cannot be used with Yans");
}
} // namespace ns3