From 387bfb0bcac9bebcd7e7e4ab543e5b8b026ee64e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deronne?= Date: Thu, 18 Apr 2024 19:17:55 +0200 Subject: [PATCH] wifi: Fix PHY ID and operating channel reported in WifiPhy logs in case of multi link --- src/wifi/model/wifi-phy.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/wifi/model/wifi-phy.cc b/src/wifi/model/wifi-phy.cc index 40f423809..8ffc76361 100644 --- a/src/wifi/model/wifi-phy.cc +++ b/src/wifi/model/wifi-phy.cc @@ -49,9 +49,8 @@ #undef NS_LOG_APPEND_CONTEXT #define NS_LOG_APPEND_CONTEXT \ - WIFI_PHY_NS_LOG_APPEND_CONTEXT((m_device && m_device->GetPhy() \ - ? m_device->GetPhy(m_device->GetPhy()->GetPhyId()) \ - : nullptr)) + WIFI_PHY_NS_LOG_APPEND_CONTEXT( \ + (m_device && m_device->GetPhy(m_phyId) ? m_device->GetPhy(m_phyId) : nullptr)) namespace ns3 {