diff --git a/src/wifi/model/spectrum-wifi-phy.cc b/src/wifi/model/spectrum-wifi-phy.cc index a17a1150f..2f6e74486 100644 --- a/src/wifi/model/spectrum-wifi-phy.cc +++ b/src/wifi/model/spectrum-wifi-phy.cc @@ -709,7 +709,8 @@ SpectrumWifiPhy::GetBandForInterface(Ptr 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;