From 98eac843860b8b70e7d3294bb80c4983fed57459 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deronne?= Date: Fri, 4 Nov 2022 12:47:18 +0100 Subject: [PATCH] wifi: Only APs can receive HE TB PPDUs that do not overlap the primary channel --- src/wifi/model/he/he-phy.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wifi/model/he/he-phy.cc b/src/wifi/model/he/he-phy.cc index 653d3cbdc..7f772ccca 100644 --- a/src/wifi/model/he/he-phy.cc +++ b/src/wifi/model/he/he-phy.cc @@ -1755,7 +1755,8 @@ HePhy::CanStartRx(Ptr ppdu) const * or at the secondary 20 MHz channel, the secondary 40 MHz channel, or the secondary * 80 MHz channel. */ - if (ppdu->GetTxVector().IsUlMu()) + Ptr mac = m_wifiPhy->GetDevice() ? m_wifiPhy->GetDevice()->GetMac() : nullptr; + if (ppdu->GetTxVector().IsUlMu() && mac && mac->GetTypeOfStation() == AP) { return true; }