bug 813 - Nqos AP sends packet to non associated STA

This commit is contained in:
Charline Taibi Guguen
2010-04-12 13:24:25 +02:00
parent e999a565af
commit 165d72e17e

View File

@@ -312,13 +312,19 @@ void
NqapWifiMac::Enqueue (Ptr<const Packet> packet, Mac48Address to, Mac48Address from)
{
NS_LOG_FUNCTION (this << packet << to << from);
ForwardDown (packet, from, to);
if (to.IsBroadcast () || m_stationManager->IsAssociated (to))
{
ForwardDown (packet, from, to);
}
}
void
NqapWifiMac::Enqueue (Ptr<const Packet> packet, Mac48Address to)
{
NS_LOG_FUNCTION (this << packet << to);
ForwardDown (packet, m_low->GetAddress (), to);
if (to.IsBroadcast () || m_stationManager->IsAssociated (to))
{
ForwardDown (packet, m_low->GetAddress (), to);
}
}
bool
NqapWifiMac::SupportsSendFrom (void) const