wifi: Add more info about bandwidths in assert

This commit is contained in:
Sébastien Deronne
2024-08-10 17:08:23 +02:00
committed by Sébastien Deronne
parent 8c20a806ce
commit 7287d6f99c

View File

@@ -709,7 +709,8 @@ SpectrumWifiPhy::GetBandForInterface(Ptr<WifiSpectrumPhyInterface> spectrumPhyIn
{
const auto channelWidth = spectrumPhyInterface->GetChannelWidth();
NS_ASSERT_MSG(bandWidth <= channelWidth,
"Bandwidth cannot exceed total operating channel width");
"Bandwidth (" << bandWidth << ") cannot exceed total operating channel width ("
<< channelWidth << ")");
const auto subcarrierSpacing = GetSubcarrierSpacing();
WifiSpectrumBandInfo bandInfo;
std::size_t numSegments = 1;