Lines Matching +full:channel +full:- +full:spacing

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
5 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
125 /* 802.11-2020 Table 9-1-Valid type and subtype combinations */
144 /* 0000-0001 Reserved 0x00-0x10 */
145 #define IEEE80211_FC0_SUBTYPE_TRIGGER 0x20 /* Trigger, 80211ax-2021 */
148 #define IEEE80211_FC0_SUBTYPE_VHT_HE_NDP 0x50 /* VHT/HE NDP Announcement, 80211ac/ax-2013/2021 */
153 #define IEEE80211_FC0_SUBTYPE_PS_POLL 0xa0 /* PS-Poll */
157 #define IEEE80211_FC0_SUBTYPE_CF_END 0xe0 /* CF-End */
158 #define IEEE80211_FC0_SUBTYPE_CF_END_ACK 0xf0 /* 1111 Reserved - what was CF_END_ACK? */
161 /* 0001-0011 Reserved 0x10-0x30 */ /* Were: CF_ACK, CF_POLL, CF_ACPL */
163 /* 0101-0111 Reserved 0x50-0x70 */ /* Were: CFACK, CFPOLL, CF_ACK_CF_ACK */
164 #define IEEE80211_FC0_SUBTYPE_QOS_MASK_ANY 0x80 /* QoS mask - matching any subtypes 8..15 */
166 #define IEEE80211_FC0_SUBTYPE_QOS_DATA_CFACK 0x90 /* QoS Data +CF-Ack */
167 #define IEEE80211_FC0_SUBTYPE_QOS_DATA_CFPOLL 0xa0 /* QoS Data +CF-Poll */
168 #define IEEE80211_FC0_SUBTYPE_QOS_DATA_CFACKPOLL 0xb0 /* QoS Data +CF-Ack +CF-Poll */
171 #define IEEE80211_FC0_SUBTYPE_QOS_CFPOLL 0xe0 /* QoS CF-Poll */
172 #define IEEE80211_FC0_SUBTYPE_QOS_CFACKPOLL 0xf0 /* QoS CF-Ack +CF-Poll */
176 /* 0010-1111 Reserved 0x20-0xff */
178 /* 802.11-2020 Table 9-2-Control Frame Extension */
180 #define IEEE80211_CTL_EXT_SECTOR_ACK 0x00 /* Sector Ack, 80211ay-2021 */
181 #define IEEE80211_CTL_EXT_BA_SCHED 0x01 /* Block Ack Schedule, 80211ay-2021 */
189 #define IEEE80211_CTL_EXT_SSW_FBACK 0x09 /* SSW-Feedback */
190 #define IEEE80211_CTL_EXT_SSW_ACK 0x0a /* SSW-Ack */
191 #define IEEE80211_CTL_EXT_TDD_BF 0x0b /* TDD Beamforming, 80211ay-2021 */
192 /* 1100-1111 Reserved 0xc-0xf */
196 (((wh)->i_fc[0] & IEEE80211_FC0_VERSION_MASK) == (v))
200 (((((wh)->i_fc[0] & IEEE80211_FC0_VERSION_MASK) == (v))) && \
201 (((wh)->i_fc[0] & IEEE80211_FC0_TYPE_MASK) == (t)))
205 (((((wh)->i_fc[0] & IEEE80211_FC0_VERSION_MASK) == (v))) && \
206 (((wh)->i_fc[0] & IEEE80211_FC0_TYPE_MASK) == (t)) && \
207 (((wh)->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) == (st)))
266 ((wh)->i_fc[0] & IEEE80211_FC0_SUBTYPE_QOS_MASK_ANY))
288 #define IEEE80211_FC1_DIR_NODS 0x00 /* STA->STA */
289 #define IEEE80211_FC1_DIR_TODS 0x01 /* STA->AP */
290 #define IEEE80211_FC1_DIR_FROMDS 0x02 /* AP ->STA */
291 #define IEEE80211_FC1_DIR_DSTODS 0x03 /* AP ->AP */
294 (((wh)->i_fc[1] & IEEE80211_FC1_DIR_MASK) == IEEE80211_FC1_DIR_DSTODS)
304 ((wh)->i_fc[1] & IEEE80211_FC1_PROTECTED)
318 (((seq) + (incr)) & (IEEE80211_SEQ_RANGE-1))
321 (((a) + IEEE80211_SEQ_RANGE - (b)) & (IEEE80211_SEQ_RANGE-1))
325 (IEEE80211_SEQ_SUB(b, a+1) < IEEE80211_SEQ_BA_RANGE-1)
353 (((wh)->i_fc[0] & \
450 * WME U-APSD qos info field defines
466 ((1 << (3 - (_ac))) & ( \
492 /* 80211-2020 Table 9-51-Category values */
508 #define IEEE80211_ACTION_CAT_SELF_PROT 15 /* 9.6.15 Self-protected */
510 /* Reserved 17 (R)Wi-Fi Alliance */
523 #define IEEE80211_ACTION_CAT_HE 30 /* 9.6.31 HE, 80211ax-2021 */
524 #define IEEE80211_ACTION_CAT_PROTECTED_HE 31 /* 9.6.32 Protected HE, 80211ax-2021 */
525 /* Reserved 32-125 */
526 #define IEEE80211_ACTION_CAT_VENDOR_SPECIFIC_PROTECTED 126 /* 9.6.5 Vendor-specific Protected */
527 #define IEEE80211_ACTION_CAT_VENDOR 127 /* 9.6.5 Vendor-specific */
528 /* Error 128-255 */
531 /* 80211-2020 Table 9-346-Spectrum Management Action field values */
537 IEEE80211_ACTION_SM_CSA = 4, /* Channel Switch Announcement */
538 /* Reserved = 5-255 */
541 /* 80211-2020 Table 9-363-Radio Measurement Action field values */
549 /* Reserved = 6-255 */
555 /* HT - recommended transmission channel width */
564 /* HT - MIMO Power Save (NB: D2.04) */
575 /* bits 2-7 reserved */
589 #define IEEE80211_BAPS_AMSDU 0x0001 /* A-MSDU permitted */
607 /* BA - ADDBA request */
616 /* BA - ADDBA response */
625 /* BA - DELBA */
636 #define IEEE80211_BAR_MTID 0x0002 /* Multi-TID */
637 #define IEEE80211_BAR_NOACK 0x0001 /* No-Ack policy */
689 struct ieee80211_frame_cfend { /* NB: also CF-End+CF-Ack */
738 /* bits 14-15 are reserved */
794 #define IEEE80211_HTCAP_RXSTBC_2STREAM 0x0200 /* 1-2 spatial streams*/
795 #define IEEE80211_HTCAP_RXSTBC_3STREAM 0x0300 /* 1-3 spatial streams*/
797 #define IEEE80211_HTCAP_MAXAMSDU 0x0800 /* max A-MSDU length */
803 #define IEEE80211_HTCAP_LSIGTXOPPROT 0x8000 /* L-SIG TXOP prot */
811 #define IEEE80211_HTCAP_MAXRXAMPDU 0x03 /* max rx A-MPDU factor */
817 #define IEEE80211_HTCAP_MPDUDENSITY 0x1c /* min MPDU start spacing */
835 /* bits 3-7 reserved */
843 /* bits 12-15 reserved */
851 uint8_t hi_ctrlchannel; /* primary channel */
862 #define IEEE80211_HTINFO_2NDCHAN_NONE 0x00 /* no secondary/ext channel */
863 #define IEEE80211_HTINFO_2NDCHAN_ABOVE 0x01 /* above private channel */
865 #define IEEE80211_HTINFO_2NDCHAN_BELOW 0x03 /* below primary channel */
866 #define IEEE80211_HTINFO_TXWIDTH 0x04 /* tx channel width */
885 #define IEEE80211_HTINFO_NONGF_PRESENT 0x04 /* non-GF sta's present */
887 #define IEEE80211_HTINFO_NONHT_PRESENT 0x10 /* non-HT sta's present */
888 /* bits 5-15 reserved */
902 * 802.11ac definitions - 802.11ac-2013 .
906 * Maximum length of A-MPDU that the STA can RX in VHT.
907 * Length = 2 ^ (13 + max_ampdu_length_exp) - 1 (octets)
922 * + rx_mcs_map/tx_mcs_map: bitmap of per-stream supported MCS;
926 /* 802.11ac-2013, 8.4.2.160.3 Supported VHT-MCS and NSS Set field */
928 IEEE80211_VHT_MCS_SUPPORT_0_7 = 0, /* MCS0-7 */
929 IEEE80211_VHT_MCS_SUPPORT_0_8 = 1, /* MCS0-8 */
930 IEEE80211_VHT_MCS_SUPPORT_0_9 = 2, /* MCS0-9 */
934 /* 802.11ac-2013, 8.4.2.160.3 Supported VHT-MCS and NSS Set field */
942 /* 802.11ac-2013, 8.4.2.160.1 VHT Capabilities element structure */
948 /* 802.11ac-2013, Table 8-183x-VHT Operation Information subfields */
959 /* 802.11ac-2013 8.4.2.161 VHT Operation element */
962 uint8_t center_freq_seq0_idx; /* 20/40/80/160 - VHT chan1 */
963 uint8_t center_freq_seq1_idx; /* 80+80 - VHT chan2 */
964 uint16_t basic_mcs_set; /* Basic VHT-MCS and NSS Set */
1057 * VHT Transmit Power Envelope element - 802.11ac-2013 8.4.2.164
1064 * 0 - 20 MHz
1065 * 1 - 20+40 MHz
1066 * 2 - 20+40+80 MHz
1067 * 3 - 20+40+80+(160, 80+80) MHz
1097 * 802.11-2016 Table 9-77 (Element IDs).
1113 /* 17-31 reserved for challenge text extension */
1164 /* 121-124 MMCAOP not implemented yet */
1169 /* 128-129 reserved */
1173 /* 133-136 reserved */
1178 /* 802.11ac-2013, Table 8-54-Element IDs */
1196 uint8_t tim_bitmap[1]; /* variable-length bitmap */
1204 uint8_t schan; /* starting channel */
1212 (sizeof(struct ieee80211_country_ie) + 3*(IEEE80211_COUNTRY_MAX_BANDS-1))
1218 uint8_t chan_load; /* channel utilization */
1232 #define IEEE80211_EXTCAP_ECS (1ULL << 2) /* extended channel switching */
1258 #define IEEE80211_EXTCAP_TLDS_BUF_STA_SUPP (1ULL << 28) /* TDLS peer U-APSP buffer STA support */
1260 #define IEEE80211_EXTCAP_TLDS_CH_SW (1ULL << 30) /* TDLS channel switching */
1269 #define IEEE80211_EXTCAP_TLDS_CH_SW_PROHIB (1ULL << 39) /* TDLS channel switching prohibited */
1278 #define IEEE80211_EXTCAP_SSID (1ULL << 48) /* UTF-8 SSID */
1279 /* bits 49-n are reserved */
1299 * 802.11h Channel Switch Announcement (CSA).
1304 uint8_t csa_mode; /* Channel Switch Mode */
1305 uint8_t csa_newchan; /* New Channel Number */
1306 uint8_t csa_count; /* Channel Switch Count */
1338 #define BCM_OUI_HTCAP 51 /* pre-draft HTCAP ie */
1339 #define BCM_OUI_HTINFO 52 /* pre-draft HTINFO ie */
1348 #define WPA_CSE_CCMP 0x04 /* CCMP 128-bit */
1357 /* 802.11-2016 Table 9-131 - Cipher Suite Selectors */
1365 #define RSN_CSE_WRAP 3 /* Reserved in the 802.11-2016 */
1369 /* 7 - "Group addressed traffic not allowed" */
1377 /* 802.11-2016 Table 9-133 - AKM suite selectors */
1382 #define RSN_ASE_FT_8021X 3 /* SHA-256 */
1383 #define RSN_ASE_FT_PSK 4 /* SHA-256 */
1386 #define RSN_ASE_8021X_TDLS 7 /* SHA-256 */
1387 #define RSN_ASE_SAE_UNSPEC 8 /* SHA-256 */
1388 #define RSN_ASE_FT_SAE 9 /* SHA-256 */
1389 #define RSN_ASE_AP_PEERKEY 10 /* SHA-256 */
1394 /* 802.11-2016 Figure 9-257 - RSN Capabilities (2 byte field) */
1408 /* 802.11-2016 Table 9-134 PTKSA/GTKSA/STKSA replay counters usage */
1434 * octet chal.text[253] NB: 1-253 bytes
1547 #define IEEE80211_WEP_CRCLEN 4 /* CRC-32 */
1554 * 802.11i defines an extended IV for use with non-WEP ciphers.
1558 * CCMP header rather than IV+extended-IV.
1568 * IEEE80211_MAX_LEN - WEP overhead - CRC -
1569 * QoS overhead - RSN/WPA overhead
1571 * mtu is Ethernet-compatible; it's set by ether_ifattach.
1589 * (see _ieee80211.h for implementation-specific settings).
1597 * the 802.11 spec as 512; we treat it as implementation-dependent
1606 * default as implementation-dependent so define it elsewhere.
1613 * As above, we treat default as implementation-dependent so