linux/include/linux/ieee80211.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * IEEE 802.11 defines
 *
 * Copyright (c) 2001-2002, SSH Communications Security Corp and Jouni Malinen
 * <[email protected]>
 * Copyright (c) 2002-2003, Jouni Malinen <[email protected]>
 * Copyright (c) 2005, Devicescape Software, Inc.
 * Copyright (c) 2006, Michael Wu <[email protected]>
 * Copyright (c) 2013 - 2014 Intel Mobile Communications GmbH
 * Copyright (c) 2016 - 2017 Intel Deutschland GmbH
 * Copyright (c) 2018 - 2024 Intel Corporation
 */

#ifndef LINUX_IEEE80211_H
#define LINUX_IEEE80211_H

#include <linux/types.h>
#include <linux/if_ether.h>
#include <linux/etherdevice.h>
#include <linux/bitfield.h>
#include <asm/byteorder.h>
#include <asm/unaligned.h>

/*
 * DS bit usage
 *
 * TA = transmitter address
 * RA = receiver address
 * DA = destination address
 * SA = source address
 *
 * ToDS    FromDS  A1(RA)  A2(TA)  A3      A4      Use
 * -----------------------------------------------------------------
 *  0       0       DA      SA      BSSID   -       IBSS/DLS
 *  0       1       DA      BSSID   SA      -       AP -> STA
 *  1       0       BSSID   SA      DA      -       AP <- STA
 *  1       1       RA      TA      DA      SA      unspecified (WDS)
 */

#define FCS_LEN

#define IEEE80211_FCTL_VERS
#define IEEE80211_FCTL_FTYPE
#define IEEE80211_FCTL_STYPE
#define IEEE80211_FCTL_TODS
#define IEEE80211_FCTL_FROMDS
#define IEEE80211_FCTL_MOREFRAGS
#define IEEE80211_FCTL_RETRY
#define IEEE80211_FCTL_PM
#define IEEE80211_FCTL_MOREDATA
#define IEEE80211_FCTL_PROTECTED
#define IEEE80211_FCTL_ORDER
#define IEEE80211_FCTL_CTL_EXT

#define IEEE80211_SCTL_FRAG
#define IEEE80211_SCTL_SEQ

#define IEEE80211_FTYPE_MGMT
#define IEEE80211_FTYPE_CTL
#define IEEE80211_FTYPE_DATA
#define IEEE80211_FTYPE_EXT

/* management */
#define IEEE80211_STYPE_ASSOC_REQ
#define IEEE80211_STYPE_ASSOC_RESP
#define IEEE80211_STYPE_REASSOC_REQ
#define IEEE80211_STYPE_REASSOC_RESP
#define IEEE80211_STYPE_PROBE_REQ
#define IEEE80211_STYPE_PROBE_RESP
#define IEEE80211_STYPE_BEACON
#define IEEE80211_STYPE_ATIM
#define IEEE80211_STYPE_DISASSOC
#define IEEE80211_STYPE_AUTH
#define IEEE80211_STYPE_DEAUTH
#define IEEE80211_STYPE_ACTION

/* control */
#define IEEE80211_STYPE_TRIGGER
#define IEEE80211_STYPE_CTL_EXT
#define IEEE80211_STYPE_BACK_REQ
#define IEEE80211_STYPE_BACK
#define IEEE80211_STYPE_PSPOLL
#define IEEE80211_STYPE_RTS
#define IEEE80211_STYPE_CTS
#define IEEE80211_STYPE_ACK
#define IEEE80211_STYPE_CFEND
#define IEEE80211_STYPE_CFENDACK

/* data */
#define IEEE80211_STYPE_DATA
#define IEEE80211_STYPE_DATA_CFACK
#define IEEE80211_STYPE_DATA_CFPOLL
#define IEEE80211_STYPE_DATA_CFACKPOLL
#define IEEE80211_STYPE_NULLFUNC
#define IEEE80211_STYPE_CFACK
#define IEEE80211_STYPE_CFPOLL
#define IEEE80211_STYPE_CFACKPOLL
#define IEEE80211_STYPE_QOS_DATA
#define IEEE80211_STYPE_QOS_DATA_CFACK
#define IEEE80211_STYPE_QOS_DATA_CFPOLL
#define IEEE80211_STYPE_QOS_DATA_CFACKPOLL
#define IEEE80211_STYPE_QOS_NULLFUNC
#define IEEE80211_STYPE_QOS_CFACK
#define IEEE80211_STYPE_QOS_CFPOLL
#define IEEE80211_STYPE_QOS_CFACKPOLL

/* extension, added by 802.11ad */
#define IEEE80211_STYPE_DMG_BEACON
#define IEEE80211_STYPE_S1G_BEACON

/* bits unique to S1G beacon */
#define IEEE80211_S1G_BCN_NEXT_TBTT

/* see 802.11ah-2016 9.9 NDP CMAC frames */
#define IEEE80211_S1G_1MHZ_NDP_BITS
#define IEEE80211_S1G_1MHZ_NDP_BYTES
#define IEEE80211_S1G_2MHZ_NDP_BITS
#define IEEE80211_S1G_2MHZ_NDP_BYTES

#define IEEE80211_NDP_FTYPE_CTS
#define IEEE80211_NDP_FTYPE_CF_END
#define IEEE80211_NDP_FTYPE_PS_POLL
#define IEEE80211_NDP_FTYPE_ACK
#define IEEE80211_NDP_FTYPE_PS_POLL_ACK
#define IEEE80211_NDP_FTYPE_BA
#define IEEE80211_NDP_FTYPE_BF_REPORT_POLL
#define IEEE80211_NDP_FTYPE_PAGING
#define IEEE80211_NDP_FTYPE_PREQ

#define SM64(f, v)

/* NDP CMAC frame fields */
#define IEEE80211_NDP_FTYPE
#define IEEE80211_NDP_FTYPE_S

/* 1M Probe Request 11ah 9.9.3.1.1 */
#define IEEE80211_NDP_1M_PREQ_ANO
#define IEEE80211_NDP_1M_PREQ_ANO_S
#define IEEE80211_NDP_1M_PREQ_CSSID
#define IEEE80211_NDP_1M_PREQ_CSSID_S
#define IEEE80211_NDP_1M_PREQ_RTYPE
#define IEEE80211_NDP_1M_PREQ_RTYPE_S
#define IEEE80211_NDP_1M_PREQ_RSV
#define IEEE80211_NDP_1M_PREQ_RSV
/* 2M Probe Request 11ah 9.9.3.1.2 */
#define IEEE80211_NDP_2M_PREQ_ANO
#define IEEE80211_NDP_2M_PREQ_ANO_S
#define IEEE80211_NDP_2M_PREQ_CSSID
#define IEEE80211_NDP_2M_PREQ_CSSID_S
#define IEEE80211_NDP_2M_PREQ_RTYPE
#define IEEE80211_NDP_2M_PREQ_RTYPE_S

#define IEEE80211_ANO_NETTYPE_WILD

/* bits unique to S1G beacon */
#define IEEE80211_S1G_BCN_NEXT_TBTT

/* control extension - for IEEE80211_FTYPE_CTL | IEEE80211_STYPE_CTL_EXT */
#define IEEE80211_CTL_EXT_POLL
#define IEEE80211_CTL_EXT_SPR
#define IEEE80211_CTL_EXT_GRANT
#define IEEE80211_CTL_EXT_DMG_CTS
#define IEEE80211_CTL_EXT_DMG_DTS
#define IEEE80211_CTL_EXT_SSW
#define IEEE80211_CTL_EXT_SSW_FBACK
#define IEEE80211_CTL_EXT_SSW_ACK


#define IEEE80211_SN_MASK
#define IEEE80211_MAX_SN
#define IEEE80211_SN_MODULO


/* PV1 Layout IEEE 802.11-2020 9.8.3.1 */
#define IEEE80211_PV1_FCTL_VERS
#define IEEE80211_PV1_FCTL_FTYPE
#define IEEE80211_PV1_FCTL_STYPE
#define IEEE80211_PV1_FCTL_FROMDS
#define IEEE80211_PV1_FCTL_MOREFRAGS
#define IEEE80211_PV1_FCTL_PM
#define IEEE80211_PV1_FCTL_MOREDATA
#define IEEE80211_PV1_FCTL_PROTECTED
#define IEEE80211_PV1_FCTL_END_SP
#define IEEE80211_PV1_FCTL_RELAYED
#define IEEE80211_PV1_FCTL_ACK_POLICY
#define IEEE80211_PV1_FCTL_CTL_EXT

static inline bool ieee80211_sn_less(u16 sn1, u16 sn2)
{}

static inline bool ieee80211_sn_less_eq(u16 sn1, u16 sn2)
{}

static inline u16 ieee80211_sn_add(u16 sn1, u16 sn2)
{}

static inline u16 ieee80211_sn_inc(u16 sn)
{}

static inline u16 ieee80211_sn_sub(u16 sn1, u16 sn2)
{}

#define IEEE80211_SEQ_TO_SN(seq)
#define IEEE80211_SN_TO_SEQ(ssn)

/* miscellaneous IEEE 802.11 constants */
#define IEEE80211_MAX_FRAG_THRESHOLD
#define IEEE80211_MAX_RTS_THRESHOLD
#define IEEE80211_MAX_AID
#define IEEE80211_MAX_AID_S1G
#define IEEE80211_MAX_TIM_LEN
#define IEEE80211_MAX_MESH_PEERINGS
/* Maximum size for the MA-UNITDATA primitive, 802.11 standard section
   6.2.1.1.2.

   802.11e clarifies the figure in section 7.1.2. The frame body is
   up to 2304 octets long (maximum MSDU size) plus any crypt overhead. */
#define IEEE80211_MAX_DATA_LEN
/* 802.11ad extends maximum MSDU size for DMG (freq > 40Ghz) networks
 * to 7920 bytes, see 8.2.3 General frame format
 */
#define IEEE80211_MAX_DATA_LEN_DMG
/* 30 byte 4 addr hdr, 2 byte QoS, 2304 byte MSDU, 12 byte crypt, 4 byte FCS */
#define IEEE80211_MAX_FRAME_LEN

/* Maximal size of an A-MSDU that can be transported in a HT BA session */
#define IEEE80211_MAX_MPDU_LEN_HT_BA

/* Maximal size of an A-MSDU */
#define IEEE80211_MAX_MPDU_LEN_HT_3839
#define IEEE80211_MAX_MPDU_LEN_HT_7935

#define IEEE80211_MAX_MPDU_LEN_VHT_3895
#define IEEE80211_MAX_MPDU_LEN_VHT_7991
#define IEEE80211_MAX_MPDU_LEN_VHT_11454

#define IEEE80211_MAX_SSID_LEN

#define IEEE80211_MAX_MESH_ID_LEN

#define IEEE80211_FIRST_TSPEC_TSID
#define IEEE80211_NUM_TIDS

/* number of user priorities 802.11 uses */
#define IEEE80211_NUM_UPS
/* number of ACs */
#define IEEE80211_NUM_ACS

#define IEEE80211_QOS_CTL_LEN
/* 1d tag mask */
#define IEEE80211_QOS_CTL_TAG1D_MASK
/* TID mask */
#define IEEE80211_QOS_CTL_TID_MASK
/* EOSP */
#define IEEE80211_QOS_CTL_EOSP
/* ACK policy */
#define IEEE80211_QOS_CTL_ACK_POLICY_NORMAL
#define IEEE80211_QOS_CTL_ACK_POLICY_NOACK
#define IEEE80211_QOS_CTL_ACK_POLICY_NO_EXPL
#define IEEE80211_QOS_CTL_ACK_POLICY_BLOCKACK
#define IEEE80211_QOS_CTL_ACK_POLICY_MASK
/* A-MSDU 802.11n */
#define IEEE80211_QOS_CTL_A_MSDU_PRESENT
/* Mesh Control 802.11s */
#define IEEE80211_QOS_CTL_MESH_CONTROL_PRESENT

/* Mesh Power Save Level */
#define IEEE80211_QOS_CTL_MESH_PS_LEVEL
/* Mesh Receiver Service Period Initiated */
#define IEEE80211_QOS_CTL_RSPI

/* U-APSD queue for WMM IEs sent by AP */
#define IEEE80211_WMM_IE_AP_QOSINFO_UAPSD
#define IEEE80211_WMM_IE_AP_QOSINFO_PARAM_SET_CNT_MASK

/* U-APSD queues for WMM IEs sent by STA */
#define IEEE80211_WMM_IE_STA_QOSINFO_AC_VO
#define IEEE80211_WMM_IE_STA_QOSINFO_AC_VI
#define IEEE80211_WMM_IE_STA_QOSINFO_AC_BK
#define IEEE80211_WMM_IE_STA_QOSINFO_AC_BE
#define IEEE80211_WMM_IE_STA_QOSINFO_AC_MASK

/* U-APSD max SP length for WMM IEs sent by STA */
#define IEEE80211_WMM_IE_STA_QOSINFO_SP_ALL
#define IEEE80211_WMM_IE_STA_QOSINFO_SP_2
#define IEEE80211_WMM_IE_STA_QOSINFO_SP_4
#define IEEE80211_WMM_IE_STA_QOSINFO_SP_6
#define IEEE80211_WMM_IE_STA_QOSINFO_SP_MASK
#define IEEE80211_WMM_IE_STA_QOSINFO_SP_SHIFT

#define IEEE80211_HT_CTL_LEN

/* trigger type within common_info of trigger frame */
#define IEEE80211_TRIGGER_TYPE_MASK
#define IEEE80211_TRIGGER_TYPE_BASIC
#define IEEE80211_TRIGGER_TYPE_BFRP
#define IEEE80211_TRIGGER_TYPE_MU_BAR
#define IEEE80211_TRIGGER_TYPE_MU_RTS
#define IEEE80211_TRIGGER_TYPE_BSRP
#define IEEE80211_TRIGGER_TYPE_GCR_MU_BAR
#define IEEE80211_TRIGGER_TYPE_BQRP
#define IEEE80211_TRIGGER_TYPE_NFRP

/* UL-bandwidth within common_info of trigger frame */
#define IEEE80211_TRIGGER_ULBW_MASK
#define IEEE80211_TRIGGER_ULBW_20MHZ
#define IEEE80211_TRIGGER_ULBW_40MHZ
#define IEEE80211_TRIGGER_ULBW_80MHZ
#define IEEE80211_TRIGGER_ULBW_160_80P80MHZ

struct ieee80211_hdr {} __packed __aligned();

struct ieee80211_hdr_3addr {} __packed __aligned();

struct ieee80211_qos_hdr {} __packed __aligned();

struct ieee80211_qos_hdr_4addr {} __packed __aligned();

struct ieee80211_trigger {} __packed __aligned();

/**
 * ieee80211_has_tods - check if IEEE80211_FCTL_TODS is set
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame has to-DS set
 */
static inline bool ieee80211_has_tods(__le16 fc)
{}

/**
 * ieee80211_has_fromds - check if IEEE80211_FCTL_FROMDS is set
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame has from-DS set
 */
static inline bool ieee80211_has_fromds(__le16 fc)
{}

/**
 * ieee80211_has_a4 - check if IEEE80211_FCTL_TODS and IEEE80211_FCTL_FROMDS are set
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not it's a 4-address frame (from-DS and to-DS set)
 */
static inline bool ieee80211_has_a4(__le16 fc)
{}

/**
 * ieee80211_has_morefrags - check if IEEE80211_FCTL_MOREFRAGS is set
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame has more fragments (more frags bit set)
 */
static inline bool ieee80211_has_morefrags(__le16 fc)
{}

/**
 * ieee80211_has_retry - check if IEEE80211_FCTL_RETRY is set
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the retry flag is set
 */
static inline bool ieee80211_has_retry(__le16 fc)
{}

/**
 * ieee80211_has_pm - check if IEEE80211_FCTL_PM is set
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the power management flag is set
 */
static inline bool ieee80211_has_pm(__le16 fc)
{}

/**
 * ieee80211_has_moredata - check if IEEE80211_FCTL_MOREDATA is set
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the more data flag is set
 */
static inline bool ieee80211_has_moredata(__le16 fc)
{}

/**
 * ieee80211_has_protected - check if IEEE80211_FCTL_PROTECTED is set
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the protected flag is set
 */
static inline bool ieee80211_has_protected(__le16 fc)
{}

/**
 * ieee80211_has_order - check if IEEE80211_FCTL_ORDER is set
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the order flag is set
 */
static inline bool ieee80211_has_order(__le16 fc)
{}

/**
 * ieee80211_is_mgmt - check if type is IEEE80211_FTYPE_MGMT
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame type is management
 */
static inline bool ieee80211_is_mgmt(__le16 fc)
{}

/**
 * ieee80211_is_ctl - check if type is IEEE80211_FTYPE_CTL
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame type is control
 */
static inline bool ieee80211_is_ctl(__le16 fc)
{}

/**
 * ieee80211_is_data - check if type is IEEE80211_FTYPE_DATA
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is a data frame
 */
static inline bool ieee80211_is_data(__le16 fc)
{}

/**
 * ieee80211_is_ext - check if type is IEEE80211_FTYPE_EXT
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame type is extended
 */
static inline bool ieee80211_is_ext(__le16 fc)
{}


/**
 * ieee80211_is_data_qos - check if type is IEEE80211_FTYPE_DATA and IEEE80211_STYPE_QOS_DATA is set
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is a QoS data frame
 */
static inline bool ieee80211_is_data_qos(__le16 fc)
{}

/**
 * ieee80211_is_data_present - check if type is IEEE80211_FTYPE_DATA and has data
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is a QoS data frame that has data
 *	(i.e. is not null data)
 */
static inline bool ieee80211_is_data_present(__le16 fc)
{}

/**
 * ieee80211_is_assoc_req - check if IEEE80211_FTYPE_MGMT && IEEE80211_STYPE_ASSOC_REQ
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is an association request
 */
static inline bool ieee80211_is_assoc_req(__le16 fc)
{}

/**
 * ieee80211_is_assoc_resp - check if IEEE80211_FTYPE_MGMT && IEEE80211_STYPE_ASSOC_RESP
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is an association response
 */
static inline bool ieee80211_is_assoc_resp(__le16 fc)
{}

/**
 * ieee80211_is_reassoc_req - check if IEEE80211_FTYPE_MGMT && IEEE80211_STYPE_REASSOC_REQ
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is a reassociation request
 */
static inline bool ieee80211_is_reassoc_req(__le16 fc)
{}

/**
 * ieee80211_is_reassoc_resp - check if IEEE80211_FTYPE_MGMT && IEEE80211_STYPE_REASSOC_RESP
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is a reassociation response
 */
static inline bool ieee80211_is_reassoc_resp(__le16 fc)
{}

/**
 * ieee80211_is_probe_req - check if IEEE80211_FTYPE_MGMT && IEEE80211_STYPE_PROBE_REQ
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is a probe request
 */
static inline bool ieee80211_is_probe_req(__le16 fc)
{}

/**
 * ieee80211_is_probe_resp - check if IEEE80211_FTYPE_MGMT && IEEE80211_STYPE_PROBE_RESP
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is a probe response
 */
static inline bool ieee80211_is_probe_resp(__le16 fc)
{}

/**
 * ieee80211_is_beacon - check if IEEE80211_FTYPE_MGMT && IEEE80211_STYPE_BEACON
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is a (regular, not S1G) beacon
 */
static inline bool ieee80211_is_beacon(__le16 fc)
{}

/**
 * ieee80211_is_s1g_beacon - check if IEEE80211_FTYPE_EXT &&
 * IEEE80211_STYPE_S1G_BEACON
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is an S1G beacon
 */
static inline bool ieee80211_is_s1g_beacon(__le16 fc)
{}

/**
 * ieee80211_is_s1g_short_beacon - check if frame is an S1G short beacon
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is an S1G short beacon,
 *	i.e. it is an S1G beacon with 'next TBTT' flag set
 */
static inline bool ieee80211_is_s1g_short_beacon(__le16 fc)
{}

/**
 * ieee80211_is_atim - check if IEEE80211_FTYPE_MGMT && IEEE80211_STYPE_ATIM
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is an ATIM frame
 */
static inline bool ieee80211_is_atim(__le16 fc)
{}

/**
 * ieee80211_is_disassoc - check if IEEE80211_FTYPE_MGMT && IEEE80211_STYPE_DISASSOC
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is a disassociation frame
 */
static inline bool ieee80211_is_disassoc(__le16 fc)
{}

/**
 * ieee80211_is_auth - check if IEEE80211_FTYPE_MGMT && IEEE80211_STYPE_AUTH
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is an authentication frame
 */
static inline bool ieee80211_is_auth(__le16 fc)
{}

/**
 * ieee80211_is_deauth - check if IEEE80211_FTYPE_MGMT && IEEE80211_STYPE_DEAUTH
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is a deauthentication frame
 */
static inline bool ieee80211_is_deauth(__le16 fc)
{}

/**
 * ieee80211_is_action - check if IEEE80211_FTYPE_MGMT && IEEE80211_STYPE_ACTION
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is an action frame
 */
static inline bool ieee80211_is_action(__le16 fc)
{}

/**
 * ieee80211_is_back_req - check if IEEE80211_FTYPE_CTL && IEEE80211_STYPE_BACK_REQ
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is a block-ACK request frame
 */
static inline bool ieee80211_is_back_req(__le16 fc)
{}

/**
 * ieee80211_is_back - check if IEEE80211_FTYPE_CTL && IEEE80211_STYPE_BACK
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is a block-ACK frame
 */
static inline bool ieee80211_is_back(__le16 fc)
{}

/**
 * ieee80211_is_pspoll - check if IEEE80211_FTYPE_CTL && IEEE80211_STYPE_PSPOLL
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is a PS-poll frame
 */
static inline bool ieee80211_is_pspoll(__le16 fc)
{}

/**
 * ieee80211_is_rts - check if IEEE80211_FTYPE_CTL && IEEE80211_STYPE_RTS
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is an RTS frame
 */
static inline bool ieee80211_is_rts(__le16 fc)
{}

/**
 * ieee80211_is_cts - check if IEEE80211_FTYPE_CTL && IEEE80211_STYPE_CTS
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is a CTS frame
 */
static inline bool ieee80211_is_cts(__le16 fc)
{}

/**
 * ieee80211_is_ack - check if IEEE80211_FTYPE_CTL && IEEE80211_STYPE_ACK
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is an ACK frame
 */
static inline bool ieee80211_is_ack(__le16 fc)
{}

/**
 * ieee80211_is_cfend - check if IEEE80211_FTYPE_CTL && IEEE80211_STYPE_CFEND
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is a CF-end frame
 */
static inline bool ieee80211_is_cfend(__le16 fc)
{}

/**
 * ieee80211_is_cfendack - check if IEEE80211_FTYPE_CTL && IEEE80211_STYPE_CFENDACK
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is a CF-end-ack frame
 */
static inline bool ieee80211_is_cfendack(__le16 fc)
{}

/**
 * ieee80211_is_nullfunc - check if frame is a regular (non-QoS) nullfunc frame
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is a nullfunc frame
 */
static inline bool ieee80211_is_nullfunc(__le16 fc)
{}

/**
 * ieee80211_is_qos_nullfunc - check if frame is a QoS nullfunc frame
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is a QoS nullfunc frame
 */
static inline bool ieee80211_is_qos_nullfunc(__le16 fc)
{}

/**
 * ieee80211_is_trigger - check if frame is trigger frame
 * @fc: frame control field in little-endian byteorder
 * Return: whether or not the frame is a trigger frame
 */
static inline bool ieee80211_is_trigger(__le16 fc)
{}

/**
 * ieee80211_is_any_nullfunc - check if frame is regular or QoS nullfunc frame
 * @fc: frame control bytes in little-endian byteorder
 * Return: whether or not the frame is a nullfunc or QoS nullfunc frame
 */
static inline bool ieee80211_is_any_nullfunc(__le16 fc)
{}

/**
 * ieee80211_is_first_frag - check if IEEE80211_SCTL_FRAG is not set
 * @seq_ctrl: frame sequence control bytes in little-endian byteorder
 * Return: whether or not the frame is the first fragment (also true if
 *	it's not fragmented at all)
 */
static inline bool ieee80211_is_first_frag(__le16 seq_ctrl)
{}

/**
 * ieee80211_is_frag - check if a frame is a fragment
 * @hdr: 802.11 header of the frame
 * Return: whether or not the frame is a fragment
 */
static inline bool ieee80211_is_frag(struct ieee80211_hdr *hdr)
{}

static inline u16 ieee80211_get_sn(struct ieee80211_hdr *hdr)
{}

struct ieee80211s_hdr {} __packed __aligned();

/* Mesh flags */
#define MESH_FLAGS_AE_A4
#define MESH_FLAGS_AE_A5_A6
#define MESH_FLAGS_AE
#define MESH_FLAGS_PS_DEEP

/**
 * enum ieee80211_preq_flags - mesh PREQ element flags
 *
 * @IEEE80211_PREQ_PROACTIVE_PREP_FLAG: proactive PREP subfield
 */
enum ieee80211_preq_flags {};

/**
 * enum ieee80211_preq_target_flags - mesh PREQ element per target flags
 *
 * @IEEE80211_PREQ_TO_FLAG: target only subfield
 * @IEEE80211_PREQ_USN_FLAG: unknown target HWMP sequence number subfield
 */
enum ieee80211_preq_target_flags {};

/**
 * struct ieee80211_quiet_ie - Quiet element
 * @count: Quiet Count
 * @period: Quiet Period
 * @duration: Quiet Duration
 * @offset: Quiet Offset
 *
 * This structure represents the payload of the "Quiet element" as
 * described in IEEE Std 802.11-2020 section 9.4.2.22.
 */
struct ieee80211_quiet_ie {} __packed;

/**
 * struct ieee80211_msrment_ie - Measurement element
 * @token: Measurement Token
 * @mode: Measurement Report Mode
 * @type: Measurement Type
 * @request: Measurement Request or Measurement Report
 *
 * This structure represents the payload of both the "Measurement
 * Request element" and the "Measurement Report element" as described
 * in IEEE Std 802.11-2020 sections 9.4.2.20 and 9.4.2.21.
 */
struct ieee80211_msrment_ie {} __packed;

/**
 * struct ieee80211_channel_sw_ie - Channel Switch Announcement element
 * @mode: Channel Switch Mode
 * @new_ch_num: New Channel Number
 * @count: Channel Switch Count
 *
 * This structure represents the payload of the "Channel Switch
 * Announcement element" as described in IEEE Std 802.11-2020 section
 * 9.4.2.18.
 */
struct ieee80211_channel_sw_ie {} __packed;

/**
 * struct ieee80211_ext_chansw_ie - Extended Channel Switch Announcement element
 * @mode: Channel Switch Mode
 * @new_operating_class: New Operating Class
 * @new_ch_num: New Channel Number
 * @count: Channel Switch Count
 *
 * This structure represents the "Extended Channel Switch Announcement
 * element" as described in IEEE Std 802.11-2020 section 9.4.2.52.
 */
struct ieee80211_ext_chansw_ie {} __packed;

/**
 * struct ieee80211_sec_chan_offs_ie - secondary channel offset IE
 * @sec_chan_offs: secondary channel offset, uses IEEE80211_HT_PARAM_CHA_SEC_*
 *	values here
 * This structure represents the "Secondary Channel Offset element"
 */
struct ieee80211_sec_chan_offs_ie {} __packed;

/**
 * struct ieee80211_mesh_chansw_params_ie - mesh channel switch parameters IE
 * @mesh_ttl: Time To Live
 * @mesh_flags: Flags
 * @mesh_reason: Reason Code
 * @mesh_pre_value: Precedence Value
 *
 * This structure represents the payload of the "Mesh Channel Switch
 * Parameters element" as described in IEEE Std 802.11-2020 section
 * 9.4.2.102.
 */
struct ieee80211_mesh_chansw_params_ie {} __packed;

/**
 * struct ieee80211_wide_bw_chansw_ie - wide bandwidth channel switch IE
 * @new_channel_width: New Channel Width
 * @new_center_freq_seg0: New Channel Center Frequency Segment 0
 * @new_center_freq_seg1: New Channel Center Frequency Segment 1
 *
 * This structure represents the payload of the "Wide Bandwidth
 * Channel Switch element" as described in IEEE Std 802.11-2020
 * section 9.4.2.160.
 */
struct ieee80211_wide_bw_chansw_ie {} __packed;

/**
 * struct ieee80211_tim_ie - Traffic Indication Map information element
 * @dtim_count: DTIM Count
 * @dtim_period: DTIM Period
 * @bitmap_ctrl: Bitmap Control
 * @required_octet: "Syntatic sugar" to force the struct size to the
 *                  minimum valid size when carried in a non-S1G PPDU
 * @virtual_map: Partial Virtual Bitmap
 *
 * This structure represents the payload of the "TIM element" as
 * described in IEEE Std 802.11-2020 section 9.4.2.5. Note that this
 * definition is only applicable when the element is carried in a
 * non-S1G PPDU. When the TIM is carried in an S1G PPDU, the Bitmap
 * Control and Partial Virtual Bitmap may not be present.
 */
struct ieee80211_tim_ie {} __packed;

/**
 * struct ieee80211_meshconf_ie - Mesh Configuration element
 * @meshconf_psel: Active Path Selection Protocol Identifier
 * @meshconf_pmetric: Active Path Selection Metric Identifier
 * @meshconf_congest: Congestion Control Mode Identifier
 * @meshconf_synch: Synchronization Method Identifier
 * @meshconf_auth: Authentication Protocol Identifier
 * @meshconf_form: Mesh Formation Info
 * @meshconf_cap: Mesh Capability (see &enum mesh_config_capab_flags)
 *
 * This structure represents the payload of the "Mesh Configuration
 * element" as described in IEEE Std 802.11-2020 section 9.4.2.97.
 */
struct ieee80211_meshconf_ie {} __packed;

/**
 * enum mesh_config_capab_flags - Mesh Configuration IE capability field flags
 *
 * @IEEE80211_MESHCONF_CAPAB_ACCEPT_PLINKS: STA is willing to establish
 *	additional mesh peerings with other mesh STAs
 * @IEEE80211_MESHCONF_CAPAB_FORWARDING: the STA forwards MSDUs
 * @IEEE80211_MESHCONF_CAPAB_TBTT_ADJUSTING: TBTT adjustment procedure
 *	is ongoing
 * @IEEE80211_MESHCONF_CAPAB_POWER_SAVE_LEVEL: STA is in deep sleep mode or has
 *	neighbors in deep sleep mode
 *
 * Enumerates the "Mesh Capability" as described in IEEE Std
 * 802.11-2020 section 9.4.2.97.7.
 */
enum mesh_config_capab_flags {};

#define IEEE80211_MESHCONF_FORM_CONNECTED_TO_GATE

/*
 * mesh channel switch parameters element's flag indicator
 *
 */
#define WLAN_EID_CHAN_SWITCH_PARAM_TX_RESTRICT
#define WLAN_EID_CHAN_SWITCH_PARAM_INITIATOR
#define WLAN_EID_CHAN_SWITCH_PARAM_REASON

/**
 * struct ieee80211_rann_ie - RANN (root announcement) element
 * @rann_flags: Flags
 * @rann_hopcount: Hop Count
 * @rann_ttl: Element TTL
 * @rann_addr: Root Mesh STA Address
 * @rann_seq: HWMP Sequence Number
 * @rann_interval: Interval
 * @rann_metric: Metric
 *
 * This structure represents the payload of the "RANN element" as
 * described in IEEE Std 802.11-2020 section 9.4.2.111.
 */
struct ieee80211_rann_ie {} __packed;

enum ieee80211_rann_flags {};

enum ieee80211_ht_chanwidth_values {};

/**
 * enum ieee80211_vht_opmode_bits - VHT operating mode field bits
 * @IEEE80211_OPMODE_NOTIF_CHANWIDTH_MASK: channel width mask
 * @IEEE80211_OPMODE_NOTIF_CHANWIDTH_20MHZ: 20 MHz channel width
 * @IEEE80211_OPMODE_NOTIF_CHANWIDTH_40MHZ: 40 MHz channel width
 * @IEEE80211_OPMODE_NOTIF_CHANWIDTH_80MHZ: 80 MHz channel width
 * @IEEE80211_OPMODE_NOTIF_CHANWIDTH_160MHZ: 160 MHz or 80+80 MHz channel width
 * @IEEE80211_OPMODE_NOTIF_BW_160_80P80: 160 / 80+80 MHz indicator flag
 * @IEEE80211_OPMODE_NOTIF_RX_NSS_MASK: number of spatial streams mask
 *	(the NSS value is the value of this field + 1)
 * @IEEE80211_OPMODE_NOTIF_RX_NSS_SHIFT: number of spatial streams shift
 * @IEEE80211_OPMODE_NOTIF_RX_NSS_TYPE_BF: indicates streams in SU-MIMO PPDU
 *	using a beamforming steering matrix
 */
enum ieee80211_vht_opmode_bits {};

/**
 * enum ieee80211_s1g_chanwidth - S1G channel widths
 * These are defined in IEEE802.11-2016ah Table 10-20
 * as BSS Channel Width
 *
 * @IEEE80211_S1G_CHANWIDTH_1MHZ: 1MHz operating channel
 * @IEEE80211_S1G_CHANWIDTH_2MHZ: 2MHz operating channel
 * @IEEE80211_S1G_CHANWIDTH_4MHZ: 4MHz operating channel
 * @IEEE80211_S1G_CHANWIDTH_8MHZ: 8MHz operating channel
 * @IEEE80211_S1G_CHANWIDTH_16MHZ: 16MHz operating channel
 */
enum ieee80211_s1g_chanwidth {};

#define WLAN_SA_QUERY_TR_ID_LEN
#define WLAN_MEMBERSHIP_LEN
#define WLAN_USER_POSITION_LEN

/**
 * struct ieee80211_tpc_report_ie - TPC Report element
 * @tx_power: Transmit Power
 * @link_margin: Link Margin
 *
 * This structure represents the payload of the "TPC Report element" as
 * described in IEEE Std 802.11-2020 section 9.4.2.16.
 */
struct ieee80211_tpc_report_ie {} __packed;

#define IEEE80211_ADDBA_EXT_FRAG_LEVEL_MASK
#define IEEE80211_ADDBA_EXT_FRAG_LEVEL_SHIFT
#define IEEE80211_ADDBA_EXT_NO_FRAG
#define IEEE80211_ADDBA_EXT_BUF_SIZE_MASK
#define IEEE80211_ADDBA_EXT_BUF_SIZE_SHIFT

struct ieee80211_addba_ext_ie {} __packed;

/**
 * struct ieee80211_s1g_bcn_compat_ie - S1G Beacon Compatibility element
 * @compat_info: Compatibility Information
 * @beacon_int: Beacon Interval
 * @tsf_completion: TSF Completion
 *
 * This structure represents the payload of the "S1G Beacon
 * Compatibility element" as described in IEEE Std 802.11-2020 section
 * 9.4.2.196.
 */
struct ieee80211_s1g_bcn_compat_ie {} __packed;

/**
 * struct ieee80211_s1g_oper_ie - S1G Operation element
 * @ch_width: S1G Operation Information Channel Width
 * @oper_class: S1G Operation Information Operating Class
 * @primary_ch: S1G Operation Information Primary Channel Number
 * @oper_ch: S1G Operation Information  Channel Center Frequency
 * @basic_mcs_nss: Basic S1G-MCS and NSS Set
 *
 * This structure represents the payload of the "S1G Operation
 * element" as described in IEEE Std 802.11-2020 section 9.4.2.212.
 */
struct ieee80211_s1g_oper_ie {} __packed;

/**
 * struct ieee80211_aid_response_ie - AID Response element
 * @aid: AID/Group AID
 * @switch_count: AID Switch Count
 * @response_int: AID Response Interval
 *
 * This structure represents the payload of the "AID Response element"
 * as described in IEEE Std 802.11-2020 section 9.4.2.194.
 */
struct ieee80211_aid_response_ie {} __packed;

struct ieee80211_s1g_cap {} __packed;

struct ieee80211_ext {} __packed __aligned();

#define IEEE80211_TWT_CONTROL_NDP
#define IEEE80211_TWT_CONTROL_RESP_MODE
#define IEEE80211_TWT_CONTROL_NEG_TYPE_BROADCAST
#define IEEE80211_TWT_CONTROL_RX_DISABLED
#define IEEE80211_TWT_CONTROL_WAKE_DUR_UNIT

#define IEEE80211_TWT_REQTYPE_REQUEST
#define IEEE80211_TWT_REQTYPE_SETUP_CMD
#define IEEE80211_TWT_REQTYPE_TRIGGER
#define IEEE80211_TWT_REQTYPE_IMPLICIT
#define IEEE80211_TWT_REQTYPE_FLOWTYPE
#define IEEE80211_TWT_REQTYPE_FLOWID
#define IEEE80211_TWT_REQTYPE_WAKE_INT_EXP
#define IEEE80211_TWT_REQTYPE_PROTECTION

enum ieee80211_twt_setup_cmd {};

struct ieee80211_twt_params {} __packed;

struct ieee80211_twt_setup {} __packed;

#define IEEE80211_TTLM_MAX_CNT
#define IEEE80211_TTLM_CONTROL_DIRECTION
#define IEEE80211_TTLM_CONTROL_DEF_LINK_MAP
#define IEEE80211_TTLM_CONTROL_SWITCH_TIME_PRESENT
#define IEEE80211_TTLM_CONTROL_EXPECTED_DUR_PRESENT
#define IEEE80211_TTLM_CONTROL_LINK_MAP_SIZE

#define IEEE80211_TTLM_DIRECTION_DOWN
#define IEEE80211_TTLM_DIRECTION_UP
#define IEEE80211_TTLM_DIRECTION_BOTH

/**
 * struct ieee80211_ttlm_elem - TID-To-Link Mapping element
 *
 * Defined in section 9.4.2.314 in P802.11be_D4
 *
 * @control: the first part of control field
 * @optional: the second part of control field
 */
struct ieee80211_ttlm_elem {} __packed;

/**
 * struct ieee80211_bss_load_elem - BSS Load elemen
 *
 * Defined in section 9.4.2.26 in IEEE 802.11-REVme D4.1
 *
 * @sta_count: total number of STAs currently associated with the AP.
 * @channel_util: Percentage of time that the access point sensed the channel
 *	was busy. This value is in range [0, 255], the highest value means
 *	100% busy.
 * @avail_admission_capa: remaining amount of medium time used for admission
 *	control.
 */
struct ieee80211_bss_load_elem {} __packed;

struct ieee80211_mgmt {} __packed __aligned();

/* Supported rates membership selectors */
#define BSS_MEMBERSHIP_SELECTOR_HT_PHY
#define BSS_MEMBERSHIP_SELECTOR_VHT_PHY
#define BSS_MEMBERSHIP_SELECTOR_GLK
#define BSS_MEMBERSHIP_SELECTOR_EPS
#define BSS_MEMBERSHIP_SELECTOR_SAE_H2E
#define BSS_MEMBERSHIP_SELECTOR_HE_PHY
#define BSS_MEMBERSHIP_SELECTOR_EHT_PHY

/* mgmt header + 1 byte category code */
#define IEEE80211_MIN_ACTION_SIZE


/* Management MIC information element (IEEE 802.11w) */
struct ieee80211_mmie {} __packed;

/* Management MIC information element (IEEE 802.11w) for GMAC and CMAC-256 */
struct ieee80211_mmie_16 {} __packed;

struct ieee80211_vendor_ie {} __packed;

struct ieee80211_wmm_ac_param {} __packed;

struct ieee80211_wmm_param_ie {} __packed;

/* Control frames */
struct ieee80211_rts {} __packed __aligned();

struct ieee80211_cts {} __packed __aligned();

struct ieee80211_pspoll {} __packed __aligned();

/* TDLS */

/* Channel switch timing */
struct ieee80211_ch_switch_timing {} __packed;

/* Link-id information element */
struct ieee80211_tdls_lnkie {} __packed;

struct ieee80211_tdls_data {} __packed;

/*
 * Peer-to-Peer IE attribute related definitions.
 */
/*
 * enum ieee80211_p2p_attr_id - identifies type of peer-to-peer attribute.
 */
enum ieee80211_p2p_attr_id {};

/* Notice of Absence attribute - described in P2P spec 4.1.14 */
/* Typical max value used here */
#define IEEE80211_P2P_NOA_DESC_MAX

struct ieee80211_p2p_noa_desc {} __packed;

struct ieee80211_p2p_noa_attr {} __packed;

#define IEEE80211_P2P_OPPPS_ENABLE_BIT
#define IEEE80211_P2P_OPPPS_CTWINDOW_MASK

/**
 * struct ieee80211_bar - Block Ack Request frame format
 * @frame_control: Frame Control
 * @duration: Duration
 * @ra: RA
 * @ta: TA
 * @control: BAR Control
 * @start_seq_num: Starting Sequence Number (see Figure 9-37)
 *
 * This structure represents the "BlockAckReq frame format"
 * as described in IEEE Std 802.11-2020 section 9.3.1.7.
*/
struct ieee80211_bar {} __packed;

/* 802.11 BAR control masks */
#define IEEE80211_BAR_CTRL_ACK_POLICY_NORMAL
#define IEEE80211_BAR_CTRL_MULTI_TID
#define IEEE80211_BAR_CTRL_CBMTID_COMPRESSED_BA
#define IEEE80211_BAR_CTRL_TID_INFO_MASK
#define IEEE80211_BAR_CTRL_TID_INFO_SHIFT

#define IEEE80211_HT_MCS_MASK_LEN

/**
 * struct ieee80211_mcs_info - Supported MCS Set field
 * @rx_mask: RX mask
 * @rx_highest: highest supported RX rate. If set represents
 *	the highest supported RX data rate in units of 1 Mbps.
 *	If this field is 0 this value should not be used to
 *	consider the highest RX data rate supported.
 * @tx_params: TX parameters
 * @reserved: Reserved bits
 *
 * This structure represents the "Supported MCS Set field" as
 * described in IEEE Std 802.11-2020 section 9.4.2.55.4.
 */
struct ieee80211_mcs_info {} __packed;

/* 802.11n HT capability MSC set */
#define IEEE80211_HT_MCS_RX_HIGHEST_MASK
#define IEEE80211_HT_MCS_TX_DEFINED
#define IEEE80211_HT_MCS_TX_RX_DIFF
/* value 0 == 1 stream etc */
#define IEEE80211_HT_MCS_TX_MAX_STREAMS_MASK
#define IEEE80211_HT_MCS_TX_MAX_STREAMS_SHIFT
#define IEEE80211_HT_MCS_TX_MAX_STREAMS
#define IEEE80211_HT_MCS_TX_UNEQUAL_MODULATION

#define IEEE80211_HT_MCS_CHAINS(mcs)

/*
 * 802.11n D5.0 20.3.5 / 20.6 says:
 * - indices 0 to 7 and 32 are single spatial stream
 * - 8 to 31 are multiple spatial streams using equal modulation
 *   [8..15 for two streams, 16..23 for three and 24..31 for four]
 * - remainder are multiple spatial streams using unequal modulation
 */
#define IEEE80211_HT_MCS_UNEQUAL_MODULATION_START
#define IEEE80211_HT_MCS_UNEQUAL_MODULATION_START_BYTE

/**
 * struct ieee80211_ht_cap - HT capabilities element
 * @cap_info: HT Capability Information
 * @ampdu_params_info: A-MPDU Parameters
 * @mcs: Supported MCS Set
 * @extended_ht_cap_info: HT Extended Capabilities
 * @tx_BF_cap_info: Transmit Beamforming Capabilities
 * @antenna_selection_info: ASEL Capability
 *
 * This structure represents the payload of the "HT Capabilities
 * element" as described in IEEE Std 802.11-2020 section 9.4.2.55.
 */
struct ieee80211_ht_cap {} __packed;

/* 802.11n HT capabilities masks (for cap_info) */
#define IEEE80211_HT_CAP_LDPC_CODING
#define IEEE80211_HT_CAP_SUP_WIDTH_20_40
#define IEEE80211_HT_CAP_SM_PS
#define IEEE80211_HT_CAP_SM_PS_SHIFT
#define IEEE80211_HT_CAP_GRN_FLD
#define IEEE80211_HT_CAP_SGI_20
#define IEEE80211_HT_CAP_SGI_40
#define IEEE80211_HT_CAP_TX_STBC
#define IEEE80211_HT_CAP_RX_STBC
#define IEEE80211_HT_CAP_RX_STBC_SHIFT
#define IEEE80211_HT_CAP_DELAY_BA
#define IEEE80211_HT_CAP_MAX_AMSDU
#define IEEE80211_HT_CAP_DSSSCCK40
#define IEEE80211_HT_CAP_RESERVED
#define IEEE80211_HT_CAP_40MHZ_INTOLERANT
#define IEEE80211_HT_CAP_LSIG_TXOP_PROT

/* 802.11n HT extended capabilities masks (for extended_ht_cap_info) */
#define IEEE80211_HT_EXT_CAP_PCO
#define IEEE80211_HT_EXT_CAP_PCO_TIME
#define IEEE80211_HT_EXT_CAP_PCO_TIME_SHIFT
#define IEEE80211_HT_EXT_CAP_MCS_FB
#define IEEE80211_HT_EXT_CAP_MCS_FB_SHIFT
#define IEEE80211_HT_EXT_CAP_HTC_SUP
#define IEEE80211_HT_EXT_CAP_RD_RESPONDER

/* 802.11n HT capability AMPDU settings (for ampdu_params_info) */
#define IEEE80211_HT_AMPDU_PARM_FACTOR
#define IEEE80211_HT_AMPDU_PARM_DENSITY
#define IEEE80211_HT_AMPDU_PARM_DENSITY_SHIFT

/*
 * Maximum length of AMPDU that the STA can receive in high-throughput (HT).
 * Length = 2 ^ (13 + max_ampdu_length_exp) - 1 (octets)
 */
enum ieee80211_max_ampdu_length_exp {};

/*
 * Maximum length of AMPDU that the STA can receive in VHT.
 * Length = 2 ^ (13 + max_ampdu_length_exp) - 1 (octets)
 */
enum ieee80211_vht_max_ampdu_length_exp {};

#define IEEE80211_HT_MAX_AMPDU_FACTOR

/* Minimum MPDU start spacing */
enum ieee80211_min_mpdu_spacing {};

/**
 * struct ieee80211_ht_operation - HT operation IE
 * @primary_chan: Primary Channel
 * @ht_param: HT Operation Information parameters
 * @operation_mode: HT Operation Information operation mode
 * @stbc_param: HT Operation Information STBC params
 * @basic_set: Basic HT-MCS Set
 *
 * This structure represents the payload of the "HT Operation
 * element" as described in IEEE Std 802.11-2020 section 9.4.2.56.
 */
struct ieee80211_ht_operation {} __packed;

/* for ht_param */
#define IEEE80211_HT_PARAM_CHA_SEC_OFFSET
#define IEEE80211_HT_PARAM_CHA_SEC_NONE
#define IEEE80211_HT_PARAM_CHA_SEC_ABOVE
#define IEEE80211_HT_PARAM_CHA_SEC_BELOW
#define IEEE80211_HT_PARAM_CHAN_WIDTH_ANY
#define IEEE80211_HT_PARAM_RIFS_MODE

/* for operation_mode */
#define IEEE80211_HT_OP_MODE_PROTECTION
#define IEEE80211_HT_OP_MODE_PROTECTION_NONE
#define IEEE80211_HT_OP_MODE_PROTECTION_NONMEMBER
#define IEEE80211_HT_OP_MODE_PROTECTION_20MHZ
#define IEEE80211_HT_OP_MODE_PROTECTION_NONHT_MIXED
#define IEEE80211_HT_OP_MODE_NON_GF_STA_PRSNT
#define IEEE80211_HT_OP_MODE_NON_HT_STA_PRSNT
#define IEEE80211_HT_OP_MODE_CCFS2_SHIFT
#define IEEE80211_HT_OP_MODE_CCFS2_MASK

/* for stbc_param */
#define IEEE80211_HT_STBC_PARAM_DUAL_BEACON
#define IEEE80211_HT_STBC_PARAM_DUAL_CTS_PROT
#define IEEE80211_HT_STBC_PARAM_STBC_BEACON
#define IEEE80211_HT_STBC_PARAM_LSIG_TXOP_FULLPROT
#define IEEE80211_HT_STBC_PARAM_PCO_ACTIVE
#define IEEE80211_HT_STBC_PARAM_PCO_PHASE


/* block-ack parameters */
#define IEEE80211_ADDBA_PARAM_AMSDU_MASK
#define IEEE80211_ADDBA_PARAM_POLICY_MASK
#define IEEE80211_ADDBA_PARAM_TID_MASK
#define IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK
#define IEEE80211_DELBA_PARAM_TID_MASK
#define IEEE80211_DELBA_PARAM_INITIATOR_MASK

/*
 * A-MPDU buffer sizes
 * According to HT size varies from 8 to 64 frames
 * HE adds the ability to have up to 256 frames.
 * EHT adds the ability to have up to 1K frames.
 */
#define IEEE80211_MIN_AMPDU_BUF
#define IEEE80211_MAX_AMPDU_BUF_HT
#define IEEE80211_MAX_AMPDU_BUF_HE
#define IEEE80211_MAX_AMPDU_BUF_EHT


/* Spatial Multiplexing Power Save Modes (for capability) */
#define WLAN_HT_CAP_SM_PS_STATIC
#define WLAN_HT_CAP_SM_PS_DYNAMIC
#define WLAN_HT_CAP_SM_PS_INVALID
#define WLAN_HT_CAP_SM_PS_DISABLED

/* for SM power control field lower two bits */
#define WLAN_HT_SMPS_CONTROL_DISABLED
#define WLAN_HT_SMPS_CONTROL_STATIC
#define WLAN_HT_SMPS_CONTROL_DYNAMIC

/**
 * struct ieee80211_vht_mcs_info - VHT MCS information
 * @rx_mcs_map: RX MCS map 2 bits for each stream, total 8 streams
 * @rx_highest: Indicates highest long GI VHT PPDU data rate
 *	STA can receive. Rate expressed in units of 1 Mbps.
 *	If this field is 0 this value should not be used to
 *	consider the highest RX data rate supported.
 *	The top 3 bits of this field indicate the Maximum NSTS,total
 *	(a beamformee capability.)
 * @tx_mcs_map: TX MCS map 2 bits for each stream, total 8 streams
 * @tx_highest: Indicates highest long GI VHT PPDU data rate
 *	STA can transmit. Rate expressed in units of 1 Mbps.
 *	If this field is 0 this value should not be used to
 *	consider the highest TX data rate supported.
 *	The top 2 bits of this field are reserved, the
 *	3rd bit from the top indiciates VHT Extended NSS BW
 *	Capability.
 */
struct ieee80211_vht_mcs_info {} __packed;

/* for rx_highest */
#define IEEE80211_VHT_MAX_NSTS_TOTAL_SHIFT
#define IEEE80211_VHT_MAX_NSTS_TOTAL_MASK

/* for tx_highest */
#define IEEE80211_VHT_EXT_NSS_BW_CAPABLE

/**
 * enum ieee80211_vht_mcs_support - VHT MCS support definitions
 * @IEEE80211_VHT_MCS_SUPPORT_0_7: MCSes 0-7 are supported for the
 *	number of streams
 * @IEEE80211_VHT_MCS_SUPPORT_0_8: MCSes 0-8 are supported
 * @IEEE80211_VHT_MCS_SUPPORT_0_9: MCSes 0-9 are supported
 * @IEEE80211_VHT_MCS_NOT_SUPPORTED: This number of streams isn't supported
 *
 * These definitions are used in each 2-bit subfield of the @rx_mcs_map
 * and @tx_mcs_map fields of &struct ieee80211_vht_mcs_info, which are
 * both split into 8 subfields by number of streams. These values indicate
 * which MCSes are supported for the number of streams the value appears
 * for.
 */
enum ieee80211_vht_mcs_support {};

/**
 * struct ieee80211_vht_cap - VHT capabilities
 *
 * This structure is the "VHT capabilities element" as
 * described in 802.11ac D3.0 8.4.2.160
 * @vht_cap_info: VHT capability info
 * @supp_mcs: VHT MCS supported rates
 */
struct ieee80211_vht_cap {} __packed;

/**
 * enum ieee80211_vht_chanwidth - VHT channel width
 * @IEEE80211_VHT_CHANWIDTH_USE_HT: use the HT operation IE to
 *	determine the channel width (20 or 40 MHz)
 * @IEEE80211_VHT_CHANWIDTH_80MHZ: 80 MHz bandwidth
 * @IEEE80211_VHT_CHANWIDTH_160MHZ: 160 MHz bandwidth
 * @IEEE80211_VHT_CHANWIDTH_80P80MHZ: 80+80 MHz bandwidth
 */
enum ieee80211_vht_chanwidth {};

/**
 * struct ieee80211_vht_operation - VHT operation IE
 *
 * This structure is the "VHT operation element" as
 * described in 802.11ac D3.0 8.4.2.161
 * @chan_width: Operating channel width
 * @center_freq_seg0_idx: center freq segment 0 index
 * @center_freq_seg1_idx: center freq segment 1 index
 * @basic_mcs_set: VHT Basic MCS rate set
 */
struct ieee80211_vht_operation {} __packed;

/**
 * struct ieee80211_he_cap_elem - HE capabilities element
 * @mac_cap_info: HE MAC Capabilities Information
 * @phy_cap_info: HE PHY Capabilities Information
 *
 * This structure represents the fixed fields of the payload of the
 * "HE capabilities element" as described in IEEE Std 802.11ax-2021
 * sections 9.4.2.248.2 and 9.4.2.248.3.
 */
struct ieee80211_he_cap_elem {} __packed;

#define IEEE80211_TX_RX_MCS_NSS_DESC_MAX_LEN

/**
 * enum ieee80211_he_mcs_support - HE MCS support definitions
 * @IEEE80211_HE_MCS_SUPPORT_0_7: MCSes 0-7 are supported for the
 *	number of streams
 * @IEEE80211_HE_MCS_SUPPORT_0_9: MCSes 0-9 are supported
 * @IEEE80211_HE_MCS_SUPPORT_0_11: MCSes 0-11 are supported
 * @IEEE80211_HE_MCS_NOT_SUPPORTED: This number of streams isn't supported
 *
 * These definitions are used in each 2-bit subfield of the rx_mcs_*
 * and tx_mcs_* fields of &struct ieee80211_he_mcs_nss_supp, which are
 * both split into 8 subfields by number of streams. These values indicate
 * which MCSes are supported for the number of streams the value appears
 * for.
 */
enum ieee80211_he_mcs_support {};

/**
 * struct ieee80211_he_mcs_nss_supp - HE Tx/Rx HE MCS NSS Support Field
 *
 * This structure holds the data required for the Tx/Rx HE MCS NSS Support Field
 * described in P802.11ax_D2.0 section 9.4.2.237.4
 *
 * @rx_mcs_80: Rx MCS map 2 bits for each stream, total 8 streams, for channel
 *     widths less than 80MHz.
 * @tx_mcs_80: Tx MCS map 2 bits for each stream, total 8 streams, for channel
 *     widths less than 80MHz.
 * @rx_mcs_160: Rx MCS map 2 bits for each stream, total 8 streams, for channel
 *     width 160MHz.
 * @tx_mcs_160: Tx MCS map 2 bits for each stream, total 8 streams, for channel
 *     width 160MHz.
 * @rx_mcs_80p80: Rx MCS map 2 bits for each stream, total 8 streams, for
 *     channel width 80p80MHz.
 * @tx_mcs_80p80: Tx MCS map 2 bits for each stream, total 8 streams, for
 *     channel width 80p80MHz.
 */
struct ieee80211_he_mcs_nss_supp {} __packed;

/**
 * struct ieee80211_he_operation - HE Operation element
 * @he_oper_params: HE Operation Parameters + BSS Color Information
 * @he_mcs_nss_set: Basic HE-MCS And NSS Set
 * @optional: Optional fields VHT Operation Information, Max Co-Hosted
 *            BSSID Indicator, and 6 GHz Operation Information
 *
 * This structure represents the payload of the "HE Operation
 * element" as described in IEEE Std 802.11ax-2021 section 9.4.2.249.
 */
struct ieee80211_he_operation {} __packed;

/**
 * struct ieee80211_he_spr - Spatial Reuse Parameter Set element
 * @he_sr_control: SR Control
 * @optional: Optional fields Non-SRG OBSS PD Max Offset, SRG OBSS PD
 *            Min Offset, SRG OBSS PD Max Offset, SRG BSS Color
 *            Bitmap, and SRG Partial BSSID Bitmap
 *
 * This structure represents the payload of the "Spatial Reuse
 * Parameter Set element" as described in IEEE Std 802.11ax-2021
 * section 9.4.2.252.
 */
struct ieee80211_he_spr {} __packed;

/**
 * struct ieee80211_he_mu_edca_param_ac_rec - MU AC Parameter Record field
 * @aifsn: ACI/AIFSN
 * @ecw_min_max: ECWmin/ECWmax
 * @mu_edca_timer: MU EDCA Timer
 *
 * This structure represents the "MU AC Parameter Record" as described
 * in IEEE Std 802.11ax-2021 section 9.4.2.251, Figure 9-788p.
 */
struct ieee80211_he_mu_edca_param_ac_rec {} __packed;

/**
 * struct ieee80211_mu_edca_param_set - MU EDCA Parameter Set element
 * @mu_qos_info: QoS Info
 * @ac_be: MU AC_BE Parameter Record
 * @ac_bk: MU AC_BK Parameter Record
 * @ac_vi: MU AC_VI Parameter Record
 * @ac_vo: MU AC_VO Parameter Record
 *
 * This structure represents the payload of the "MU EDCA Parameter Set
 * element" as described in IEEE Std 802.11ax-2021 section 9.4.2.251.
 */
struct ieee80211_mu_edca_param_set {} __packed;

#define IEEE80211_EHT_MCS_NSS_RX
#define IEEE80211_EHT_MCS_NSS_TX

/**
 * struct ieee80211_eht_mcs_nss_supp_20mhz_only - EHT 20MHz only station max
 * supported NSS for per MCS.
 *
 * For each field below, bits 0 - 3 indicate the maximal number of spatial
 * streams for Rx, and bits 4 - 7 indicate the maximal number of spatial streams
 * for Tx.
 *
 * @rx_tx_mcs7_max_nss: indicates the maximum number of spatial streams
 *     supported for reception and the maximum number of spatial streams
 *     supported for transmission for MCS 0 - 7.
 * @rx_tx_mcs9_max_nss: indicates the maximum number of spatial streams
 *     supported for reception and the maximum number of spatial streams
 *     supported for transmission for MCS 8 - 9.
 * @rx_tx_mcs11_max_nss: indicates the maximum number of spatial streams
 *     supported for reception and the maximum number of spatial streams
 *     supported for transmission for MCS 10 - 11.
 * @rx_tx_mcs13_max_nss: indicates the maximum number of spatial streams
 *     supported for reception and the maximum number of spatial streams
 *     supported for transmission for MCS 12 - 13.
 * @rx_tx_max_nss: array of the previous fields for easier loop access
 */
struct ieee80211_eht_mcs_nss_supp_20mhz_only {};

/**
 * struct ieee80211_eht_mcs_nss_supp_bw - EHT max supported NSS per MCS (except
 * 20MHz only stations).
 *
 * For each field below, bits 0 - 3 indicate the maximal number of spatial
 * streams for Rx, and bits 4 - 7 indicate the maximal number of spatial streams
 * for Tx.
 *
 * @rx_tx_mcs9_max_nss: indicates the maximum number of spatial streams
 *     supported for reception and the maximum number of spatial streams
 *     supported for transmission for MCS 0 - 9.
 * @rx_tx_mcs11_max_nss: indicates the maximum number of spatial streams
 *     supported for reception and the maximum number of spatial streams
 *     supported for transmission for MCS 10 - 11.
 * @rx_tx_mcs13_max_nss: indicates the maximum number of spatial streams
 *     supported for reception and the maximum number of spatial streams
 *     supported for transmission for MCS 12 - 13.
 * @rx_tx_max_nss: array of the previous fields for easier loop access
 */
struct ieee80211_eht_mcs_nss_supp_bw {};

/**
 * struct ieee80211_eht_cap_elem_fixed - EHT capabilities fixed data
 *
 * This structure is the "EHT Capabilities element" fixed fields as
 * described in P802.11be_D2.0 section 9.4.2.313.
 *
 * @mac_cap_info: MAC capabilities, see IEEE80211_EHT_MAC_CAP*
 * @phy_cap_info: PHY capabilities, see IEEE80211_EHT_PHY_CAP*
 */
struct ieee80211_eht_cap_elem_fixed {} __packed;

/**
 * struct ieee80211_eht_cap_elem - EHT capabilities element
 * @fixed: fixed parts, see &ieee80211_eht_cap_elem_fixed
 * @optional: optional parts
 */
struct ieee80211_eht_cap_elem {} __packed;

#define IEEE80211_EHT_OPER_INFO_PRESENT
#define IEEE80211_EHT_OPER_DISABLED_SUBCHANNEL_BITMAP_PRESENT
#define IEEE80211_EHT_OPER_EHT_DEF_PE_DURATION
#define IEEE80211_EHT_OPER_GROUP_ADDRESSED_BU_IND_LIMIT
#define IEEE80211_EHT_OPER_GROUP_ADDRESSED_BU_IND_EXP_MASK

/**
 * struct ieee80211_eht_operation - eht operation element
 *
 * This structure is the "EHT Operation Element" fields as
 * described in P802.11be_D2.0 section 9.4.2.311
 *
 * @params: EHT operation element parameters. See &IEEE80211_EHT_OPER_*
 * @basic_mcs_nss: indicates the EHT-MCSs for each number of spatial streams in
 *     EHT PPDUs that are supported by all EHT STAs in the BSS in transmit and
 *     receive.
 * @optional: optional parts
 */
struct ieee80211_eht_operation {} __packed;

/**
 * struct ieee80211_eht_operation_info - eht operation information
 *
 * @control: EHT operation information control.
 * @ccfs0: defines a channel center frequency for a 20, 40, 80, 160, or 320 MHz
 *     EHT BSS.
 * @ccfs1: defines a channel center frequency for a 160 or 320 MHz EHT BSS.
 * @optional: optional parts
 */
struct ieee80211_eht_operation_info {} __packed;

/* 802.11ac VHT Capabilities */
#define IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_3895
#define IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_7991
#define IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454
#define IEEE80211_VHT_CAP_MAX_MPDU_MASK
#define IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ
#define IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ
#define IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK
#define IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_SHIFT
#define IEEE80211_VHT_CAP_RXLDPC
#define IEEE80211_VHT_CAP_SHORT_GI_80
#define IEEE80211_VHT_CAP_SHORT_GI_160
#define IEEE80211_VHT_CAP_TXSTBC
#define IEEE80211_VHT_CAP_RXSTBC_1
#define IEEE80211_VHT_CAP_RXSTBC_2
#define IEEE80211_VHT_CAP_RXSTBC_3
#define IEEE80211_VHT_CAP_RXSTBC_4
#define IEEE80211_VHT_CAP_RXSTBC_MASK
#define IEEE80211_VHT_CAP_RXSTBC_SHIFT
#define IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE
#define IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE
#define IEEE80211_VHT_CAP_BEAMFORMEE_STS_SHIFT
#define IEEE80211_VHT_CAP_BEAMFORMEE_STS_MASK
#define IEEE80211_VHT_CAP_SOUNDING_DIMENSIONS_SHIFT
#define IEEE80211_VHT_CAP_SOUNDING_DIMENSIONS_MASK
#define IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE
#define IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE
#define IEEE80211_VHT_CAP_VHT_TXOP_PS
#define IEEE80211_VHT_CAP_HTC_VHT
#define IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT
#define IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK
#define IEEE80211_VHT_CAP_VHT_LINK_ADAPTATION_VHT_UNSOL_MFB
#define IEEE80211_VHT_CAP_VHT_LINK_ADAPTATION_VHT_MRQ_MFB
#define IEEE80211_VHT_CAP_RX_ANTENNA_PATTERN
#define IEEE80211_VHT_CAP_TX_ANTENNA_PATTERN
#define IEEE80211_VHT_CAP_EXT_NSS_BW_SHIFT
#define IEEE80211_VHT_CAP_EXT_NSS_BW_MASK

/**
 * ieee80211_get_vht_max_nss - return max NSS for a given bandwidth/MCS
 * @cap: VHT capabilities of the peer
 * @bw: bandwidth to use
 * @mcs: MCS index to use
 * @ext_nss_bw_capable: indicates whether or not the local transmitter
 *	(rate scaling algorithm) can deal with the new logic
 *	(dot11VHTExtendedNSSBWCapable)
 * @max_vht_nss: current maximum NSS as advertised by the STA in
 *	operating mode notification, can be 0 in which case the
 *	capability data will be used to derive this (from MCS support)
 * Return: The maximum NSS that can be used for the given bandwidth/MCS
 *	combination
 *
 * Due to the VHT Extended NSS Bandwidth Support, the maximum NSS can
 * vary for a given BW/MCS. This function parses the data.
 *
 * Note: This function is exported by cfg80211.
 */
int ieee80211_get_vht_max_nss(struct ieee80211_vht_cap *cap,
			      enum ieee80211_vht_chanwidth bw,
			      int mcs, bool ext_nss_bw_capable,
			      unsigned int max_vht_nss);

/* 802.11ax HE MAC capabilities */
#define IEEE80211_HE_MAC_CAP0_HTC_HE
#define IEEE80211_HE_MAC_CAP0_TWT_REQ
#define IEEE80211_HE_MAC_CAP0_TWT_RES
#define IEEE80211_HE_MAC_CAP0_DYNAMIC_FRAG_NOT_SUPP
#define IEEE80211_HE_MAC_CAP0_DYNAMIC_FRAG_LEVEL_1
#define IEEE80211_HE_MAC_CAP0_DYNAMIC_FRAG_LEVEL_2
#define IEEE80211_HE_MAC_CAP0_DYNAMIC_FRAG_LEVEL_3
#define IEEE80211_HE_MAC_CAP0_DYNAMIC_FRAG_MASK
#define IEEE80211_HE_MAC_CAP0_MAX_NUM_FRAG_MSDU_1
#define IEEE80211_HE_MAC_CAP0_MAX_NUM_FRAG_MSDU_2
#define IEEE80211_HE_MAC_CAP0_MAX_NUM_FRAG_MSDU_4
#define IEEE80211_HE_MAC_CAP0_MAX_NUM_FRAG_MSDU_8
#define IEEE80211_HE_MAC_CAP0_MAX_NUM_FRAG_MSDU_16
#define IEEE80211_HE_MAC_CAP0_MAX_NUM_FRAG_MSDU_32
#define IEEE80211_HE_MAC_CAP0_MAX_NUM_FRAG_MSDU_64
#define IEEE80211_HE_MAC_CAP0_MAX_NUM_FRAG_MSDU_UNLIMITED
#define IEEE80211_HE_MAC_CAP0_MAX_NUM_FRAG_MSDU_MASK

#define IEEE80211_HE_MAC_CAP1_MIN_FRAG_SIZE_UNLIMITED
#define IEEE80211_HE_MAC_CAP1_MIN_FRAG_SIZE_128
#define IEEE80211_HE_MAC_CAP1_MIN_FRAG_SIZE_256
#define IEEE80211_HE_MAC_CAP1_MIN_FRAG_SIZE_512
#define IEEE80211_HE_MAC_CAP1_MIN_FRAG_SIZE_MASK
#define IEEE80211_HE_MAC_CAP1_TF_MAC_PAD_DUR_0US
#define IEEE80211_HE_MAC_CAP1_TF_MAC_PAD_DUR_8US
#define IEEE80211_HE_MAC_CAP1_TF_MAC_PAD_DUR_16US
#define IEEE80211_HE_MAC_CAP1_TF_MAC_PAD_DUR_MASK
#define IEEE80211_HE_MAC_CAP1_MULTI_TID_AGG_RX_QOS_1
#define IEEE80211_HE_MAC_CAP1_MULTI_TID_AGG_RX_QOS_2
#define IEEE80211_HE_MAC_CAP1_MULTI_TID_AGG_RX_QOS_3
#define IEEE80211_HE_MAC_CAP1_MULTI_TID_AGG_RX_QOS_4
#define IEEE80211_HE_MAC_CAP1_MULTI_TID_AGG_RX_QOS_5
#define IEEE80211_HE_MAC_CAP1_MULTI_TID_AGG_RX_QOS_6
#define IEEE80211_HE_MAC_CAP1_MULTI_TID_AGG_RX_QOS_7
#define IEEE80211_HE_MAC_CAP1_MULTI_TID_AGG_RX_QOS_8
#define IEEE80211_HE_MAC_CAP1_MULTI_TID_AGG_RX_QOS_MASK

/* Link adaptation is split between byte HE_MAC_CAP1 and
 * HE_MAC_CAP2. It should be set only if IEEE80211_HE_MAC_CAP0_HTC_HE
 * in which case the following values apply:
 * 0 = No feedback.
 * 1 = reserved.
 * 2 = Unsolicited feedback.
 * 3 = both
 */
#define IEEE80211_HE_MAC_CAP1_LINK_ADAPTATION

#define IEEE80211_HE_MAC_CAP2_LINK_ADAPTATION
#define IEEE80211_HE_MAC_CAP2_ALL_ACK
#define IEEE80211_HE_MAC_CAP2_TRS
#define IEEE80211_HE_MAC_CAP2_BSR
#define IEEE80211_HE_MAC_CAP2_BCAST_TWT
#define IEEE80211_HE_MAC_CAP2_32BIT_BA_BITMAP
#define IEEE80211_HE_MAC_CAP2_MU_CASCADING
#define IEEE80211_HE_MAC_CAP2_ACK_EN

#define IEEE80211_HE_MAC_CAP3_OMI_CONTROL
#define IEEE80211_HE_MAC_CAP3_OFDMA_RA

/* The maximum length of an A-MDPU is defined by the combination of the Maximum
 * A-MDPU Length Exponent field in the HT capabilities, VHT capabilities and the
 * same field in the HE capabilities.
 */
#define IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_EXT_0
#define IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_EXT_1
#define IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_EXT_2
#define IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_EXT_3
#define IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_MASK
#define IEEE80211_HE_MAC_CAP3_AMSDU_FRAG
#define IEEE80211_HE_MAC_CAP3_FLEX_TWT_SCHED
#define IEEE80211_HE_MAC_CAP3_RX_CTRL_FRAME_TO_MULTIBSS

#define IEEE80211_HE_MAC_CAP4_BSRP_BQRP_A_MPDU_AGG
#define IEEE80211_HE_MAC_CAP4_QTP
#define IEEE80211_HE_MAC_CAP4_BQR
#define IEEE80211_HE_MAC_CAP4_PSR_RESP
#define IEEE80211_HE_MAC_CAP4_NDP_FB_REP
#define IEEE80211_HE_MAC_CAP4_OPS
#define IEEE80211_HE_MAC_CAP4_AMSDU_IN_AMPDU
/* Multi TID agg TX is split between byte #4 and #5
 * The value is a combination of B39,B40,B41
 */
#define IEEE80211_HE_MAC_CAP4_MULTI_TID_AGG_TX_QOS_B39

#define IEEE80211_HE_MAC_CAP5_MULTI_TID_AGG_TX_QOS_B40
#define IEEE80211_HE_MAC_CAP5_MULTI_TID_AGG_TX_QOS_B41
#define IEEE80211_HE_MAC_CAP5_SUBCHAN_SELECTIVE_TRANSMISSION
#define IEEE80211_HE_MAC_CAP5_UL_2x996_TONE_RU
#define IEEE80211_HE_MAC_CAP5_OM_CTRL_UL_MU_DATA_DIS_RX
#define IEEE80211_HE_MAC_CAP5_HE_DYNAMIC_SM_PS
#define IEEE80211_HE_MAC_CAP5_PUNCTURED_SOUNDING
#define IEEE80211_HE_MAC_CAP5_HT_VHT_TRIG_FRAME_RX

#define IEEE80211_HE_VHT_MAX_AMPDU_FACTOR
#define IEEE80211_HE_HT_MAX_AMPDU_FACTOR
#define IEEE80211_HE_6GHZ_MAX_AMPDU_FACTOR

/* 802.11ax HE PHY capabilities */
#define IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_40MHZ_IN_2G
#define IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_40MHZ_80MHZ_IN_5G
#define IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_160MHZ_IN_5G
#define IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_80PLUS80_MHZ_IN_5G
#define IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_MASK_ALL

#define IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_RU_MAPPING_IN_2G
#define IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_RU_MAPPING_IN_5G
#define IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_MASK

#define IEEE80211_HE_PHY_CAP1_PREAMBLE_PUNC_RX_80MHZ_ONLY_SECOND_20MHZ
#define IEEE80211_HE_PHY_CAP1_PREAMBLE_PUNC_RX_80MHZ_ONLY_SECOND_40MHZ
#define IEEE80211_HE_PHY_CAP1_PREAMBLE_PUNC_RX_160MHZ_ONLY_SECOND_20MHZ
#define IEEE80211_HE_PHY_CAP1_PREAMBLE_PUNC_RX_160MHZ_ONLY_SECOND_40MHZ
#define IEEE80211_HE_PHY_CAP1_PREAMBLE_PUNC_RX_MASK
#define IEEE80211_HE_PHY_CAP1_DEVICE_CLASS_A
#define IEEE80211_HE_PHY_CAP1_LDPC_CODING_IN_PAYLOAD
#define IEEE80211_HE_PHY_CAP1_HE_LTF_AND_GI_FOR_HE_PPDUS_0_8US
/* Midamble RX/TX Max NSTS is split between byte #2 and byte #3 */
#define IEEE80211_HE_PHY_CAP1_MIDAMBLE_RX_TX_MAX_NSTS

#define IEEE80211_HE_PHY_CAP2_MIDAMBLE_RX_TX_MAX_NSTS
#define IEEE80211_HE_PHY_CAP2_NDP_4x_LTF_AND_3_2US
#define IEEE80211_HE_PHY_CAP2_STBC_TX_UNDER_80MHZ
#define IEEE80211_HE_PHY_CAP2_STBC_RX_UNDER_80MHZ
#define IEEE80211_HE_PHY_CAP2_DOPPLER_TX
#define IEEE80211_HE_PHY_CAP2_DOPPLER_RX

/* Note that the meaning of UL MU below is different between an AP and a non-AP
 * sta, where in the AP case it indicates support for Rx and in the non-AP sta
 * case it indicates support for Tx.
 */
#define IEEE80211_HE_PHY_CAP2_UL_MU_FULL_MU_MIMO
#define IEEE80211_HE_PHY_CAP2_UL_MU_PARTIAL_MU_MIMO

#define IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_TX_NO_DCM
#define IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_TX_BPSK
#define IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_TX_QPSK
#define IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_TX_16_QAM
#define IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_TX_MASK
#define IEEE80211_HE_PHY_CAP3_DCM_MAX_TX_NSS_1
#define IEEE80211_HE_PHY_CAP3_DCM_MAX_TX_NSS_2
#define IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_RX_NO_DCM
#define IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_RX_BPSK
#define IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_RX_QPSK
#define IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_RX_16_QAM
#define IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_RX_MASK
#define IEEE80211_HE_PHY_CAP3_DCM_MAX_RX_NSS_1
#define IEEE80211_HE_PHY_CAP3_DCM_MAX_RX_NSS_2
#define IEEE80211_HE_PHY_CAP3_RX_PARTIAL_BW_SU_IN_20MHZ_MU
#define IEEE80211_HE_PHY_CAP3_SU_BEAMFORMER

#define IEEE80211_HE_PHY_CAP4_SU_BEAMFORMEE
#define IEEE80211_HE_PHY_CAP4_MU_BEAMFORMER

/* Minimal allowed value of Max STS under 80MHz is 3 */
#define IEEE80211_HE_PHY_CAP4_BEAMFORMEE_MAX_STS_UNDER_80MHZ_4
#define IEEE80211_HE_PHY_CAP4_BEAMFORMEE_MAX_STS_UNDER_80MHZ_5
#define IEEE80211_HE_PHY_CAP4_BEAMFORMEE_MAX_STS_UNDER_80MHZ_6
#define IEEE80211_HE_PHY_CAP4_BEAMFORMEE_MAX_STS_UNDER_80MHZ_7
#define IEEE80211_HE_PHY_CAP4_BEAMFORMEE_MAX_STS_UNDER_80MHZ_8
#define IEEE80211_HE_PHY_CAP4_BEAMFORMEE_MAX_STS_UNDER_80MHZ_MASK

/* Minimal allowed value of Max STS above 80MHz is 3 */
#define IEEE80211_HE_PHY_CAP4_BEAMFORMEE_MAX_STS_ABOVE_80MHZ_4
#define IEEE80211_HE_PHY_CAP4_BEAMFORMEE_MAX_STS_ABOVE_80MHZ_5
#define IEEE80211_HE_PHY_CAP4_BEAMFORMEE_MAX_STS_ABOVE_80MHZ_6
#define IEEE80211_HE_PHY_CAP4_BEAMFORMEE_MAX_STS_ABOVE_80MHZ_7
#define IEEE80211_HE_PHY_CAP4_BEAMFORMEE_MAX_STS_ABOVE_80MHZ_8
#define IEEE80211_HE_PHY_CAP4_BEAMFORMEE_MAX_STS_ABOVE_80MHZ_MASK

#define IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_UNDER_80MHZ_1
#define IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_UNDER_80MHZ_2
#define IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_UNDER_80MHZ_3
#define IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_UNDER_80MHZ_4
#define IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_UNDER_80MHZ_5
#define IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_UNDER_80MHZ_6
#define IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_UNDER_80MHZ_7
#define IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_UNDER_80MHZ_8
#define IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_UNDER_80MHZ_MASK

#define IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_ABOVE_80MHZ_1
#define IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_ABOVE_80MHZ_2
#define IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_ABOVE_80MHZ_3
#define IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_ABOVE_80MHZ_4
#define IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_ABOVE_80MHZ_5
#define IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_ABOVE_80MHZ_6
#define IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_ABOVE_80MHZ_7
#define IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_ABOVE_80MHZ_8
#define IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_ABOVE_80MHZ_MASK

#define IEEE80211_HE_PHY_CAP5_NG16_SU_FEEDBACK
#define IEEE80211_HE_PHY_CAP5_NG16_MU_FEEDBACK

#define IEEE80211_HE_PHY_CAP6_CODEBOOK_SIZE_42_SU
#define IEEE80211_HE_PHY_CAP6_CODEBOOK_SIZE_75_MU
#define IEEE80211_HE_PHY_CAP6_TRIG_SU_BEAMFORMING_FB
#define IEEE80211_HE_PHY_CAP6_TRIG_MU_BEAMFORMING_PARTIAL_BW_FB
#define IEEE80211_HE_PHY_CAP6_TRIG_CQI_FB
#define IEEE80211_HE_PHY_CAP6_PARTIAL_BW_EXT_RANGE
#define IEEE80211_HE_PHY_CAP6_PARTIAL_BANDWIDTH_DL_MUMIMO
#define IEEE80211_HE_PHY_CAP6_PPE_THRESHOLD_PRESENT

#define IEEE80211_HE_PHY_CAP7_PSR_BASED_SR
#define IEEE80211_HE_PHY_CAP7_POWER_BOOST_FACTOR_SUPP
#define IEEE80211_HE_PHY_CAP7_HE_SU_MU_PPDU_4XLTF_AND_08_US_GI
#define IEEE80211_HE_PHY_CAP7_MAX_NC_1
#define IEEE80211_HE_PHY_CAP7_MAX_NC_2
#define IEEE80211_HE_PHY_CAP7_MAX_NC_3
#define IEEE80211_HE_PHY_CAP7_MAX_NC_4
#define IEEE80211_HE_PHY_CAP7_MAX_NC_5
#define IEEE80211_HE_PHY_CAP7_MAX_NC_6
#define IEEE80211_HE_PHY_CAP7_MAX_NC_7
#define IEEE80211_HE_PHY_CAP7_MAX_NC_MASK
#define IEEE80211_HE_PHY_CAP7_STBC_TX_ABOVE_80MHZ
#define IEEE80211_HE_PHY_CAP7_STBC_RX_ABOVE_80MHZ

#define IEEE80211_HE_PHY_CAP8_HE_ER_SU_PPDU_4XLTF_AND_08_US_GI
#define IEEE80211_HE_PHY_CAP8_20MHZ_IN_40MHZ_HE_PPDU_IN_2G
#define IEEE80211_HE_PHY_CAP8_20MHZ_IN_160MHZ_HE_PPDU
#define IEEE80211_HE_PHY_CAP8_80MHZ_IN_160MHZ_HE_PPDU
#define IEEE80211_HE_PHY_CAP8_HE_ER_SU_1XLTF_AND_08_US_GI
#define IEEE80211_HE_PHY_CAP8_MIDAMBLE_RX_TX_2X_AND_1XLTF
#define IEEE80211_HE_PHY_CAP8_DCM_MAX_RU_242
#define IEEE80211_HE_PHY_CAP8_DCM_MAX_RU_484
#define IEEE80211_HE_PHY_CAP8_DCM_MAX_RU_996
#define IEEE80211_HE_PHY_CAP8_DCM_MAX_RU_2x996
#define IEEE80211_HE_PHY_CAP8_DCM_MAX_RU_MASK

#define IEEE80211_HE_PHY_CAP9_LONGER_THAN_16_SIGB_OFDM_SYM
#define IEEE80211_HE_PHY_CAP9_NON_TRIGGERED_CQI_FEEDBACK
#define IEEE80211_HE_PHY_CAP9_TX_1024_QAM_LESS_THAN_242_TONE_RU
#define IEEE80211_HE_PHY_CAP9_RX_1024_QAM_LESS_THAN_242_TONE_RU
#define IEEE80211_HE_PHY_CAP9_RX_FULL_BW_SU_USING_MU_WITH_COMP_SIGB
#define IEEE80211_HE_PHY_CAP9_RX_FULL_BW_SU_USING_MU_WITH_NON_COMP_SIGB
#define IEEE80211_HE_PHY_CAP9_NOMINAL_PKT_PADDING_0US
#define IEEE80211_HE_PHY_CAP9_NOMINAL_PKT_PADDING_8US
#define IEEE80211_HE_PHY_CAP9_NOMINAL_PKT_PADDING_16US
#define IEEE80211_HE_PHY_CAP9_NOMINAL_PKT_PADDING_RESERVED
#define IEEE80211_HE_PHY_CAP9_NOMINAL_PKT_PADDING_POS
#define IEEE80211_HE_PHY_CAP9_NOMINAL_PKT_PADDING_MASK

#define IEEE80211_HE_PHY_CAP10_HE_MU_M1RU_MAX_LTF

/* 802.11ax HE TX/RX MCS NSS Support  */
#define IEEE80211_TX_RX_MCS_NSS_SUPP_HIGHEST_MCS_POS
#define IEEE80211_TX_RX_MCS_NSS_SUPP_TX_BITMAP_POS
#define IEEE80211_TX_RX_MCS_NSS_SUPP_RX_BITMAP_POS
#define IEEE80211_TX_RX_MCS_NSS_SUPP_TX_BITMAP_MASK
#define IEEE80211_TX_RX_MCS_NSS_SUPP_RX_BITMAP_MASK

/* TX/RX HE MCS Support field Highest MCS subfield encoding */
enum ieee80211_he_highest_mcs_supported_subfield_enc {};

/* Calculate 802.11ax HE capabilities IE Tx/Rx HE MCS NSS Support Field size */
static inline u8
ieee80211_he_mcs_nss_size(const struct ieee80211_he_cap_elem *he_cap)
{}

/* 802.11ax HE PPE Thresholds */
#define IEEE80211_PPE_THRES_NSS_SUPPORT_2NSS
#define IEEE80211_PPE_THRES_NSS_POS
#define IEEE80211_PPE_THRES_NSS_MASK
#define IEEE80211_PPE_THRES_RU_INDEX_BITMASK_2x966_AND_966_RU
#define IEEE80211_PPE_THRES_RU_INDEX_BITMASK_MASK
#define IEEE80211_PPE_THRES_RU_INDEX_BITMASK_POS
#define IEEE80211_PPE_THRES_INFO_PPET_SIZE
#define IEEE80211_HE_PPE_THRES_INFO_HEADER_SIZE

/*
 * Calculate 802.11ax HE capabilities IE PPE field size
 * Input: Header byte of ppe_thres (first byte), and HE capa IE's PHY cap u8*
 */
static inline u8
ieee80211_he_ppe_size(u8 ppe_thres_hdr, const u8 *phy_cap_info)
{}

static inline bool ieee80211_he_capa_size_ok(const u8 *data, u8 len)
{}

/* HE Operation defines */
#define IEEE80211_HE_OPERATION_DFLT_PE_DURATION_MASK
#define IEEE80211_HE_OPERATION_TWT_REQUIRED
#define IEEE80211_HE_OPERATION_RTS_THRESHOLD_MASK
#define IEEE80211_HE_OPERATION_RTS_THRESHOLD_OFFSET
#define IEEE80211_HE_OPERATION_VHT_OPER_INFO
#define IEEE80211_HE_OPERATION_CO_HOSTED_BSS
#define IEEE80211_HE_OPERATION_ER_SU_DISABLE
#define IEEE80211_HE_OPERATION_6GHZ_OP_INFO
#define IEEE80211_HE_OPERATION_BSS_COLOR_MASK
#define IEEE80211_HE_OPERATION_BSS_COLOR_OFFSET
#define IEEE80211_HE_OPERATION_PARTIAL_BSS_COLOR
#define IEEE80211_HE_OPERATION_BSS_COLOR_DISABLED

#define IEEE80211_6GHZ_CTRL_REG_LPI_AP
#define IEEE80211_6GHZ_CTRL_REG_SP_AP
#define IEEE80211_6GHZ_CTRL_REG_VLP_AP
#define IEEE80211_6GHZ_CTRL_REG_INDOOR_LPI_AP
#define IEEE80211_6GHZ_CTRL_REG_INDOOR_SP_AP

/**
 * struct ieee80211_he_6ghz_oper - HE 6 GHz operation Information field
 * @primary: primary channel
 * @control: control flags
 * @ccfs0: channel center frequency segment 0
 * @ccfs1: channel center frequency segment 1
 * @minrate: minimum rate (in 1 Mbps units)
 */
struct ieee80211_he_6ghz_oper {} __packed;

/* transmit power interpretation type of transmit power envelope element */
enum ieee80211_tx_power_intrpt_type {};

/* category type of transmit power envelope element */
enum ieee80211_tx_power_category_6ghz {};

/*
 * For IEEE80211_TPE_LOCAL_EIRP / IEEE80211_TPE_REG_CLIENT_EIRP,
 * setting to 63.5 dBm means no constraint.
 */
#define IEEE80211_TPE_MAX_TX_PWR_NO_CONSTRAINT

/*
 * For IEEE80211_TPE_LOCAL_EIRP_PSD / IEEE80211_TPE_REG_CLIENT_EIRP_PSD,
 * setting to 127 indicates no PSD limit for the 20 MHz channel.
 */
#define IEEE80211_TPE_PSD_NO_LIMIT

/**
 * struct ieee80211_tx_pwr_env - Transmit Power Envelope
 * @info: Transmit Power Information field
 * @variable: Maximum Transmit Power field
 *
 * This structure represents the payload of the "Transmit Power
 * Envelope element" as described in IEEE Std 802.11ax-2021 section
 * 9.4.2.161
 */
struct ieee80211_tx_pwr_env {} __packed;

#define IEEE80211_TX_PWR_ENV_INFO_COUNT
#define IEEE80211_TX_PWR_ENV_INFO_INTERPRET
#define IEEE80211_TX_PWR_ENV_INFO_CATEGORY

#define IEEE80211_TX_PWR_ENV_EXT_COUNT

static inline bool ieee80211_valid_tpe_element(const u8 *data, u8 len)
{}

/*
 * ieee80211_he_oper_size - calculate 802.11ax HE Operations IE size
 * @he_oper_ie: byte data of the He Operations IE, stating from the byte
 *	after the ext ID byte. It is assumed that he_oper_ie has at least
 *	sizeof(struct ieee80211_he_operation) bytes, the caller must have
 *	validated this.
 * @return the actual size of the IE data (not including header), or 0 on error
 */
static inline u8
ieee80211_he_oper_size(const u8 *he_oper_ie)
{}

/**
 * ieee80211_he_6ghz_oper - obtain 6 GHz operation field
 * @he_oper: HE operation element (must be pre-validated for size)
 *	but may be %NULL
 *
 * Return: a pointer to the 6 GHz operation field, or %NULL
 */
static inline const struct ieee80211_he_6ghz_oper *
ieee80211_he_6ghz_oper(const struct ieee80211_he_operation *he_oper)
{}

/* HE Spatial Reuse defines */
#define IEEE80211_HE_SPR_PSR_DISALLOWED
#define IEEE80211_HE_SPR_NON_SRG_OBSS_PD_SR_DISALLOWED
#define IEEE80211_HE_SPR_NON_SRG_OFFSET_PRESENT
#define IEEE80211_HE_SPR_SRG_INFORMATION_PRESENT
#define IEEE80211_HE_SPR_HESIGA_SR_VAL15_ALLOWED

/*
 * ieee80211_he_spr_size - calculate 802.11ax HE Spatial Reuse IE size
 * @he_spr_ie: byte data of the He Spatial Reuse IE, stating from the byte
 *	after the ext ID byte. It is assumed that he_spr_ie has at least
 *	sizeof(struct ieee80211_he_spr) bytes, the caller must have validated
 *	this
 * @return the actual size of the IE data (not including header), or 0 on error
 */
static inline u8
ieee80211_he_spr_size(const u8 *he_spr_ie)
{}

/* S1G Capabilities Information field */
#define IEEE80211_S1G_CAPABILITY_LEN

#define S1G_CAP0_S1G_LONG
#define S1G_CAP0_SGI_1MHZ
#define S1G_CAP0_SGI_2MHZ
#define S1G_CAP0_SGI_4MHZ
#define S1G_CAP0_SGI_8MHZ
#define S1G_CAP0_SGI_16MHZ
#define S1G_CAP0_SUPP_CH_WIDTH

#define S1G_SUPP_CH_WIDTH_2
#define S1G_SUPP_CH_WIDTH_4
#define S1G_SUPP_CH_WIDTH_8
#define S1G_SUPP_CH_WIDTH_16
#define S1G_SUPP_CH_WIDTH_MAX(cap)

#define S1G_CAP1_RX_LDPC
#define S1G_CAP1_TX_STBC
#define S1G_CAP1_RX_STBC
#define S1G_CAP1_SU_BFER
#define S1G_CAP1_SU_BFEE
#define S1G_CAP1_BFEE_STS

#define S1G_CAP2_SOUNDING_DIMENSIONS
#define S1G_CAP2_MU_BFER
#define S1G_CAP2_MU_BFEE
#define S1G_CAP2_PLUS_HTC_VHT
#define S1G_CAP2_TRAVELING_PILOT

#define S1G_CAP3_RD_RESPONDER
#define S1G_CAP3_HT_DELAYED_BA
#define S1G_CAP3_MAX_MPDU_LEN
#define S1G_CAP3_MAX_AMPDU_LEN_EXP
#define S1G_CAP3_MIN_MPDU_START

#define S1G_CAP4_UPLINK_SYNC
#define S1G_CAP4_DYNAMIC_AID
#define S1G_CAP4_BAT
#define S1G_CAP4_TIME_ADE
#define S1G_CAP4_NON_TIM
#define S1G_CAP4_GROUP_AID
#define S1G_CAP4_STA_TYPE

#define S1G_CAP5_CENT_AUTH_CONTROL
#define S1G_CAP5_DIST_AUTH_CONTROL
#define S1G_CAP5_AMSDU
#define S1G_CAP5_AMPDU
#define S1G_CAP5_ASYMMETRIC_BA
#define S1G_CAP5_FLOW_CONTROL
#define S1G_CAP5_SECTORIZED_BEAM

#define S1G_CAP6_OBSS_MITIGATION
#define S1G_CAP6_FRAGMENT_BA
#define S1G_CAP6_NDP_PS_POLL
#define S1G_CAP6_RAW_OPERATION
#define S1G_CAP6_PAGE_SLICING
#define S1G_CAP6_TXOP_SHARING_IMP_ACK
#define S1G_CAP6_VHT_LINK_ADAPT

#define S1G_CAP7_TACK_AS_PS_POLL
#define S1G_CAP7_DUP_1MHZ
#define S1G_CAP7_MCS_NEGOTIATION
#define S1G_CAP7_1MHZ_CTL_RESPONSE_PREAMBLE
#define S1G_CAP7_NDP_BFING_REPORT_POLL
#define S1G_CAP7_UNSOLICITED_DYN_AID
#define S1G_CAP7_SECTOR_TRAINING_OPERATION
#define S1G_CAP7_TEMP_PS_MODE_SWITCH

#define S1G_CAP8_TWT_GROUPING
#define S1G_CAP8_BDT
#define S1G_CAP8_COLOR
#define S1G_CAP8_TWT_REQUEST
#define S1G_CAP8_TWT_RESPOND
#define S1G_CAP8_PV1_FRAME

#define S1G_CAP9_LINK_ADAPT_PER_CONTROL_RESPONSE

#define S1G_OPER_CH_WIDTH_PRIMARY_1MHZ
#define S1G_OPER_CH_WIDTH_OPER

/* EHT MAC capabilities as defined in P802.11be_D2.0 section 9.4.2.313.2 */
#define IEEE80211_EHT_MAC_CAP0_EPCS_PRIO_ACCESS
#define IEEE80211_EHT_MAC_CAP0_OM_CONTROL
#define IEEE80211_EHT_MAC_CAP0_TRIG_TXOP_SHARING_MODE1
#define IEEE80211_EHT_MAC_CAP0_TRIG_TXOP_SHARING_MODE2
#define IEEE80211_EHT_MAC_CAP0_RESTRICTED_TWT
#define IEEE80211_EHT_MAC_CAP0_SCS_TRAFFIC_DESC
#define IEEE80211_EHT_MAC_CAP0_MAX_MPDU_LEN_MASK
#define IEEE80211_EHT_MAC_CAP0_MAX_MPDU_LEN_3895
#define IEEE80211_EHT_MAC_CAP0_MAX_MPDU_LEN_7991
#define IEEE80211_EHT_MAC_CAP0_MAX_MPDU_LEN_11454

#define IEEE80211_EHT_MAC_CAP1_MAX_AMPDU_LEN_MASK

/* EHT PHY capabilities as defined in P802.11be_D2.0 section 9.4.2.313.3 */
#define IEEE80211_EHT_PHY_CAP0_320MHZ_IN_6GHZ
#define IEEE80211_EHT_PHY_CAP0_242_TONE_RU_GT20MHZ
#define IEEE80211_EHT_PHY_CAP0_NDP_4_EHT_LFT_32_GI
#define IEEE80211_EHT_PHY_CAP0_PARTIAL_BW_UL_MU_MIMO
#define IEEE80211_EHT_PHY_CAP0_SU_BEAMFORMER
#define IEEE80211_EHT_PHY_CAP0_SU_BEAMFORMEE

/* EHT beamformee number of spatial streams <= 80MHz is split */
#define IEEE80211_EHT_PHY_CAP0_BEAMFORMEE_SS_80MHZ_MASK
#define IEEE80211_EHT_PHY_CAP1_BEAMFORMEE_SS_80MHZ_MASK

#define IEEE80211_EHT_PHY_CAP1_BEAMFORMEE_SS_160MHZ_MASK
#define IEEE80211_EHT_PHY_CAP1_BEAMFORMEE_SS_320MHZ_MASK

#define IEEE80211_EHT_PHY_CAP2_SOUNDING_DIM_80MHZ_MASK
#define IEEE80211_EHT_PHY_CAP2_SOUNDING_DIM_160MHZ_MASK

/* EHT number of sounding dimensions for 320MHz is split */
#define IEEE80211_EHT_PHY_CAP2_SOUNDING_DIM_320MHZ_MASK
#define IEEE80211_EHT_PHY_CAP3_SOUNDING_DIM_320MHZ_MASK
#define IEEE80211_EHT_PHY_CAP3_NG_16_SU_FEEDBACK
#define IEEE80211_EHT_PHY_CAP3_NG_16_MU_FEEDBACK
#define IEEE80211_EHT_PHY_CAP3_CODEBOOK_4_2_SU_FDBK
#define IEEE80211_EHT_PHY_CAP3_CODEBOOK_7_5_MU_FDBK
#define IEEE80211_EHT_PHY_CAP3_TRIG_SU_BF_FDBK
#define IEEE80211_EHT_PHY_CAP3_TRIG_MU_BF_PART_BW_FDBK
#define IEEE80211_EHT_PHY_CAP3_TRIG_CQI_FDBK

#define IEEE80211_EHT_PHY_CAP4_PART_BW_DL_MU_MIMO
#define IEEE80211_EHT_PHY_CAP4_PSR_SR_SUPP
#define IEEE80211_EHT_PHY_CAP4_POWER_BOOST_FACT_SUPP
#define IEEE80211_EHT_PHY_CAP4_EHT_MU_PPDU_4_EHT_LTF_08_GI
#define IEEE80211_EHT_PHY_CAP4_MAX_NC_MASK

#define IEEE80211_EHT_PHY_CAP5_NON_TRIG_CQI_FEEDBACK
#define IEEE80211_EHT_PHY_CAP5_TX_LESS_242_TONE_RU_SUPP
#define IEEE80211_EHT_PHY_CAP5_RX_LESS_242_TONE_RU_SUPP
#define IEEE80211_EHT_PHY_CAP5_PPE_THRESHOLD_PRESENT
#define IEEE80211_EHT_PHY_CAP5_COMMON_NOMINAL_PKT_PAD_MASK
#define IEEE80211_EHT_PHY_CAP5_COMMON_NOMINAL_PKT_PAD_0US
#define IEEE80211_EHT_PHY_CAP5_COMMON_NOMINAL_PKT_PAD_8US
#define IEEE80211_EHT_PHY_CAP5_COMMON_NOMINAL_PKT_PAD_16US
#define IEEE80211_EHT_PHY_CAP5_COMMON_NOMINAL_PKT_PAD_20US

/* Maximum number of supported EHT LTF is split */
#define IEEE80211_EHT_PHY_CAP5_MAX_NUM_SUPP_EHT_LTF_MASK
#define IEEE80211_EHT_PHY_CAP5_SUPP_EXTRA_EHT_LTF
#define IEEE80211_EHT_PHY_CAP6_MAX_NUM_SUPP_EHT_LTF_MASK

#define IEEE80211_EHT_PHY_CAP6_MCS15_SUPP_80MHZ
#define IEEE80211_EHT_PHY_CAP6_MCS15_SUPP_160MHZ
#define IEEE80211_EHT_PHY_CAP6_MCS15_SUPP_320MHZ
#define IEEE80211_EHT_PHY_CAP6_MCS15_SUPP_MASK
#define IEEE80211_EHT_PHY_CAP6_EHT_DUP_6GHZ_SUPP

#define IEEE80211_EHT_PHY_CAP7_20MHZ_STA_RX_NDP_WIDER_BW
#define IEEE80211_EHT_PHY_CAP7_NON_OFDMA_UL_MU_MIMO_80MHZ
#define IEEE80211_EHT_PHY_CAP7_NON_OFDMA_UL_MU_MIMO_160MHZ
#define IEEE80211_EHT_PHY_CAP7_NON_OFDMA_UL_MU_MIMO_320MHZ
#define IEEE80211_EHT_PHY_CAP7_MU_BEAMFORMER_80MHZ
#define IEEE80211_EHT_PHY_CAP7_MU_BEAMFORMER_160MHZ
#define IEEE80211_EHT_PHY_CAP7_MU_BEAMFORMER_320MHZ
#define IEEE80211_EHT_PHY_CAP7_TB_SOUNDING_FDBK_RATE_LIMIT

#define IEEE80211_EHT_PHY_CAP8_RX_1024QAM_WIDER_BW_DL_OFDMA
#define IEEE80211_EHT_PHY_CAP8_RX_4096QAM_WIDER_BW_DL_OFDMA

/*
 * EHT operation channel width as defined in P802.11be_D2.0 section 9.4.2.311
 */
#define IEEE80211_EHT_OPER_CHAN_WIDTH
#define IEEE80211_EHT_OPER_CHAN_WIDTH_20MHZ
#define IEEE80211_EHT_OPER_CHAN_WIDTH_40MHZ
#define IEEE80211_EHT_OPER_CHAN_WIDTH_80MHZ
#define IEEE80211_EHT_OPER_CHAN_WIDTH_160MHZ
#define IEEE80211_EHT_OPER_CHAN_WIDTH_320MHZ

/* Calculate 802.11be EHT capabilities IE Tx/Rx EHT MCS NSS Support Field size */
static inline u8
ieee80211_eht_mcs_nss_size(const struct ieee80211_he_cap_elem *he_cap,
			   const struct ieee80211_eht_cap_elem_fixed *eht_cap,
			   bool from_ap)
{}

/* 802.11be EHT PPE Thresholds */
#define IEEE80211_EHT_PPE_THRES_NSS_POS
#define IEEE80211_EHT_PPE_THRES_NSS_MASK
#define IEEE80211_EHT_PPE_THRES_RU_INDEX_BITMASK_MASK
#define IEEE80211_EHT_PPE_THRES_INFO_PPET_SIZE
#define IEEE80211_EHT_PPE_THRES_INFO_HEADER_SIZE

/*
 * Calculate 802.11be EHT capabilities IE EHT field size
 */
static inline u8
ieee80211_eht_ppe_size(u16 ppe_thres_hdr, const u8 *phy_cap_info)
{}

static inline bool
ieee80211_eht_capa_size_ok(const u8 *he_capa, const u8 *data, u8 len,
			   bool from_ap)
{}

static inline bool
ieee80211_eht_oper_size_ok(const u8 *data, u8 len)
{}

/* must validate ieee80211_eht_oper_size_ok() first */
static inline u16
ieee80211_eht_oper_dis_subchan_bitmap(const struct ieee80211_eht_operation *eht_oper)
{}

#define IEEE80211_BW_IND_DIS_SUBCH_PRESENT

struct ieee80211_bandwidth_indication {} __packed;

static inline bool
ieee80211_bandwidth_indication_size_ok(const u8 *data, u8 len)
{}

#define LISTEN_INT_USF
#define LISTEN_INT_UI

#define IEEE80211_MAX_USF
#define IEEE80211_MAX_UI

/* Authentication algorithms */
#define WLAN_AUTH_OPEN
#define WLAN_AUTH_SHARED_KEY
#define WLAN_AUTH_FT
#define WLAN_AUTH_SAE
#define WLAN_AUTH_FILS_SK
#define WLAN_AUTH_FILS_SK_PFS
#define WLAN_AUTH_FILS_PK
#define WLAN_AUTH_LEAP

#define WLAN_AUTH_CHALLENGE_LEN

#define WLAN_CAPABILITY_ESS
#define WLAN_CAPABILITY_IBSS

/*
 * A mesh STA sets the ESS and IBSS capability bits to zero.
 * however, this holds true for p2p probe responses (in the p2p_find
 * phase) as well.
 */
#define WLAN_CAPABILITY_IS_STA_BSS(cap)

#define WLAN_CAPABILITY_CF_POLLABLE
#define WLAN_CAPABILITY_CF_POLL_REQUEST
#define WLAN_CAPABILITY_PRIVACY
#define WLAN_CAPABILITY_SHORT_PREAMBLE
#define WLAN_CAPABILITY_PBCC
#define WLAN_CAPABILITY_CHANNEL_AGILITY

/* 802.11h */
#define WLAN_CAPABILITY_SPECTRUM_MGMT
#define WLAN_CAPABILITY_QOS
#define WLAN_CAPABILITY_SHORT_SLOT_TIME
#define WLAN_CAPABILITY_APSD
#define WLAN_CAPABILITY_RADIO_MEASURE
#define WLAN_CAPABILITY_DSSS_OFDM
#define WLAN_CAPABILITY_DEL_BACK
#define WLAN_CAPABILITY_IMM_BACK

/* DMG (60gHz) 802.11ad */
/* type - bits 0..1 */
#define WLAN_CAPABILITY_DMG_TYPE_MASK
#define WLAN_CAPABILITY_DMG_TYPE_IBSS
#define WLAN_CAPABILITY_DMG_TYPE_PBSS
#define WLAN_CAPABILITY_DMG_TYPE_AP

#define WLAN_CAPABILITY_DMG_CBAP_ONLY
#define WLAN_CAPABILITY_DMG_CBAP_SOURCE
#define WLAN_CAPABILITY_DMG_PRIVACY
#define WLAN_CAPABILITY_DMG_ECPAC

#define WLAN_CAPABILITY_DMG_SPECTRUM_MGMT
#define WLAN_CAPABILITY_DMG_RADIO_MEASURE

/* measurement */
#define IEEE80211_SPCT_MSR_RPRT_MODE_LATE
#define IEEE80211_SPCT_MSR_RPRT_MODE_INCAPABLE
#define IEEE80211_SPCT_MSR_RPRT_MODE_REFUSED

#define IEEE80211_SPCT_MSR_RPRT_TYPE_BASIC
#define IEEE80211_SPCT_MSR_RPRT_TYPE_CCA
#define IEEE80211_SPCT_MSR_RPRT_TYPE_RPI
#define IEEE80211_SPCT_MSR_RPRT_TYPE_LCI
#define IEEE80211_SPCT_MSR_RPRT_TYPE_CIVIC

/* 802.11g ERP information element */
#define WLAN_ERP_NON_ERP_PRESENT
#define WLAN_ERP_USE_PROTECTION
#define WLAN_ERP_BARKER_PREAMBLE

/* WLAN_ERP_BARKER_PREAMBLE values */
enum {};

/* Band ID, 802.11ad #8.4.1.45 */
enum {};

/* Status codes */
enum ieee80211_statuscode {};


/* Reason codes */
enum ieee80211_reasoncode {};


/* Information Element IDs */
enum ieee80211_eid {};

/* Element ID Extensions for Element ID 255 */
enum ieee80211_eid_ext {};

/* Action category code */
enum ieee80211_category {};

/* SPECTRUM_MGMT action code */
enum ieee80211_spectrum_mgmt_actioncode {};

/* HT action codes */
enum ieee80211_ht_actioncode {};

/* VHT action codes */
enum ieee80211_vht_actioncode {};

/* Self Protected Action codes */
enum ieee80211_self_protected_actioncode {};

/* Mesh action codes */
enum ieee80211_mesh_actioncode {};

/* Unprotected WNM action codes */
enum ieee80211_unprotected_wnm_actioncode {};

/* Protected EHT action codes */
enum ieee80211_protected_eht_actioncode {};

/* Security key length */
enum ieee80211_key_len {};

enum ieee80211_s1g_actioncode {};

#define IEEE80211_WEP_IV_LEN
#define IEEE80211_WEP_ICV_LEN
#define IEEE80211_CCMP_HDR_LEN
#define IEEE80211_CCMP_MIC_LEN
#define IEEE80211_CCMP_PN_LEN
#define IEEE80211_CCMP_256_HDR_LEN
#define IEEE80211_CCMP_256_MIC_LEN
#define IEEE80211_CCMP_256_PN_LEN
#define IEEE80211_TKIP_IV_LEN
#define IEEE80211_TKIP_ICV_LEN
#define IEEE80211_CMAC_PN_LEN
#define IEEE80211_GMAC_PN_LEN
#define IEEE80211_GCMP_HDR_LEN
#define IEEE80211_GCMP_MIC_LEN
#define IEEE80211_GCMP_PN_LEN

#define FILS_NONCE_LEN
#define FILS_MAX_KEK_LEN

#define FILS_ERP_MAX_USERNAME_LEN
#define FILS_ERP_MAX_REALM_LEN
#define FILS_ERP_MAX_RRK_LEN

#define PMK_MAX_LEN
#define SAE_PASSWORD_MAX_LEN

/* Public action codes (IEEE Std 802.11-2016, 9.6.8.1, Table 9-307) */
enum ieee80211_pub_actioncode {};

/* TDLS action codes */
enum ieee80211_tdls_actioncode {};

/* Extended Channel Switching capability to be set in the 1st byte of
 * the @WLAN_EID_EXT_CAPABILITY information element
 */
#define WLAN_EXT_CAPA1_EXT_CHANNEL_SWITCHING

/* Multiple BSSID capability is set in the 6th bit of 3rd byte of the
 * @WLAN_EID_EXT_CAPABILITY information element
 */
#define WLAN_EXT_CAPA3_MULTI_BSSID_SUPPORT

/* Timing Measurement protocol for time sync is set in the 7th bit of 3rd byte
 * of the @WLAN_EID_EXT_CAPABILITY information element
 */
#define WLAN_EXT_CAPA3_TIMING_MEASUREMENT_SUPPORT

/* TDLS capabilities in the 4th byte of @WLAN_EID_EXT_CAPABILITY */
#define WLAN_EXT_CAPA4_TDLS_BUFFER_STA
#define WLAN_EXT_CAPA4_TDLS_PEER_PSM
#define WLAN_EXT_CAPA4_TDLS_CHAN_SWITCH

/* Interworking capabilities are set in 7th bit of 4th byte of the
 * @WLAN_EID_EXT_CAPABILITY information element
 */
#define WLAN_EXT_CAPA4_INTERWORKING_ENABLED

/*
 * TDLS capabililites to be enabled in the 5th byte of the
 * @WLAN_EID_EXT_CAPABILITY information element
 */
#define WLAN_EXT_CAPA5_TDLS_ENABLED
#define WLAN_EXT_CAPA5_TDLS_PROHIBITED
#define WLAN_EXT_CAPA5_TDLS_CH_SW_PROHIBITED

#define WLAN_EXT_CAPA8_TDLS_WIDE_BW_ENABLED
#define WLAN_EXT_CAPA8_OPMODE_NOTIF

/* Defines the maximal number of MSDUs in an A-MSDU. */
#define WLAN_EXT_CAPA8_MAX_MSDU_IN_AMSDU_LSB
#define WLAN_EXT_CAPA9_MAX_MSDU_IN_AMSDU_MSB

/*
 * Fine Timing Measurement Initiator - bit 71 of @WLAN_EID_EXT_CAPABILITY
 * information element
 */
#define WLAN_EXT_CAPA9_FTM_INITIATOR

/* Defines support for TWT Requester and TWT Responder */
#define WLAN_EXT_CAPA10_TWT_REQUESTER_SUPPORT
#define WLAN_EXT_CAPA10_TWT_RESPONDER_SUPPORT

/*
 * When set, indicates that the AP is able to tolerate 26-tone RU UL
 * OFDMA transmissions using HE TB PPDU from OBSS (not falsely classify the
 * 26-tone RU UL OFDMA transmissions as radar pulses).
 */
#define WLAN_EXT_CAPA10_OBSS_NARROW_BW_RU_TOLERANCE_SUPPORT

/* Defines support for enhanced multi-bssid advertisement*/
#define WLAN_EXT_CAPA11_EMA_SUPPORT

/* TDLS specific payload type in the LLC/SNAP header */
#define WLAN_TDLS_SNAP_RFTYPE

/* BSS Coex IE information field bits */
#define WLAN_BSS_COEX_INFORMATION_REQUEST

/**
 * enum ieee80211_mesh_sync_method - mesh synchronization method identifier
 *
 * @IEEE80211_SYNC_METHOD_NEIGHBOR_OFFSET: the default synchronization method
 * @IEEE80211_SYNC_METHOD_VENDOR: a vendor specific synchronization method
 *	that will be specified in a vendor specific information element
 */
enum ieee80211_mesh_sync_method {};

/**
 * enum ieee80211_mesh_path_protocol - mesh path selection protocol identifier
 *
 * @IEEE80211_PATH_PROTOCOL_HWMP: the default path selection protocol
 * @IEEE80211_PATH_PROTOCOL_VENDOR: a vendor specific protocol that will
 *	be specified in a vendor specific information element
 */
enum ieee80211_mesh_path_protocol {};

/**
 * enum ieee80211_mesh_path_metric - mesh path selection metric identifier
 *
 * @IEEE80211_PATH_METRIC_AIRTIME: the default path selection metric
 * @IEEE80211_PATH_METRIC_VENDOR: a vendor specific metric that will be
 *	specified in a vendor specific information element
 */
enum ieee80211_mesh_path_metric {};

/**
 * enum ieee80211_root_mode_identifier - root mesh STA mode identifier
 *
 * These attribute are used by dot11MeshHWMPRootMode to set root mesh STA mode
 *
 * @IEEE80211_ROOTMODE_NO_ROOT: the mesh STA is not a root mesh STA (default)
 * @IEEE80211_ROOTMODE_ROOT: the mesh STA is a root mesh STA if greater than
 *	this value
 * @IEEE80211_PROACTIVE_PREQ_NO_PREP: the mesh STA is a root mesh STA supports
 *	the proactive PREQ with proactive PREP subfield set to 0
 * @IEEE80211_PROACTIVE_PREQ_WITH_PREP: the mesh STA is a root mesh STA
 *	supports the proactive PREQ with proactive PREP subfield set to 1
 * @IEEE80211_PROACTIVE_RANN: the mesh STA is a root mesh STA supports
 *	the proactive RANN
 */
enum ieee80211_root_mode_identifier {};

/*
 * IEEE 802.11-2007 7.3.2.9 Country information element
 *
 * Minimum length is 8 octets, ie len must be evenly
 * divisible by 2
 */

/* Although the spec says 8 I'm seeing 6 in practice */
#define IEEE80211_COUNTRY_IE_MIN_LEN

/* The Country String field of the element shall be 3 octets in length */
#define IEEE80211_COUNTRY_STRING_LEN

/*
 * For regulatory extension stuff see IEEE 802.11-2007
 * Annex I (page 1141) and Annex J (page 1147). Also
 * review 7.3.2.9.
 *
 * When dot11RegulatoryClassesRequired is true and the
 * first_channel/reg_extension_id is >= 201 then the IE
 * compromises of the 'ext' struct represented below:
 *
 *  - Regulatory extension ID - when generating IE this just needs
 *    to be monotonically increasing for each triplet passed in
 *    the IE
 *  - Regulatory class - index into set of rules
 *  - Coverage class - index into air propagation time (Table 7-27),
 *    in microseconds, you can compute the air propagation time from
 *    the index by multiplying by 3, so index 10 yields a propagation
 *    of 10 us. Valid values are 0-31, values 32-255 are not defined
 *    yet. A value of 0 inicates air propagation of <= 1 us.
 *
 *  See also Table I.2 for Emission limit sets and table
 *  I.3 for Behavior limit sets. Table J.1 indicates how to map
 *  a reg_class to an emission limit set and behavior limit set.
 */
#define IEEE80211_COUNTRY_EXTENSION_ID

/*
 *  Channels numbers in the IE must be monotonically increasing
 *  if dot11RegulatoryClassesRequired is not true.
 *
 *  If dot11RegulatoryClassesRequired is true consecutive
 *  subband triplets following a regulatory triplet shall
 *  have monotonically increasing first_channel number fields.
 *
 *  Channel numbers shall not overlap.
 *
 *  Note that max_power is signed.
 */
struct ieee80211_country_ie_triplet {} __packed;

enum ieee80211_timeout_interval_type {};

/**
 * struct ieee80211_timeout_interval_ie - Timeout Interval element
 * @type: type, see &enum ieee80211_timeout_interval_type
 * @value: timeout interval value
 */
struct ieee80211_timeout_interval_ie {} __packed;

/**
 * enum ieee80211_idle_options - BSS idle options
 * @WLAN_IDLE_OPTIONS_PROTECTED_KEEP_ALIVE: the station should send an RSN
 *	protected frame to the AP to reset the idle timer at the AP for
 *	the station.
 */
enum ieee80211_idle_options {};

/**
 * struct ieee80211_bss_max_idle_period_ie - BSS max idle period element struct
 *
 * This structure refers to "BSS Max idle period element"
 *
 * @max_idle_period: indicates the time period during which a station can
 *	refrain from transmitting frames to its associated AP without being
 *	disassociated. In units of 1000 TUs.
 * @idle_options: indicates the options associated with the BSS idle capability
 *	as specified in &enum ieee80211_idle_options.
 */
struct ieee80211_bss_max_idle_period_ie {} __packed;

/* BACK action code */
enum ieee80211_back_actioncode {};

/* BACK (block-ack) parties */
enum ieee80211_back_parties {};

/* SA Query action */
enum ieee80211_sa_query_action {};

/**
 * struct ieee80211_bssid_index - multiple BSSID index element structure
 *
 * This structure refers to "Multiple BSSID-index element"
 *
 * @bssid_index: BSSID index
 * @dtim_period: optional, overrides transmitted BSS dtim period
 * @dtim_count: optional, overrides transmitted BSS dtim count
 */
struct ieee80211_bssid_index {};

/**
 * struct ieee80211_multiple_bssid_configuration - multiple BSSID configuration
 *	element structure
 *
 * This structure refers to "Multiple BSSID Configuration element"
 *
 * @bssid_count: total number of active BSSIDs in the set
 * @profile_periodicity: the least number of beacon frames need to be received
 *	in order to discover all the nontransmitted BSSIDs in the set.
 */
struct ieee80211_multiple_bssid_configuration {};

#define SUITE(oui, id)

/* cipher suite selectors */
#define WLAN_CIPHER_SUITE_USE_GROUP
#define WLAN_CIPHER_SUITE_WEP40
#define WLAN_CIPHER_SUITE_TKIP
/* reserved: 				SUITE(0x000FAC, 3) */
#define WLAN_CIPHER_SUITE_CCMP
#define WLAN_CIPHER_SUITE_WEP104
#define WLAN_CIPHER_SUITE_AES_CMAC
#define WLAN_CIPHER_SUITE_GCMP
#define WLAN_CIPHER_SUITE_GCMP_256
#define WLAN_CIPHER_SUITE_CCMP_256
#define WLAN_CIPHER_SUITE_BIP_GMAC_128
#define WLAN_CIPHER_SUITE_BIP_GMAC_256
#define WLAN_CIPHER_SUITE_BIP_CMAC_256

#define WLAN_CIPHER_SUITE_SMS4

/* AKM suite selectors */
#define WLAN_AKM_SUITE_8021X
#define WLAN_AKM_SUITE_PSK
#define WLAN_AKM_SUITE_FT_8021X
#define WLAN_AKM_SUITE_FT_PSK
#define WLAN_AKM_SUITE_8021X_SHA256
#define WLAN_AKM_SUITE_PSK_SHA256
#define WLAN_AKM_SUITE_TDLS
#define WLAN_AKM_SUITE_SAE
#define WLAN_AKM_SUITE_FT_OVER_SAE
#define WLAN_AKM_SUITE_AP_PEER_KEY
#define WLAN_AKM_SUITE_8021X_SUITE_B
#define WLAN_AKM_SUITE_8021X_SUITE_B_192
#define WLAN_AKM_SUITE_FT_8021X_SHA384
#define WLAN_AKM_SUITE_FILS_SHA256
#define WLAN_AKM_SUITE_FILS_SHA384
#define WLAN_AKM_SUITE_FT_FILS_SHA256
#define WLAN_AKM_SUITE_FT_FILS_SHA384
#define WLAN_AKM_SUITE_OWE
#define WLAN_AKM_SUITE_FT_PSK_SHA384
#define WLAN_AKM_SUITE_PSK_SHA384

#define WLAN_AKM_SUITE_WFA_DPP

#define WLAN_MAX_KEY_LEN

#define WLAN_PMK_NAME_LEN
#define WLAN_PMKID_LEN
#define WLAN_PMK_LEN_EAP_LEAP
#define WLAN_PMK_LEN
#define WLAN_PMK_LEN_SUITE_B_192

#define WLAN_OUI_WFA
#define WLAN_OUI_TYPE_WFA_P2P
#define WLAN_OUI_TYPE_WFA_DPP
#define WLAN_OUI_MICROSOFT
#define WLAN_OUI_TYPE_MICROSOFT_WPA
#define WLAN_OUI_TYPE_MICROSOFT_WMM
#define WLAN_OUI_TYPE_MICROSOFT_WPS
#define WLAN_OUI_TYPE_MICROSOFT_TPC

/*
 * WMM/802.11e Tspec Element
 */
#define IEEE80211_WMM_IE_TSPEC_TID_MASK
#define IEEE80211_WMM_IE_TSPEC_TID_SHIFT

enum ieee80211_tspec_status_code {};

struct ieee80211_tspec_ie {} __packed;

struct ieee80211_he_6ghz_capa {} __packed;

/* HE 6 GHz band capabilities */
/* uses enum ieee80211_min_mpdu_spacing values */
#define IEEE80211_HE_6GHZ_CAP_MIN_MPDU_START
/* uses enum ieee80211_vht_max_ampdu_length_exp values */
#define IEEE80211_HE_6GHZ_CAP_MAX_AMPDU_LEN_EXP
/* uses IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_* values */
#define IEEE80211_HE_6GHZ_CAP_MAX_MPDU_LEN
/* WLAN_HT_CAP_SM_PS_* values */
#define IEEE80211_HE_6GHZ_CAP_SM_PS
#define IEEE80211_HE_6GHZ_CAP_RD_RESPONDER
#define IEEE80211_HE_6GHZ_CAP_RX_ANTPAT_CONS
#define IEEE80211_HE_6GHZ_CAP_TX_ANTPAT_CONS

/**
 * ieee80211_get_qos_ctl - get pointer to qos control bytes
 * @hdr: the frame
 * Return: a pointer to the QoS control field in the frame header
 *
 * The qos ctrl bytes come after the frame_control, duration, seq_num
 * and 3 or 4 addresses of length ETH_ALEN. Checks frame_control to choose
 * between struct ieee80211_qos_hdr_4addr and struct ieee80211_qos_hdr.
 */
static inline u8 *ieee80211_get_qos_ctl(struct ieee80211_hdr *hdr)
{}

/**
 * ieee80211_get_tid - get qos TID
 * @hdr: the frame
 * Return: the TID from the QoS control field
 */
static inline u8 ieee80211_get_tid(struct ieee80211_hdr *hdr)
{}

/**
 * ieee80211_get_SA - get pointer to SA
 * @hdr: the frame
 * Return: a pointer to the source address (SA)
 *
 * Given an 802.11 frame, this function returns the offset
 * to the source address (SA). It does not verify that the
 * header is long enough to contain the address, and the
 * header must be long enough to contain the frame control
 * field.
 */
static inline u8 *ieee80211_get_SA(struct ieee80211_hdr *hdr)
{}

/**
 * ieee80211_get_DA - get pointer to DA
 * @hdr: the frame
 * Return: a pointer to the destination address (DA)
 *
 * Given an 802.11 frame, this function returns the offset
 * to the destination address (DA). It does not verify that
 * the header is long enough to contain the address, and the
 * header must be long enough to contain the frame control
 * field.
 */
static inline u8 *ieee80211_get_DA(struct ieee80211_hdr *hdr)
{}

/**
 * ieee80211_is_bufferable_mmpdu - check if frame is bufferable MMPDU
 * @skb: the skb to check, starting with the 802.11 header
 * Return: whether or not the MMPDU is bufferable
 */
static inline bool ieee80211_is_bufferable_mmpdu(struct sk_buff *skb)
{}

/**
 * _ieee80211_is_robust_mgmt_frame - check if frame is a robust management frame
 * @hdr: the frame (buffer must include at least the first octet of payload)
 * Return: whether or not the frame is a robust management frame
 */
static inline bool _ieee80211_is_robust_mgmt_frame(struct ieee80211_hdr *hdr)
{}

/**
 * ieee80211_is_robust_mgmt_frame - check if skb contains a robust mgmt frame
 * @skb: the skb containing the frame, length will be checked
 * Return: whether or not the frame is a robust management frame
 */
static inline bool ieee80211_is_robust_mgmt_frame(struct sk_buff *skb)
{}

/**
 * ieee80211_is_public_action - check if frame is a public action frame
 * @hdr: the frame
 * @len: length of the frame
 * Return: whether or not the frame is a public action frame
 */
static inline bool ieee80211_is_public_action(struct ieee80211_hdr *hdr,
					      size_t len)
{}

/**
 * ieee80211_is_protected_dual_of_public_action - check if skb contains a
 * protected dual of public action management frame
 * @skb: the skb containing the frame, length will be checked
 *
 * Return: true if the skb contains a protected dual of public action
 * management frame, false otherwise.
 */
static inline bool
ieee80211_is_protected_dual_of_public_action(struct sk_buff *skb)
{}

/**
 * _ieee80211_is_group_privacy_action - check if frame is a group addressed
 *	privacy action frame
 * @hdr: the frame
 * Return: whether or not the frame is a group addressed privacy action frame
 */
static inline bool _ieee80211_is_group_privacy_action(struct ieee80211_hdr *hdr)
{}

/**
 * ieee80211_is_group_privacy_action - check if frame is a group addressed
 *	privacy action frame
 * @skb: the skb containing the frame, length will be checked
 * Return: whether or not the frame is a group addressed privacy action frame
 */
static inline bool ieee80211_is_group_privacy_action(struct sk_buff *skb)
{}

/**
 * ieee80211_tu_to_usec - convert time units (TU) to microseconds
 * @tu: the TUs
 * Return: the time value converted to microseconds
 */
static inline unsigned long ieee80211_tu_to_usec(unsigned long tu)
{}

/**
 * ieee80211_check_tim - check if AID bit is set in TIM
 * @tim: the TIM IE
 * @tim_len: length of the TIM IE
 * @aid: the AID to look for
 * Return: whether or not traffic is indicated in the TIM for the given AID
 */
static inline bool ieee80211_check_tim(const struct ieee80211_tim_ie *tim,
				       u8 tim_len, u16 aid)
{}

/**
 * ieee80211_get_tdls_action - get TDLS action code
 * @skb: the skb containing the frame, length will not be checked
 * Return: the TDLS action code, or -1 if it's not an encapsulated TDLS action
 *	frame
 *
 * This function assumes the frame is a data frame, and that the network header
 * is in the correct place.
 */
static inline int ieee80211_get_tdls_action(struct sk_buff *skb)
{}

/* convert time units */
#define TU_TO_JIFFIES(x)
#define TU_TO_EXP_TIME(x)

/* convert frequencies */
#define MHZ_TO_KHZ(freq)
#define KHZ_TO_MHZ(freq)
#define PR_KHZ(f)
#define KHZ_F

/* convert powers */
#define DBI_TO_MBI(gain)
#define MBI_TO_DBI(gain)
#define DBM_TO_MBM(gain)
#define MBM_TO_DBM(gain)

/**
 * ieee80211_action_contains_tpc - checks if the frame contains TPC element
 * @skb: the skb containing the frame, length will be checked
 * Return: %true if the frame contains a TPC element, %false otherwise
 *
 * This function checks if it's either TPC report action frame or Link
 * Measurement report action frame as defined in IEEE Std. 802.11-2012 8.5.2.5
 * and 8.5.7.5 accordingly.
 */
static inline bool ieee80211_action_contains_tpc(struct sk_buff *skb)
{}

/**
 * ieee80211_is_timing_measurement - check if frame is timing measurement response
 * @skb: the SKB to check
 * Return: whether or not the frame is a valid timing measurement response
 */
static inline bool ieee80211_is_timing_measurement(struct sk_buff *skb)
{}

/**
 * ieee80211_is_ftm - check if frame is FTM response
 * @skb: the SKB to check
 * Return: whether or not the frame is a valid FTM response action frame
 */
static inline bool ieee80211_is_ftm(struct sk_buff *skb)
{}

struct element {} __packed;

/* element iteration helpers */
#define for_each_element(_elem, _data, _datalen)

#define for_each_element_id(element, _id, data, datalen)

#define for_each_element_extid(element, extid, _data, _datalen)

#define for_each_subelement(sub, element)

#define for_each_subelement_id(sub, id, element)

#define for_each_subelement_extid(sub, extid, element)

/**
 * for_each_element_completed - determine if element parsing consumed all data
 * @element: element pointer after for_each_element() or friends
 * @data: same data pointer as passed to for_each_element() or friends
 * @datalen: same data length as passed to for_each_element() or friends
 * Return: %true if all elements were iterated, %false otherwise; see notes
 *
 * This function returns %true if all the data was parsed or considered
 * while walking the elements. Only use this if your for_each_element()
 * loop cannot be broken out of, otherwise it always returns %false.
 *
 * If some data was malformed, this returns %false since the last parsed
 * element will not fill the whole remaining data.
 */
static inline bool for_each_element_completed(const struct element *element,
					      const void *data, size_t datalen)
{}

/*
 * RSNX Capabilities:
 * bits 0-3: Field length (n-1)
 */
#define WLAN_RSNX_CAPA_PROTECTED_TWT
#define WLAN_RSNX_CAPA_SAE_H2E

/*
 * reduced neighbor report, based on Draft P802.11ax_D6.1,
 * section 9.4.2.170 and accepted contributions.
 */
#define IEEE80211_AP_INFO_TBTT_HDR_TYPE
#define IEEE80211_AP_INFO_TBTT_HDR_FILTERED
#define IEEE80211_AP_INFO_TBTT_HDR_COLOC
#define IEEE80211_AP_INFO_TBTT_HDR_COUNT
#define IEEE80211_TBTT_INFO_TYPE_TBTT
#define IEEE80211_TBTT_INFO_TYPE_MLD

#define IEEE80211_RNR_TBTT_PARAMS_OCT_RECOMMENDED
#define IEEE80211_RNR_TBTT_PARAMS_SAME_SSID
#define IEEE80211_RNR_TBTT_PARAMS_MULTI_BSSID
#define IEEE80211_RNR_TBTT_PARAMS_TRANSMITTED_BSSID
#define IEEE80211_RNR_TBTT_PARAMS_COLOC_ESS
#define IEEE80211_RNR_TBTT_PARAMS_PROBE_ACTIVE
#define IEEE80211_RNR_TBTT_PARAMS_COLOC_AP

#define IEEE80211_RNR_TBTT_PARAMS_PSD_NO_LIMIT
#define IEEE80211_RNR_TBTT_PARAMS_PSD_RESERVED

struct ieee80211_neighbor_ap_info {} __packed;

enum ieee80211_range_params_max_total_ltf {};

/*
 * reduced neighbor report, based on Draft P802.11be_D3.0,
 * section 9.4.2.170.2.
 */
struct ieee80211_rnr_mld_params {} __packed;

#define IEEE80211_RNR_MLD_PARAMS_LINK_ID
#define IEEE80211_RNR_MLD_PARAMS_BSS_CHANGE_COUNT
#define IEEE80211_RNR_MLD_PARAMS_UPDATES_INCLUDED
#define IEEE80211_RNR_MLD_PARAMS_DISABLED_LINK

/* Format of the TBTT information element if it has 7, 8 or 9 bytes */
struct ieee80211_tbtt_info_7_8_9 {} __packed;

/* Format of the TBTT information element if it has >= 11 bytes */
struct ieee80211_tbtt_info_ge_11 {} __packed;

/* multi-link device */
#define IEEE80211_MLD_MAX_NUM_LINKS

#define IEEE80211_ML_CONTROL_TYPE
#define IEEE80211_ML_CONTROL_TYPE_BASIC
#define IEEE80211_ML_CONTROL_TYPE_PREQ
#define IEEE80211_ML_CONTROL_TYPE_RECONF
#define IEEE80211_ML_CONTROL_TYPE_TDLS
#define IEEE80211_ML_CONTROL_TYPE_PRIO_ACCESS
#define IEEE80211_ML_CONTROL_PRESENCE_MASK

struct ieee80211_multi_link_elem {} __packed;

#define IEEE80211_MLC_BASIC_PRES_LINK_ID
#define IEEE80211_MLC_BASIC_PRES_BSS_PARAM_CH_CNT
#define IEEE80211_MLC_BASIC_PRES_MED_SYNC_DELAY
#define IEEE80211_MLC_BASIC_PRES_EML_CAPA
#define IEEE80211_MLC_BASIC_PRES_MLD_CAPA_OP
#define IEEE80211_MLC_BASIC_PRES_MLD_ID

#define IEEE80211_MED_SYNC_DELAY_DURATION
#define IEEE80211_MED_SYNC_DELAY_SYNC_OFDM_ED_THRESH
#define IEEE80211_MED_SYNC_DELAY_SYNC_MAX_NUM_TXOPS

/*
 * Described in P802.11be_D3.0
 * dot11MSDTimerDuration should default to 5484 (i.e. 171.375)
 * dot11MSDOFDMEDthreshold defaults to -72 (i.e. 0)
 * dot11MSDTXOPMAX defaults to 1
 */
#define IEEE80211_MED_SYNC_DELAY_DEFAULT

#define IEEE80211_EML_CAP_EMLSR_SUPP
#define IEEE80211_EML_CAP_EMLSR_PADDING_DELAY
#define IEEE80211_EML_CAP_EMLSR_PADDING_DELAY_0US
#define IEEE80211_EML_CAP_EMLSR_PADDING_DELAY_32US
#define IEEE80211_EML_CAP_EMLSR_PADDING_DELAY_64US
#define IEEE80211_EML_CAP_EMLSR_PADDING_DELAY_128US
#define IEEE80211_EML_CAP_EMLSR_PADDING_DELAY_256US
#define IEEE80211_EML_CAP_EMLSR_TRANSITION_DELAY
#define IEEE80211_EML_CAP_EMLSR_TRANSITION_DELAY_0US
#define IEEE80211_EML_CAP_EMLSR_TRANSITION_DELAY_16US
#define IEEE80211_EML_CAP_EMLSR_TRANSITION_DELAY_32US
#define IEEE80211_EML_CAP_EMLSR_TRANSITION_DELAY_64US
#define IEEE80211_EML_CAP_EMLSR_TRANSITION_DELAY_128US
#define IEEE80211_EML_CAP_EMLSR_TRANSITION_DELAY_256US
#define IEEE80211_EML_CAP_EMLMR_SUPPORT
#define IEEE80211_EML_CAP_EMLMR_DELAY
#define IEEE80211_EML_CAP_EMLMR_DELAY_0US
#define IEEE80211_EML_CAP_EMLMR_DELAY_32US
#define IEEE80211_EML_CAP_EMLMR_DELAY_64US
#define IEEE80211_EML_CAP_EMLMR_DELAY_128US
#define IEEE80211_EML_CAP_EMLMR_DELAY_256US
#define IEEE80211_EML_CAP_TRANSITION_TIMEOUT
#define IEEE80211_EML_CAP_TRANSITION_TIMEOUT_0
#define IEEE80211_EML_CAP_TRANSITION_TIMEOUT_128US
#define IEEE80211_EML_CAP_TRANSITION_TIMEOUT_256US
#define IEEE80211_EML_CAP_TRANSITION_TIMEOUT_512US
#define IEEE80211_EML_CAP_TRANSITION_TIMEOUT_1TU
#define IEEE80211_EML_CAP_TRANSITION_TIMEOUT_2TU
#define IEEE80211_EML_CAP_TRANSITION_TIMEOUT_4TU
#define IEEE80211_EML_CAP_TRANSITION_TIMEOUT_8TU
#define IEEE80211_EML_CAP_TRANSITION_TIMEOUT_16TU
#define IEEE80211_EML_CAP_TRANSITION_TIMEOUT_32TU
#define IEEE80211_EML_CAP_TRANSITION_TIMEOUT_64TU
#define IEEE80211_EML_CAP_TRANSITION_TIMEOUT_128TU

#define IEEE80211_MLD_CAP_OP_MAX_SIMUL_LINKS
#define IEEE80211_MLD_CAP_OP_SRS_SUPPORT
#define IEEE80211_MLD_CAP_OP_TID_TO_LINK_MAP_NEG_SUPP
#define IEEE80211_MLD_CAP_OP_TID_TO_LINK_MAP_NEG_NO_SUPP
#define IEEE80211_MLD_CAP_OP_TID_TO_LINK_MAP_NEG_SUPP_SAME
#define IEEE80211_MLD_CAP_OP_TID_TO_LINK_MAP_NEG_RESERVED
#define IEEE80211_MLD_CAP_OP_TID_TO_LINK_MAP_NEG_SUPP_DIFF
#define IEEE80211_MLD_CAP_OP_FREQ_SEP_TYPE_IND
#define IEEE80211_MLD_CAP_OP_AAR_SUPPORT

struct ieee80211_mle_basic_common_info {} __packed;

#define IEEE80211_MLC_PREQ_PRES_MLD_ID

struct ieee80211_mle_preq_common_info {} __packed;

#define IEEE80211_MLC_RECONF_PRES_MLD_MAC_ADDR

/* no fixed fields in RECONF */

struct ieee80211_mle_tdls_common_info {} __packed;

#define IEEE80211_MLC_PRIO_ACCESS_PRES_AP_MLD_MAC_ADDR

/* no fixed fields in PRIO_ACCESS */

/**
 * ieee80211_mle_common_size - check multi-link element common size
 * @data: multi-link element, must already be checked for size using
 *	ieee80211_mle_size_ok()
 * Return: the size of the multi-link element's "common" subfield 
 */
static inline u8 ieee80211_mle_common_size(const u8 *data)
{}

/**
 * ieee80211_mle_get_link_id - returns the link ID
 * @data: the basic multi link element
 * Return: the link ID, or -1 if not present
 *
 * The element is assumed to be of the correct type (BASIC) and big enough,
 * this must be checked using ieee80211_mle_type_ok().
 */
static inline int ieee80211_mle_get_link_id(const u8 *data)
{}

/**
 * ieee80211_mle_get_bss_param_ch_cnt - returns the BSS parameter change count
 * @data: pointer to the basic multi link element
 * Return: the BSS Parameter Change Count field value, or -1 if not present
 *
 * The element is assumed to be of the correct type (BASIC) and big enough,
 * this must be checked using ieee80211_mle_type_ok().
 */
static inline int
ieee80211_mle_get_bss_param_ch_cnt(const u8 *data)
{}

/**
 * ieee80211_mle_get_eml_med_sync_delay - returns the medium sync delay
 * @data: pointer to the multi-link element
 * Return: the medium synchronization delay field value from the multi-link
 *	element, or the default value (%IEEE80211_MED_SYNC_DELAY_DEFAULT)
 *	if not present
 *
 * The element is assumed to be of the correct type (BASIC) and big enough,
 * this must be checked using ieee80211_mle_type_ok().
 */
static inline u16 ieee80211_mle_get_eml_med_sync_delay(const u8 *data)
{}

/**
 * ieee80211_mle_get_eml_cap - returns the EML capability
 * @data: pointer to the multi-link element
 * Return: the EML capability field value from the multi-link element,
 *	or 0 if not present
 *
 * The element is assumed to be of the correct type (BASIC) and big enough,
 * this must be checked using ieee80211_mle_type_ok().
 */
static inline u16 ieee80211_mle_get_eml_cap(const u8 *data)
{}

/**
 * ieee80211_mle_get_mld_capa_op - returns the MLD capabilities and operations.
 * @data: pointer to the multi-link element
 * Return: the MLD capabilities and operations field value from the multi-link
 *	element, or 0 if not present
 *
 * The element is assumed to be of the correct type (BASIC) and big enough,
 * this must be checked using ieee80211_mle_type_ok().
 */
static inline u16 ieee80211_mle_get_mld_capa_op(const u8 *data)
{}

/**
 * ieee80211_mle_get_mld_id - returns the MLD ID
 * @data: pointer to the multi-link element
 * Return: The MLD ID in the given multi-link element, or 0 if not present
 *
 * The element is assumed to be of the correct type (BASIC) and big enough,
 * this must be checked using ieee80211_mle_type_ok().
 */
static inline u8 ieee80211_mle_get_mld_id(const u8 *data)
{}

/**
 * ieee80211_mle_size_ok - validate multi-link element size
 * @data: pointer to the element data
 * @len: length of the containing element
 * Return: whether or not the multi-link element size is OK
 */
static inline bool ieee80211_mle_size_ok(const u8 *data, size_t len)
{}

/**
 * ieee80211_mle_type_ok - validate multi-link element type and size
 * @data: pointer to the element data
 * @type: expected type of the element
 * @len: length of the containing element
 * Return: whether or not the multi-link element type matches and size is OK
 */
static inline bool ieee80211_mle_type_ok(const u8 *data, u8 type, size_t len)
{}

enum ieee80211_mle_subelems {};

#define IEEE80211_MLE_STA_CONTROL_LINK_ID
#define IEEE80211_MLE_STA_CONTROL_COMPLETE_PROFILE
#define IEEE80211_MLE_STA_CONTROL_STA_MAC_ADDR_PRESENT
#define IEEE80211_MLE_STA_CONTROL_BEACON_INT_PRESENT
#define IEEE80211_MLE_STA_CONTROL_TSF_OFFS_PRESENT
#define IEEE80211_MLE_STA_CONTROL_DTIM_INFO_PRESENT
#define IEEE80211_MLE_STA_CONTROL_NSTR_LINK_PAIR_PRESENT
#define IEEE80211_MLE_STA_CONTROL_NSTR_BITMAP_SIZE
#define IEEE80211_MLE_STA_CONTROL_BSS_PARAM_CHANGE_CNT_PRESENT

struct ieee80211_mle_per_sta_profile {} __packed;

/**
 * ieee80211_mle_basic_sta_prof_size_ok - validate basic multi-link element sta
 *	profile size
 * @data: pointer to the sub element data
 * @len: length of the containing sub element
 * Return: %true if the STA profile is large enough, %false otherwise
 */
static inline bool ieee80211_mle_basic_sta_prof_size_ok(const u8 *data,
							size_t len)
{}

/**
 * ieee80211_mle_basic_sta_prof_bss_param_ch_cnt - get per-STA profile BSS
 *	parameter change count
 * @prof: the per-STA profile, having been checked with
 *	ieee80211_mle_basic_sta_prof_size_ok() for the correct length
 *
 * Return: The BSS parameter change count value if present, 0 otherwise.
 */
static inline u8
ieee80211_mle_basic_sta_prof_bss_param_ch_cnt(const struct ieee80211_mle_per_sta_profile *prof)
{}

#define IEEE80211_MLE_STA_RECONF_CONTROL_LINK_ID
#define IEEE80211_MLE_STA_RECONF_CONTROL_COMPLETE_PROFILE
#define IEEE80211_MLE_STA_RECONF_CONTROL_STA_MAC_ADDR_PRESENT
#define IEEE80211_MLE_STA_RECONF_CONTROL_AP_REM_TIMER_PRESENT
#define IEEE80211_MLE_STA_RECONF_CONTROL_OPERATION_UPDATE_TYPE
#define IEEE80211_MLE_STA_RECONF_CONTROL_OPERATION_PARAMS_PRESENT

/**
 * ieee80211_mle_reconf_sta_prof_size_ok - validate reconfiguration multi-link
 *	element sta profile size.
 * @data: pointer to the sub element data
 * @len: length of the containing sub element
 * Return: %true if the STA profile is large enough, %false otherwise
 */
static inline bool ieee80211_mle_reconf_sta_prof_size_ok(const u8 *data,
							 size_t len)
{}

static inline bool ieee80211_tid_to_link_map_size_ok(const u8 *data, size_t len)
{}

#define for_each_mle_subelement(_elem, _data, _len)

#endif /* LINUX_IEEE80211_H */