[net80211] Add VHT Transmit Power Envelope element - 802.11ac-2013 8.4.2.164

This .. seems inconsistently transmitted from various vendors.
This commit is contained in:
Adrian Chadd 2016-03-19 04:37:33 +00:00
parent 667060fe6c
commit e4d96dcfad
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297048

View File

@ -803,6 +803,39 @@ struct ieee80211_ie_vht_operation {
#define IEEE80211_VHTCAP_RX_ANTENNA_PATTERN 0x10000000
#define IEEE80211_VHTCAP_TX_ANTENNA_PATTERN 0x20000000
/*
* VHT Transmit Power Envelope element - 802.11ac-2013 8.4.2.164
*
* This defines the maximum transmit power for various bandwidths.
*/
/*
* Count is how many elements follow and what they're for:
*
* 0 - 20 MHz
* 1 - 20+40 MHz
* 2 - 20+40+80 MHz
* 3 - 20+40+80+(160, 80+80) MHz
*/
#define IEEE80211_VHT_TXPWRENV_INFO_COUNT_SHIFT 0
#define IEEE80211_VHT_TXPWRENV_INFO_COUNT_MASK 0x07
/*
* Unit is the tx power representation. It should be EIRP for now;
* other values are reserved.
*/
#define IEEE80211_VHT_TXPWRENV_UNIT_MASK 0x38
#define IEEE80211_VHT_TXPWRENV_UNIT_SHIFT 3
/* This value is within the unit mask/shift above */
#define IEEE80211_VHT_TXPWRENV_UNIT_EIRP 0
struct ieee80211_ie_vht_txpwrenv {
uint8_t ie;
uint8_t len;
uint8_t tx_info;
int8_t tx_elem[0]; /* TX power elements, 1/2 dB, signed */
};
/* VHT action codes */
#define WLAN_ACTION_VHT_COMPRESSED_BF 0
#define WLAN_ACTION_VHT_GROUPID_MGMT 1