wifi: Fix PHY ID and operating channel reported in WifiPhy logs in case of multi link

This commit is contained in:
Sébastien Deronne
2024-04-18 19:17:55 +02:00
parent d8174c1ac8
commit 387bfb0bca

View File

@@ -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
{