blob: d5bd401a20c64f212ba58e082e3d01e274a9d7f0 [file] [log] [blame]
// Copyright 2022 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library fuchsia.wlan.ieee80211;
alias Ssid = vector<uint8>:MAX_SSID_BYTE_LEN;
// CSsid is intended for use only in source code using C bindings where
// the Ssid alias does not exist.
type CSsid = struct {
len uint8;
data array<uint8, MAX_SSID_BYTE_LEN>;
};
/// The HT capabilities element, as defined in 9.4.2.56.
@available(removed=8)
@packed
type HtCapabilitiesFields = struct {
ht_capability_info uint16;
ampdu_params uint8;
supported_mcs_set array<uint8, 16>;
ht_ext_capabilities uint16;
tx_beamforming_capabilities uint32;
asel_capabilities uint8;
};
/// The VHT capabilities element, as defined in 9.4.2.158.
@available(removed=8)
@packed
type VhtCapabilitiesFields = struct {
vht_capability_info uint32;
supported_vht_mcs_and_nss_set uint64;
};
// IEEE Std 802.11-2016 9.4.2.56
type HtCapabilities = struct {
bytes array<uint8, HT_CAP_LEN>;
};
// IEEE Std 802.11-2016 9.4.2.57
type HtOperation = struct {
bytes array<uint8, HT_OP_LEN>;
};
// IEEE Std 802.11-2016 9.5.2.158
type VhtCapabilities = struct {
bytes array<uint8, VHT_CAP_LEN>;
};
// IEEE Std 802.11-2016 9.5.2.159
type VhtOperation = struct {
bytes array<uint8, VHT_OP_LEN>;
};
/// IEEE Std 802.11-2020 9.4.2.173
@available(added=13)
type WlanAccessCategory = strict enum {
BACKGROUND = 1;
BEST_EFFORT = 2;
VIDEO = 3;
VOICE = 4;
};