wifi: Only print primary20 for first segment

This commit is contained in:
Sébastien Deronne
2024-08-16 13:12:53 +02:00
committed by Sébastien Deronne
parent a2b831cf3f
commit 9330795f83

View File

@@ -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);
}