wifi: Only APs can receive HE TB PPDUs that do not overlap the primary channel

This commit is contained in:
Sébastien Deronne
2022-11-04 12:47:18 +01:00
parent b9c81f483b
commit 98eac84386

View File

@@ -1755,7 +1755,8 @@ HePhy::CanStartRx(Ptr<const WifiPpdu> 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<WifiMac> mac = m_wifiPhy->GetDevice() ? m_wifiPhy->GetDevice()->GetMac() : nullptr;
if (ppdu->GetTxVector().IsUlMu() && mac && mac->GetTypeOfStation() == AP)
{
return true;
}