Skip to content

Commit

Permalink
wifi: Fix forwarding of A-MSDUs containing broadcast frames
Browse files Browse the repository at this point in the history
  • Loading branch information
stavallo authored and Stefano Avallone committed Jan 27, 2023
1 parent fe8533b commit 84001f6
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/wifi/model/ap-wifi-mac.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1910,17 +1910,16 @@ ApWifiMac::DeaggregateAmsduAndForward(Ptr<const WifiMpdu> mpdu)
NS_LOG_FUNCTION(this << *mpdu);
for (auto& i : *PeekPointer(mpdu))
{
if (i.second.GetDestinationAddr() == GetAddress())
{
ForwardUp(i.first, i.second.GetSourceAddr(), i.second.GetDestinationAddr());
}
else
auto from = i.second.GetSourceAddr();
auto to = i.second.GetDestinationAddr();

if (to.IsGroup() || IsAssociated(to))
{
Mac48Address from = i.second.GetSourceAddr();
Mac48Address to = i.second.GetDestinationAddr();
NS_LOG_DEBUG("forwarding QoS frame from=" << from << ", to=" << to);
ForwardDown(i.first->Copy(), from, to, mpdu->GetHeader().GetQosTid());
}

ForwardUp(i.first, from, to);
}
}

Expand Down

0 comments on commit 84001f6

Please sign in to comment.