View | Details | Raw Unified | Return to bug 813
Collapse All | Expand All

(-)a/src/devices/wifi/nqap-wifi-mac.cc (-2 / +8 lines)
 Lines 312-324    Link Here 
312
NqapWifiMac::Enqueue (Ptr<const Packet> packet, Mac48Address to, Mac48Address from)
312
NqapWifiMac::Enqueue (Ptr<const Packet> packet, Mac48Address to, Mac48Address from)
313
{
313
{
314
  NS_LOG_FUNCTION (this << packet << to << from);
314
  NS_LOG_FUNCTION (this << packet << to << from);
315
  ForwardDown (packet, from, to);
315
  if (to.IsBroadcast () || m_stationManager->IsAssociated (to))
316
    {
317
      ForwardDown (packet, from, to);
318
    }
316
}
319
}
317
void 
320
void 
318
NqapWifiMac::Enqueue (Ptr<const Packet> packet, Mac48Address to)
321
NqapWifiMac::Enqueue (Ptr<const Packet> packet, Mac48Address to)
319
{
322
{
320
  NS_LOG_FUNCTION (this << packet << to);
323
  NS_LOG_FUNCTION (this << packet << to);
321
  ForwardDown (packet, m_low->GetAddress (), to);
324
  if (to.IsBroadcast () || m_stationManager->IsAssociated (to))
325
    {
326
      ForwardDown (packet, m_low->GetAddress (), to);
327
    }
322
}
328
}
323
bool 
329
bool 
324
NqapWifiMac::SupportsSendFrom (void) const
330
NqapWifiMac::SupportsSendFrom (void) const
(-)a/src/devices/wifi/qap-wifi-mac.cc (-2 / +8 lines)
 Lines 439-452    Link Here 
439
QapWifiMac::Enqueue (Ptr<const Packet> packet, Mac48Address to, Mac48Address from)
439
QapWifiMac::Enqueue (Ptr<const Packet> packet, Mac48Address to, Mac48Address from)
440
{
440
{
441
  NS_LOG_FUNCTION (this << packet << from << to);
441
  NS_LOG_FUNCTION (this << packet << from << to);
442
  ForwardDown (packet, from, to);
442
  if (to.IsBroadcast () || m_stationManager->IsAssociated (to))
443
    {
444
      ForwardDown (packet, from, to);
445
    }
443
}
446
}
444
447
445
void 
448
void 
446
QapWifiMac::Enqueue (Ptr<const Packet> packet, Mac48Address to)
449
QapWifiMac::Enqueue (Ptr<const Packet> packet, Mac48Address to)
447
{
450
{
448
  NS_LOG_FUNCTION (this << packet << to);
451
  NS_LOG_FUNCTION (this << packet << to);
449
  ForwardDown (packet, m_low->GetAddress (), to);
452
  if (to.IsBroadcast () || m_stationManager->IsAssociated (to))
453
    {
454
      ForwardDown (packet, m_low->GetAddress (), to);
455
    }
450
}
456
}
451
457
452
bool 
458
bool 

Return to bug 813