From 7287d6f99cd4854ecff80f6ba91672c277ddd30f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deronne?= Date: Sat, 10 Aug 2024 17:08:23 +0200 Subject: [PATCH] wifi: Add more info about bandwidths in assert --- src/wifi/model/spectrum-wifi-phy.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;