Namespaces

Enumerations

enum FrameType : uint8_t
Name Value Comments
kManagement 0x00 --
kControl 0x01 --
kData 0x02

TODO(porce): Distinguish from DataSubtype's kData by enum class.

kExtension 0x03 --

Frame types and subtypes

IEEE Std 802.11-2016, 9.2.4.1.3

Defined at line 51 of file ../../src/connectivity/wlan/lib/common/cpp/include/wlan/common/mac_frame.h

enum ManagementSubtype : uint8_t
Name Value
kAssociationRequest 0x00
kAssociationResponse 0x01
kReassociationRequest 0x02
kReassociationResponse 0x03
kProbeRequest 0x04
kProbeResponse 0x05
kTimingAdvertisement 0x06
kBeacon 0x08
kAtim 0x09
kDisassociation 0x0a
kAuthentication 0x0b
kDeauthentication 0x0c
kAction 0x0d
kActionNoAck 0x0e

Defined at line 58 of file ../../src/connectivity/wlan/lib/common/cpp/include/wlan/common/mac_frame.h

enum ControlSubtype : uint8_t
Name Value
kBeamformingReportPoll 0x04
kVhtNdpAnnouncement 0x05
kControlFrameExtension 0x06
kControlWrapper 0x07
kBlockAckRequest 0x08
kBlockAck 0x09
kPsPoll 0x0a
kRts 0x0b
kCts 0x0c
kAck 0x0d
kCfEnd 0x0e
kCfEndCfAck 0x0f

Defined at line 75 of file ../../src/connectivity/wlan/lib/common/cpp/include/wlan/common/mac_frame.h

enum DataSubtypeBitmask : uint8_t
Name Value Comments
kBitmaskCfAck (1 << 0)

Bit 4

kBitmaskCfPoll (1 << 1)

Bit 5

kBitmaskNull (1 << 2)

Bit 6. If not Null, it means Data.

kBitmaskQos (1 << 3)

Bit 7

IEEE Std 802.11-2016, 9.2.4.1.3, Table 9-1

Defined at line 91 of file ../../src/connectivity/wlan/lib/common/cpp/include/wlan/common/mac_frame.h

enum TsDirection : uint8_t
Name Value
kUplink 0
kDownlink 1
kDirectLink 2
kBidirectionalLink 3

IEEE Std 802.11-2016, 9.4.2.30, Table 9-139

Defined at line 95 of file ../../src/connectivity/wlan/lib/common/cpp/include/wlan/common/element.h

enum DataSubtype : uint8_t
Name Value Comments
kDataSubtype 0x00

TODO(porce): Avoid namespace collision with enum
FrameType's kData.

kDataCfack 0x01 --
kDataCfpoll 0x02 --
kDataCfackCfpoll 0x03 --
kNull 0x04 --
kCfack 0x05 --
kCfpoll 0x06 --
kCfackCfpoll 0x07 --
kQosdata 0x08 --
kQosdataCfack 0x09 --
kQosdataCfpoll 0x0a --
kQosdataCfackCfpoll 0x0b --
kQosnull 0x0c --
kQosCfpoll 0x0e

Reserved 0x0d,

kQosCfackCfpoll 0x0f

Reserved 0x0d,

IEEE Std 802.11-2016, 9.2.4.1.3, Table 9-1

Defined at line 100 of file ../../src/connectivity/wlan/lib/common/cpp/include/wlan/common/mac_frame.h

enum TsAccessPolicy : uint8_t
Name Value Comments
kEdca 1

0 reserved

kHccaSpca 2

0 reserved

kMixedMode 3

0 reserved

IEEE Std 802.11-2016, 9.4.2.30, Table 9-140

Defined at line 103 of file ../../src/connectivity/wlan/lib/common/cpp/include/wlan/common/element.h

enum TsScheduleSetting : uint8_t
Name Value
kNoSchedule 0
kUnschedledApsd 1
kScheduledPsmp_GcrSp 2
kScheduledApsd 3

IEEE Std 802.11-2016, 9.4.2.30, Table 9-142

Only used if TsInfo's access policy uses EDCA.

Schedule Setting depends on TsInfo's ASPD and schedule fields.

Defined at line 123 of file ../../src/connectivity/wlan/lib/common/cpp/include/wlan/common/element.h

enum ElementIdExtension : uint8_t
Name Value Comments
kFtmSynchronizationInformation 9

0-8 Reserved

kExtRequest 10

0-8 Reserved

kEstimatedServiceParams 11

0-8 Reserved

kFutureChannelGuidance 14

12-13 not defined

Defined at line 206 of file ../../src/connectivity/wlan/lib/common/cpp/include/wlan/common/element_id.h

enum AuthAlgorithm : uint16_t
Name Value Comments
kOpenSystem 0 --
kSharedKey 1 --
kFastBssTransitionAuth 2 --
kSae 3 --
kVendorSpecificAuth 65535

4-65534 Reserved

IEEE Std 802.11-2016, 9.4.1.1

Defined at line 304 of file ../../src/connectivity/wlan/lib/common/cpp/include/wlan/common/mac_frame.h

Records

Functions

  • std::string RoleToString (wlan_common::WlanMacRole role)

    Defined at line 79 of file ../../src/connectivity/wlan/testing/wlantap-driver/utils.cc

  • void ConvertTapPhyConfig (wlan_softmac::WlanSoftmacQueryResponse * resp, const wlan_tap::WlantapPhyConfig & tap_phy_config, fidl::AnyArena & arena)

    Defined at line 22 of file ../../src/connectivity/wlan/testing/wlantap-driver/utils.cc

  • CapabilityInfo IntersectCapInfo (const CapabilityInfo & lhs, const CapabilityInfo & rhs)

    Defined at line 10 of file ../../src/connectivity/wlan/lib/common/cpp/mac_frame.cc