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

(-)a/src/devices/wifi/nqap-wifi-mac.cc (-2 / +10 lines)
 Lines 311-323    Link Here 
311
NqapWifiMac::Enqueue (Ptr<const Packet> packet, Mac48Address to, Mac48Address from)
311
NqapWifiMac::Enqueue (Ptr<const Packet> packet, Mac48Address to, Mac48Address from)
312
{
312
{
313
  NS_LOG_FUNCTION (this << packet << to << from);
313
  NS_LOG_FUNCTION (this << packet << to << from);
314
  ForwardDown (packet, from, to);
314
  WifiRemoteStation *toStation = m_stationManager->Lookup(to);
315
  if(to.IsBroadcast() || toStation->IsAssociated())
316
    {
317
      ForwardDown (packet, from, to);
318
    }
315
}
319
}
316
void 
320
void 
317
NqapWifiMac::Enqueue (Ptr<const Packet> packet, Mac48Address to)
321
NqapWifiMac::Enqueue (Ptr<const Packet> packet, Mac48Address to)
318
{
322
{
319
  NS_LOG_FUNCTION (this << packet << to);
323
  NS_LOG_FUNCTION (this << packet << to);
320
  ForwardDown (packet, m_low->GetAddress (), to);
324
  WifiRemoteStation *toStation = m_stationManager->Lookup(to);
325
  if(to.IsBroadcast() || toStation->IsAssociated())
326
    {
327
      ForwardDown (packet, m_low->GetAddress (), to);
328
    }
321
}
329
}
322
bool 
330
bool 
323
NqapWifiMac::SupportsSendFrom (void) const
331
NqapWifiMac::SupportsSendFrom (void) const

Return to bug 813