A Discrete-Event Network Simulator
API
ocb-wifi-mac.cc
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2008 INRIA
4  * Copyright (c) 2013 Dalian University of Technology
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation;
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  *
19  * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
20  * Junling Bu <linlinjavaer@gmail.com>
21  */
22 #include "ns3/pointer.h"
23 #include "ns3/log.h"
24 #include "ns3/string.h"
25 #include "ns3/mac-low.h"
26 #include "ns3/dcf-manager.h"
27 #include "ns3/mac-rx-middle.h"
28 #include "ns3/mgt-headers.h"
29 #include "wave-mac-low.h"
30 #include "ocb-wifi-mac.h"
31 #include "vendor-specific-action.h"
32 #include "higher-tx-tag.h"
33 
34 namespace ns3 {
35 
36 NS_LOG_COMPONENT_DEFINE ("OcbWifiMac");
37 
38 NS_OBJECT_ENSURE_REGISTERED (OcbWifiMac);
39 
41 
42 TypeId
44 {
45  static TypeId tid = TypeId ("ns3::OcbWifiMac")
47  .SetGroupName ("Wave")
48  .AddConstructor<OcbWifiMac> ()
49  ;
50  return tid;
51 }
52 
54 {
55  NS_LOG_FUNCTION (this);
56  // Let the lower layers know that we are acting as an OCB node
58  // BSSID is still needed in the low part of MAC
59  RegularWifiMac::SetBssid (WILDCARD_BSSID);
60 }
61 
63 {
64  NS_LOG_FUNCTION (this);
65 }
66 
67 void
69 {
70  NS_LOG_FUNCTION (this << vsc << peer << oi);
71  WifiMacHeader hdr;
72  hdr.SetAction ();
73  hdr.SetAddr1 (peer);
74  hdr.SetAddr2 (GetAddress ());
75  hdr.SetAddr3 (WILDCARD_BSSID);
76  hdr.SetDsNotFrom ();
77  hdr.SetDsNotTo ();
80  vsc->AddHeader (vsa);
81 
82  if (m_qosSupported)
83  {
84  uint8_t tid = QosUtilsGetTidForPacket (vsc);
85  tid = tid > 7 ? 0 : tid;
86  m_edca[QosUtilsMapTidToAc (tid)]->Queue (vsc, hdr);
87  }
88  else
89  {
90  m_dca->Queue (vsc, hdr);
91  }
92 }
93 
94 void
96 {
97  NS_LOG_FUNCTION (this << oi << &cb);
99 }
100 
101 void
103 {
104  NS_LOG_FUNCTION (this << oi);
106 }
107 
108 void
110 {
111  NS_LOG_WARN ("in OCB mode we should not call SetSsid");
112 }
113 
114 Ssid
116 {
117  NS_LOG_WARN ("in OCB mode we should not call GetSsid");
118  // we really do not want to return ssid, however we have to provide
119  return RegularWifiMac::GetSsid ();
120 }
121 
122 
123 void
125 {
126  NS_LOG_WARN ("in OCB mode we should not call SetBsid");
127 }
128 
131 {
132  NS_LOG_WARN ("in OCB mode we should not call GetBssid");
133  return WILDCARD_BSSID;
134 }
135 
136 void
138 {
139  NS_LOG_FUNCTION (this << &linkUp);
141 
142  // The approach taken here is that, from the point of view of a STA
143  // in OCB mode, the link is always up, so we immediately invoke the
144  // callback if one is set
145  linkUp ();
146 }
147 
148 void
150 {
151  NS_LOG_FUNCTION (this << &linkDown);
153  NS_LOG_WARN ("in OCB mode the like will never down, so linkDown will never be called");
154 }
155 
156 void
158 {
159  NS_LOG_FUNCTION (this << packet << to);
160  if (m_stationManager->IsBrandNew (to))
161  {
162  //In ad hoc mode, we assume that every destination supports all
163  //the rates we support.
165  {
168  }
169  if (m_vhtSupported)
170  {
172  }
175  }
176 
177  WifiMacHeader hdr;
178 
179  // If we are not a QoS STA then we definitely want to use AC_BE to
180  // transmit the packet. A TID of zero will map to AC_BE (through \c
181  // QosUtilsMapTidToAc()), so we use that as our default here.
182  uint8_t tid = 0;
183 
184  if (m_qosSupported)
185  {
188  hdr.SetQosNoEosp ();
189  hdr.SetQosNoAmsdu ();
190  // About transmission of multiple frames,
191  // in Ad-hoc mode TXOP is not supported for now, so TxopLimit=0;
192  // however in OCB mode, 802.11p do not allow transmit multiple frames
193  // so TxopLimit must equal 0
194  hdr.SetQosTxopLimit (0);
195 
196  // Fill in the QoS control field in the MAC header
197  tid = QosUtilsGetTidForPacket (packet);
198  // Any value greater than 7 is invalid and likely indicates that
199  // the packet had no QoS tag, so we revert to zero, which'll
200  // mean that AC_BE is used.
201  if (tid > 7)
202  {
203  tid = 0;
204  }
205  hdr.SetQosTid (tid);
206  }
207  else
208  {
209  hdr.SetTypeData ();
210  }
211 
213  {
214  hdr.SetNoOrder ();
215  }
216  hdr.SetAddr1 (to);
217  hdr.SetAddr2 (GetAddress ());
218  hdr.SetAddr3 (WILDCARD_BSSID);
219  hdr.SetDsNotFrom ();
220  hdr.SetDsNotTo ();
221 
222  if (m_qosSupported)
223  {
224  // Sanity check that the TID is valid
225  NS_ASSERT (tid < 8);
226  m_edca[QosUtilsMapTidToAc (tid)]->Queue (packet, hdr);
227  }
228  else
229  {
230  m_dca->Queue (packet, hdr);
231  }
232 }
233 
234 /*
235  * see 802.11p-2010 chapter 11.19
236  * here we only care about data packet and vsa management frame
237  */
238 void
240 {
241  NS_LOG_FUNCTION (this << packet << hdr);
242  NS_ASSERT (!hdr->IsCtl ());
243  NS_ASSERT (hdr->GetAddr3 () == WILDCARD_BSSID);
244 
245  Mac48Address from = hdr->GetAddr2 ();
246  Mac48Address to = hdr->GetAddr1 ();
247 
248  if (m_stationManager->IsBrandNew (from))
249  {
250  //In ad hoc mode, we assume that every destination supports all
251  //the rates we support.
253  {
256  }
257  if (m_vhtSupported)
258  {
260  }
263  }
264 
265  if (hdr->IsData ())
266  {
267  if (hdr->IsQosData () && hdr->IsQosAmsdu ())
268  {
269  NS_LOG_DEBUG ("Received A-MSDU from" << from);
270  DeaggregateAmsduAndForward (packet, hdr);
271  }
272  else
273  {
274  ForwardUp (packet, from, to);
275  }
276  return;
277  }
278 
279  // why put check here, not before "if (hdr->IsData ())" ?
280  // because WifiNetDevice::ForwardUp needs to m_promiscRx data packet
281  // and will filter data packet for itself
282  // so we need to filter management frame
283  if (to != GetAddress () && !to.IsGroup ())
284  {
285  NS_LOG_LOGIC ("the management frame is not for us");
286  NotifyRxDrop (packet);
287  return;
288  }
289 
290  if (hdr->IsMgt () && hdr->IsAction ())
291  {
292  // yes, we only care about VendorSpecificAction frame in OCB mode
293  // other management frames will be handled by RegularWifiMac::Receive
295  packet->PeekHeader (vsaHdr);
296  if (vsaHdr.GetCategory () == CATEGORY_OF_VSA)
297  {
299  packet->RemoveHeader (vsa);
302 
303  if (cb.IsNull ())
304  {
305  NS_LOG_DEBUG ("cannot find VscCallback for OrganizationIdentifier=" << oi);
306  return;
307  }
308  bool succeed = cb (this, oi,packet, from);
309 
310  if (!succeed)
311  {
312  NS_LOG_DEBUG ("vsc callback could not handle the packet successfully");
313  }
314 
315  return;
316  }
317  }
318  // Invoke the receive handler of our parent class to deal with any
319  // other frames. Specifically, this will handle Block Ack-related
320  // Management Action frames.
321  RegularWifiMac::Receive (packet, hdr);
322 }
323 
324 void
325 OcbWifiMac::ConfigureEdca (uint32_t cwmin, uint32_t cwmax, uint32_t aifsn, enum AcIndex ac)
326 {
327  NS_LOG_FUNCTION (this << cwmin << cwmax << aifsn << ac);
328  Ptr<Dcf> dcf;
329  switch (ac)
330  {
331  case AC_VO:
333  dcf->SetMinCw ((cwmin + 1) / 4 - 1);
334  dcf->SetMaxCw ((cwmin + 1) / 2 - 1);
335  dcf->SetAifsn (aifsn);
336  break;
337  case AC_VI:
339  dcf->SetMinCw ((cwmin + 1) / 2 - 1);
340  dcf->SetMaxCw (cwmin);
341  dcf->SetAifsn (aifsn);
342  break;
343  case AC_BE:
345  dcf->SetMinCw (cwmin);
346  dcf->SetMaxCw (cwmax);
347  dcf->SetAifsn (aifsn);
348  break;
349  case AC_BK:
351  dcf->SetMinCw (cwmin);
352  dcf->SetMaxCw (cwmax);
353  dcf->SetAifsn (aifsn);
354  break;
355  case AC_BE_NQOS:
357  dcf->SetMinCw (cwmin);
358  dcf->SetMaxCw (cwmax);
359  dcf->SetAifsn (aifsn);
360  break;
361  case AC_UNDEF:
362  NS_FATAL_ERROR ("I don't know what to do with this");
363  break;
364  }
365 }
366 
367 void
369 {
370  NS_LOG_FUNCTION (this << standard);
372  || (standard == WIFI_PHY_STANDARD_80211a));
373 
374  uint32_t cwmin = 15;
375  uint32_t cwmax = 1023;
376 
377  // The special value of AC_BE_NQOS which exists in the Access
378  // Category enumeration allows us to configure plain old DCF.
379  ConfigureEdca (cwmin, cwmax, 2, AC_BE_NQOS);
380 
381  // Now we configure the EDCA functions
382  // see IEEE802.11p-2010 section 7.3.2.29
383  // Wave CCH and SCHs set default 802.11p EDCA
384  ConfigureEdca (cwmin, cwmax, 2, AC_VO);
385  ConfigureEdca (cwmin, cwmax, 3, AC_VI);
386  ConfigureEdca (cwmin, cwmax, 6, AC_BE);
387  ConfigureEdca (cwmin, cwmax, 9, AC_BK);
388 }
389 
390 
391 void
393 {
394  NS_LOG_FUNCTION (this);
396  m_low->NotifySleepNow ();
397 }
398 
399 void
401 {
402  NS_LOG_FUNCTION (this);
403  // wake-up operation is not required in m_low object
405 }
406 
407 void
409 {
410  NS_LOG_FUNCTION (this << duration);
412 }
413 
414 void
416 {
417  NS_LOG_FUNCTION (this << ac);
418  Ptr<EdcaTxopN> queue = m_edca.find (ac)->second;
419  NS_ASSERT (queue != 0);
420  // reset and flush queue
421  queue->NotifyChannelSwitching ();
422 }
423 
424 void
426 {
427  NS_LOG_FUNCTION (this);
428  // The switching event is used to notify MAC entity reset its operation.
431 }
432 
433 void
435 {
436  NS_LOG_FUNCTION (this << device);
437  // To extend current OcbWifiMac for WAVE 1609.4, we shall use WaveMacLow instead of MacLow
438  m_low = CreateObject<WaveMacLow> ();
439  (DynamicCast<WaveMacLow> (m_low))->SetWaveNetDevice (device);
442  m_dca->SetLow (m_low);
443  for (EdcaQueues::iterator i = m_edca.begin (); i != m_edca.end (); ++i)
444  {
445  i->second->SetLow (m_low);
446  i->second->CompleteConfig ();
447  }
448 }
449 } // namespace ns3
uint32_t RemoveHeader(Header &header)
Deserialize and remove the header from the internal buffer.
Definition: packet.cc:268
void SetAction()
Set Type/Subtype values for an action header.
void NotifyWakeupNow(void)
Notify the DCF that the device has been resumed from sleep mode.
Definition: dcf-manager.cc:929
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:102
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
void ConfigureEdca(uint32_t cwmin, uint32_t cwmax, uint32_t aifsn, enum AcIndex ac)
void SetQosAckPolicy(enum QosAckPolicy policy)
Set the QoS ACK policy in the QoS control field.
Callback template class.
Definition: callback.h:1176
void RegisterVscCallback(OrganizationIdentifier oi, VscCallback cb)
virtual void FinishConfigureStandard(enum WifiPhyStandard standard)
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition: object-base.h:44
void AddAllSupportedMcs(Mac48Address address)
Invoked in a STA or AP to store all of the MCS supported by a destination which is also supported loc...
virtual ~OcbWifiMac(void)
Definition: ocb-wifi-mac.cc:62
bool IsAction() const
Return true if the header is an Action header.
EdcaQueues m_edca
This is a map from Access Category index to the corresponding channel access function.
Mac48Address GetAddr3(void) const
Return the address in the Address 3 field.
bool IsNull(void) const
Check for null implementation.
Definition: callback.h:1270
void SetupLowListener(Ptr< MacLow > low)
Set up listener for MacLow events.
Definition: dcf-manager.cc:384
void CancleTx(enum AcIndex ac)
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
Definition: assert.h:67
void SendVsc(Ptr< Packet > vsc, Mac48Address peer, OrganizationIdentifier oi)
Definition: ocb-wifi-mac.cc:68
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition: log.h:201
void NotifySleepNow(void)
This method is typically invoked by the PhyMacLowListener to notify the MAC layer that the device has...
Definition: mac-low.cc:875
OFDM PHY for the 5 GHz band (Clause 17 with 10 MHz channel bandwidth)
VendorSpecificContentManager m_vscManager
Definition: ocb-wifi-mac.h:178
virtual void Receive(Ptr< Packet > packet, const WifiMacHeader *hdr)
This method acts as the MacRxMiddle receive callback and is invoked to notify us that a frame has bee...
void EnableForWave(Ptr< WaveNetDevice > device)
void NotifyRxDrop(Ptr< const Packet > packet)
Definition: wifi-mac.cc:284
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
Definition: fatal-error.h:162
See IEEE 802.11-2007 chapter 7.3.1.11 and 7.4.5 also IEEE 802.11p-2010 chapter 7.4.5 Although WifiActionHeader has been defined in wifi mgt-header.h/.cc, it is not a good way to inherit from it or add vendor specific action support.
static const Mac48Address WILDCARD_BSSID
Definition: ocb-wifi-mac.cc:40
void SetRxCallback(Callback< void, Ptr< Packet >, const WifiMacHeader * > callback)
Definition: mac-low.cc:693
virtual void DeaggregateAmsduAndForward(Ptr< Packet > aggregatedPacket, const WifiMacHeader *hdr)
This method can be called to de-aggregate an A-MSDU and forward the constituent packets up the stack...
virtual void SetLinkDownCallback(Callback< void > linkDown)
bool IsCtl(void) const
Return true if the Type is Control.
bool IsBrandNew(Mac48Address address) const
Return whether the station state is brand new.
virtual Ssid GetSsid(void) const
Video.
Definition: qos-utils.h:43
Voice.
Definition: qos-utils.h:45
Best Effort.
Definition: qos-utils.h:39
bool IsQosAmsdu(void) const
Check if the A-MSDU present bit is set in the QoS control field.
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capability of the device.
MacRxMiddle * m_rxMiddle
RX middle (de-fragmentation etc.)
virtual void Receive(Ptr< Packet > packet, const WifiMacHeader *hdr)
This method acts as the MacRxMiddle receive callback and is invoked to notify us that a frame has bee...
void Receive(Ptr< Packet > packet, const WifiMacHeader *hdr)
uint8_t QosUtilsGetTidForPacket(Ptr< const Packet > packet)
If a qos tag is attached to the packet, returns a value < 8.
Definition: qos-utils.cc:62
void DeregisterVscCallback(OrganizationIdentifier &oi)
void RecordDisassociated(Mac48Address address)
Records that the STA was disassociated.
virtual void SetLinkUpCallback(Callback< void > linkUp)
SetLinkUpCallback and SetLinkDownCallback will be overloaded In OCB mode, stations can send packets d...
virtual void SetBssid(Mac48Address bssid)
Ptr< EdcaTxopN > GetVOQueue(void) const
Accessor for the AC_VO channel access function.
Background.
Definition: qos-utils.h:41
void ForwardUp(Ptr< Packet > packet, Mac48Address from, Mac48Address to)
Forward the packet up to the device.
WifiPhyStandard
Identifies the PHY specification that a Wifi device is configured to use.
base class for all MAC-level wifi objects.
virtual Ssid GetSsid(void) const
bool m_qosSupported
This Boolean is set true iff this WifiMac is to model 802.11e/WMM style Quality of Service...
void SetAddr1(Mac48Address address)
Fill the Address 1 field with the given address.
void SetTypeOfStation(TypeOfStation type)
This method is invoked by a subclass to specify what type of station it is implementing.
void SetDsNotTo(void)
Un-set the To DS bit in the Frame Control field.
Ptr< DcaTxop > m_dca
This holds a pointer to the DCF instance for this WifiMac - used for transmission of frames to non-Qo...
Ptr< EdcaTxopN > GetBEQueue(void) const
Accessor for the AC_BE channel access function.
void SetAddr3(Mac48Address address)
Fill the Address 3 field with the given address.
static TypeId GetTypeId(void)
Definition: ocb-wifi-mac.cc:43
void SetOrganizationIdentifier(OrganizationIdentifier oi)
the organization identifier is a public organizationally unique identifier assigned by the IEEE...
Ptr< DcaTxop > GetDcaTxop(void) const
Accessor for the DCF object.
void AddStationHtCapabilities(Mac48Address from, HtCapabilities htcapabilities)
Records HT capabilities of the remote station.
bool m_vhtSupported
This Boolean is set true iff this WifiMac is to model 802.11ac.
void Suspend(void)
To support MAC extension for multiple channel operation, Suspend the activity in current MAC entity...
AcIndex QosUtilsMapTidToAc(uint8_t tid)
Maps TID (Traffic ID) to Access classes.
Definition: qos-utils.cc:28
uint8_t GetCategory(void) const
the category field shall be CATEGORY_OF_VSA
void MakeVirtualBusy(Time duration)
static Mac48Address GetBroadcast(void)
Callback< R > MakeCallback(R(T::*memPtr)(void), OBJ objPtr)
Definition: callback.h:1489
void NotifyChannelSwitching(void)
When a channel switching occurs, enqueued packets are removed.
Definition: edca-txop-n.cc:875
bool IsMgt(void) const
Return true if the Type is Management.
void NotifySwitchingStartNow(Time duration)
Definition: mac-low.cc:859
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC.
Definition: log.h:252
Ptr< MacLow > m_low
MacLow (RTS, CTS, DATA, ACK etc.)
HtCapabilities GetHtCapabilities(void) const
Return the HT capability of the device.
void SetQosTid(uint8_t tid)
Set the TID for the QoS header.
uint32_t PeekHeader(Header &header) const
Deserialize but does not remove the header from the internal buffer.
Definition: packet.cc:278
void RemoveReceiveVscCallback(OrganizationIdentifier oi)
Ptr< EdcaTxopN > GetVIQueue(void) const
Accessor for the AC_VI channel access function.
virtual void SetLinkUpCallback(Callback< void > linkUp)
OFDM PHY for the 5 GHz band (Clause 17)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
bool IsGroup(void) const
void SetAddr2(Mac48Address address)
Fill the Address 2 field with the given address.
DcfManager * m_dcfManager
DCF manager (access to channel)
an EUI-48 address
Definition: mac48-address.h:43
tuple ssid
Definition: third.py:93
virtual void SetLinkDownCallback(Callback< void > linkDown)
void NotifyMaybeCcaBusyStartNow(Time duration)
Definition: dcf-manager.cc:840
The IEEE 802.11 SSID Information Element.
Definition: ssid.h:38
bool m_htSupported
This Boolean is set true iff this WifiMac is to model 802.11n.
virtual void SetSsid(Ssid ssid)
VscCallback FindVscCallback(OrganizationIdentifier &oi)
static const uint8_t CATEGORY_OF_VSA
see IEEE 802.11-2007 chapter 7.3.1.11 Table 7-24—Category values
void SetQosTxopLimit(uint8_t txop)
Set TXOP limit in the QoS control field.
Ptr< EdcaTxopN > GetBKQueue(void) const
Accessor for the AC_BK channel access function.
bool IsData(void) const
Return true if the Type is DATA.
bool IsQosData(void) const
Return true if the Type is DATA and Subtype is one of the possible values for QoS DATA...
virtual Mac48Address GetBssid(void) const
#define NS_LOG_WARN(msg)
Use NS_LOG to output a message of level LOG_WARN.
Definition: log.h:228
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
Definition: log.h:236
virtual Mac48Address GetAddress(void) const
void SetTypeData(void)
Set Type/Subtype values for a data packet with no subtype equal to 0.
Total number of ACs.
Definition: qos-utils.h:47
void SetQosNoAmsdu(void)
Set that A-MSDU is not present.
void NotifySleepNow(void)
Notify the DCF that the device has been put in sleep mode.
Definition: dcf-manager.cc:910
virtual void SetBssid(Mac48Address bssid)
void SetNoOrder(void)
Unset order bit in the frame control field.
void SetType(enum WifiMacType type)
Set Type/Subtype values with the correct values depending on the given type.
OrganizationIdentifier GetOrganizationIdentifier(void) const
virtual void Enqueue(Ptr< const Packet > packet, Mac48Address to)
Mac48Address GetAddr1(void) const
Return the address in the Address 1 field.
Ptr< WifiRemoteStationManager > m_stationManager
Remote station manager (rate control, RTS/CTS/fragmentation thresholds etc.)
void SetQosNoEosp()
Un-set the end of service period (EOSP) bit in the QoS control field.
void Reset(void)
To support MAC extension for multiple channel operation, Reset current MAC entity and flush its inter...
void AddAllSupportedModes(Mac48Address address)
Invoked in a STA or AP to store all of the modes supported by a destination which is also supported l...
void NotifySwitchingStartNow(Time duration)
Definition: dcf-manager.cc:850
a unique identifier for an interface.
Definition: type-id.h:58
void Resume(void)
To support MAC extension for multiple channel operation, Resume the activity of suspended MAC entity...
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition: type-id.cc:904
AcIndex
This enumeration defines the Access Categories as an enumeration with values corresponding to the AC ...
Definition: qos-utils.h:36
void AddReceiveVscCallback(OrganizationIdentifier oi, VscCallback cb)
Definition: ocb-wifi-mac.cc:95
void AddHeader(const Header &header)
Add header to this packet.
Definition: packet.cc:257
void AddStationVhtCapabilities(Mac48Address from, VhtCapabilities vhtcapabilities)
Records VHT capabilities of the remote station.
Implements the IEEE 802.11 MAC header.
Mac48Address GetAddr2(void) const
Return the address in the Address 2 field.
STAs communicate with each directly outside the context of a BSSIn OCB mac mode,synchronization, association, dis-association and authentication of normal wifi are not used for wireless access in vehicular environments.
Definition: ocb-wifi-mac.h:48
void SetDsNotFrom(void)
Un-set the From DS bit in the Frame Control field.