src/wifi/model/wifi-mac-header.cc
changeset 11585 a4ee9fd2ae07
parent 11450 9f4ae69f12b7
child 11589 d3bfef4544ec
equal deleted inserted replaced
11584:42b7c1e05e11 11585:a4ee9fd2ae07
   445 void WifiMacHeader::SetQosTxopLimit (uint8_t txop)
   445 void WifiMacHeader::SetQosTxopLimit (uint8_t txop)
   446 {
   446 {
   447   m_qosStuff = txop;
   447   m_qosStuff = txop;
   448 }
   448 }
   449 
   449 
       
   450 void WifiMacHeader::SetQosMeshControlPresent (void)
       
   451 {
       
   452   // mark bit 0 of this variable instead of bit 8, since m_qosStuff is
       
   453   // shifted by one byte when serialized
       
   454   m_qosStuff = m_qosStuff | 0x01; // bit 8 of QoS Control Field
       
   455 }
       
   456 
       
   457 void WifiMacHeader::SetQosNoMeshControlPresent ()
       
   458 {
       
   459   // clear bit 0 of this variable instead of bit 8, since m_qosStuff is
       
   460   // shifted by one byte when serialized
       
   461   m_qosStuff = m_qosStuff & 0xfe; // bit 8 of QoS Control Field
       
   462 }
       
   463 
       
   464 
   450 Mac48Address
   465 Mac48Address
   451 WifiMacHeader::GetAddr1 (void) const
   466 WifiMacHeader::GetAddr1 (void) const
   452 {
   467 {
   453   return m_addr1;
   468   return m_addr1;
   454 }
   469 }