From 9330795f835de1637a38d613ac4483aee372b2d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deronne?= Date: Fri, 16 Aug 2024 13:12:53 +0200 Subject: [PATCH] wifi: Only print primary20 for first segment --- src/wifi/model/wifi-phy-operating-channel.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wifi/model/wifi-phy-operating-channel.cc b/src/wifi/model/wifi-phy-operating-channel.cc index a1a3f99c7..9c5f68ee0 100644 --- a/src/wifi/model/wifi-phy-operating-channel.cc +++ b/src/wifi/model/wifi-phy-operating-channel.cc @@ -937,7 +937,7 @@ operator<<(std::ostream& os, const WifiPhyOperatingChannel& channel) } os << "channel " << +channel.GetNumber() << " frequency " << channel.GetFrequency() << " width " << channel.GetWidth() << " band " << channel.GetPhyBand(); - if (channel.GetTotalWidth() % 20 == 0) + if ((segmentId == 0) && (channel.GetTotalWidth() % 20 == 0)) { os << " primary20 " << +channel.GetPrimaryChannelIndex(20); }