Changeset View
Changeset View
Standalone View
Standalone View
sys/net80211/_ieee80211.h
| Show First 20 Lines • Show All 369 Lines • ▼ Show 20 Lines | |||||
| * than is feasible so we use a default of 128. This | * than is feasible so we use a default of 128. This | ||||
| * number may be overridden by the driver and/or by | * number may be overridden by the driver and/or by | ||||
| * user configuration but may not be less than IEEE80211_AID_MIN. | * user configuration but may not be less than IEEE80211_AID_MIN. | ||||
| */ | */ | ||||
| #define IEEE80211_AID_DEF 128 | #define IEEE80211_AID_DEF 128 | ||||
| #define IEEE80211_AID_MIN 16 | #define IEEE80211_AID_MIN 16 | ||||
| /* | /* | ||||
| * Definitions for (internal, basic) types. | |||||
| */ | |||||
| typedef int8_t net80211_rssi_t; | |||||
| /* | |||||
| * 802.11 rate set. | * 802.11 rate set. | ||||
| */ | */ | ||||
| #define IEEE80211_RATE_SIZE 8 /* 802.11 standard */ | #define IEEE80211_RATE_SIZE 8 /* 802.11 standard */ | ||||
| #define IEEE80211_RATE_MAXSIZE 15 /* max rates we'll handle */ | #define IEEE80211_RATE_MAXSIZE 15 /* max rates we'll handle */ | ||||
| struct ieee80211_rateset { | struct ieee80211_rateset { | ||||
| uint8_t rs_nrates; | uint8_t rs_nrates; | ||||
| uint8_t rs_rates[IEEE80211_RATE_MAXSIZE]; | uint8_t rs_rates[IEEE80211_RATE_MAXSIZE]; | ||||
| ▲ Show 20 Lines • Show All 227 Lines • ▼ Show 20 Lines | |||||
| struct ieee80211_rx_stats { | struct ieee80211_rx_stats { | ||||
| uint32_t r_flags; /* IEEE80211_R_* flags */ | uint32_t r_flags; /* IEEE80211_R_* flags */ | ||||
| uint32_t c_pktflags; /* IEEE80211_RX_F_* flags */ | uint32_t c_pktflags; /* IEEE80211_RX_F_* flags */ | ||||
| uint64_t c_rx_tsf; /* 32 or 64 bit TSF */ | uint64_t c_rx_tsf; /* 32 or 64 bit TSF */ | ||||
| /* All DWORD aligned */ | /* All DWORD aligned */ | ||||
| int16_t c_nf_ctl[IEEE80211_MAX_CHAINS]; /* per-chain NF */ | net80211_rssi_t c_nf_ctl[IEEE80211_MAX_CHAINS]; /* per-chain NF */ | ||||
| int16_t c_nf_ext[IEEE80211_MAX_CHAINS]; /* per-chain NF */ | net80211_rssi_t c_nf_ext[IEEE80211_MAX_CHAINS]; /* per-chain NF */ | ||||
| int16_t c_rssi_ctl[IEEE80211_MAX_CHAINS]; /* per-chain RSSI */ | net80211_rssi_t c_rssi_ctl[IEEE80211_MAX_CHAINS]; /* per-chain RSSI */ | ||||
| int16_t c_rssi_ext[IEEE80211_MAX_CHAINS]; /* per-chain RSSI */ | net80211_rssi_t c_rssi_ext[IEEE80211_MAX_CHAINS]; /* per-chain RSSI */ | ||||
| /* 32 bits */ | /* 32 bits */ | ||||
| int8_t c_nf; /* global NF */ | int8_t c_nf; /* global NF */ | ||||
| int8_t c_rssi; /* global RSSI */ | net80211_rssi_t c_rssi; /* global RSSI */ | ||||
| uint8_t c_chain; /* number of RX chains involved */ | uint8_t c_chain; /* number of RX chains involved */ | ||||
| uint8_t c_rate; /* legacy; 11n rate code; VHT MCS */ | uint8_t c_rate; /* legacy; 11n rate code; VHT MCS */ | ||||
| /* 32 bits */ | /* 32 bits */ | ||||
| uint16_t c_freq; /* Frequency, MHz */ | uint16_t c_freq; /* Frequency, MHz */ | ||||
| uint8_t c_ieee; /* Channel */ | uint8_t c_ieee; /* Channel */ | ||||
| uint8_t c_width; /* channel width, FW flags above */ | uint8_t c_width; /* channel width, FW flags above */ | ||||
| Show All 21 Lines | |||||