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:
@@ -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()))
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user