src/devices/wifi/regular-wifi-mac.cc
changeset 6674 52f8688d6d01
parent 6673 ec22aa763e2d
equal deleted inserted replaced
6673:ec22aa763e2d 6674:52f8688d6d01
   390   return m_low->GetBssid ();
   390   return m_low->GetBssid ();
   391 }
   391 }
   392 
   392 
   393 void
   393 void
   394 RegularWifiMac::Enqueue (Ptr<const Packet> packet,
   394 RegularWifiMac::Enqueue (Ptr<const Packet> packet,
   395                   Mac48Address to, Mac48Address from)
   395                          Mac48Address to, Mac48Address from)
   396 {
   396 {
   397   // We expect RegularWifiMac subclasses which do support forwarding (e.g.,
   397   // We expect RegularWifiMac subclasses which do support forwarding (e.g.,
   398   // AP) to override this method. Therefore, we throw a fatal error if
   398   // AP) to override this method. Therefore, we throw a fatal error if
   399   // someone tries to invoke this method on a class which has not done
   399   // someone tries to invoke this method on a class which has not done
   400   // this.
   400   // this.
   401   NS_FATAL_ERROR ("This MAC entity (" << this << ", " << GetAddress ()
   401   NS_FATAL_ERROR ("This MAC entity (" << this << ", " << GetAddress ()
   402                   << ") does not support Enqueue() with from address");
   402                                       << ") does not support Enqueue() with from address");
   403 }
   403 }
   404 
   404 
   405 bool
   405 bool
   406 RegularWifiMac::SupportsSendFrom (void) const
   406 RegularWifiMac::SupportsSendFrom (void) const
   407 {
   407 {
   617                       "The header of successfully transmitted packet",
   617                       "The header of successfully transmitted packet",
   618                       MakeTraceSourceAccessor (&RegularWifiMac::m_txOkCallback))
   618                       MakeTraceSourceAccessor (&RegularWifiMac::m_txOkCallback))
   619     .AddTraceSource ("TxErrHeader",
   619     .AddTraceSource ("TxErrHeader",
   620                      "The header of unsuccessfully transmitted packet",
   620                      "The header of unsuccessfully transmitted packet",
   621                      MakeTraceSourceAccessor (&RegularWifiMac::m_txErrCallback))
   621                      MakeTraceSourceAccessor (&RegularWifiMac::m_txErrCallback))
   622     ;
   622   ;
   623 
   623 
   624   return tid;
   624   return tid;
   625 }
   625 }
   626 
   626 
   627 void
   627 void