<br />

Added: HEAD

## **STRUCTS**

### AntennaId

*Defined in [fuchsia.wlan.stats/wlan_stats.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=39)*

Identifier for antenna.

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `freq` | `https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#AntennaFreq` |   | No default |
| `index` | `uint8` | 0 indexed antenna number of freq. | No default |

### HistBucket

*Defined in [fuchsia.wlan.stats/wlan_stats.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=10)*

Histogram bucket.

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `bucket_index` | `uint16` | Index into a lookup table for each histogram type. The lookup table for each type is described below in the comments for each type. | No default |
| `num_samples` | `uint64` | The count of samples in the bucket. | No default |

### NoiseFloorHistogram

*Defined in [fuchsia.wlan.stats/wlan_stats.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=53)*

Histogram for noise floor samples.

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `hist_scope` | `https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#HistScope` |   | No default |
| `antenna_id` | `https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#AntennaId?` | If hist_scope is PER_ANTENNA, antenna_id must be provided. | No default |
| `noise_floor_samples` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#HistBucket>:255` | Sparse histogram of noise floor of current channel in dBm. Each sample's bucket_index is an index into this list of dBm values: \[-255, -254, ... -1\]. For example, if noise_floor_samples contains a HistBucket with bucket_index = 165 and num_samples = 50, that means there were 50 frames counted that had a noise floor of -90 dBm. | No default |
| `invalid_samples` | `uint64` | Count of invalid samples encountered, if any. | No default |

### RssiHistogram

*Defined in [fuchsia.wlan.stats/wlan_stats.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=101)*

Histogram for received signal strength indicator (RSSI).

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `hist_scope` | `https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#HistScope` |   | No default |
| `antenna_id` | `https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#AntennaId?` | If hist_scope is PER_ANTENNA, antenna_id must be provided. | No default |
| `rssi_samples` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#HistBucket>:255` | Sparse histogram of RSSI of AP in dBm. Each sample's bucket_index is an index into this list of dBm values: \[-255, -254, ... -1\]. For example, if rssi_samples contains a HistBucket with bucket_index = 225 and num_samples = 50, that means there were 50 frames counted that had a signal level of -30 dBm. | No default |
| `invalid_samples` | `uint64` | Count of invalid samples encountered, if any. | No default |

### RxRateIndexHistogram

*Defined in [fuchsia.wlan.stats/wlan_stats.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=67)*

Histogram for received data rate.

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `hist_scope` | `https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#HistScope` |   | No default |
| `antenna_id` | `https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#AntennaId?` | If hist_scope is PER_ANTENNA, antenna_id must be provided. | No default |
| `rx_rate_index_samples` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#HistBucket>:196` | Sparse histogram of count of received frames for each rate. Each sample's bucket_index is an index into this lookup table: 0-3: B-MCS 0-3 4-11: G-MCS 0-7 12-27: N-MCS 0-15 (BW20) 28-43: N-MCS 0-15 (BW40) 44-59: N-MCS 0-15 (BW20:SGI) 60-75: N-MCS 0-15 (BW40:SGI) 76-85: AC-MCS 0-9 (VHT:BW20:NSS1) 86-95: AC-MCS 0-9 (VHT:BW20:NSS2) 96-105: AC-MCS 0-9 (VHT:BW40:NSS1) 106-115: AC-MCS 0-9 (VHT:BW40:NSS2) 116-125: AC-MCS 0-9 (VHT:BW80:NSS1) 126-135: AC-MCS 0-9 (VHT:BW80:NSS2) 136-145: AC-MCS 0-9 (VHT:BW20:NSS1:SGI) 146-155: AC-MCS 0-9 (VHT:BW20:NSS2:SGI) 156-165: AC-MCS 0-9 (VHT:BW40:NSS1:SGI) 166-175: AC-MCS 0-9 (VHT:BW40:NSS2:SGI) 176-185: AC-MCS 0-9 (VHT:BW80:NSS1:SGI) 186-195: AC-MCS 0-9 (VHT:BW80:NSS2:SGI) For example, if rx_rate_index_samples contains a HistBucket with bucket_index = 75 and num_samples = 50, that means there were 50 frames counted that had a rate corresponding to N-MCS 15 (BW40:SGI). | No default |
| `invalid_samples` | `uint64` | Count of invalid samples encountered, if any. | No default |

### SnrHistogram

*Defined in [fuchsia.wlan.stats/wlan_stats.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=115)*

Histogram for signal to noise ratio (SNR).

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `hist_scope` | `https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#HistScope` |   | No default |
| `antenna_id` | `https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#AntennaId?` | If hist_scope is PER_ANTENNA, antenna_id must be provided. | No default |
| `snr_samples` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#HistBucket>:256` | Sparse histogram of signal to noise ratio in dB. Each sample's bucket_index is an index into this list of dB values: \[0, 1, ... 255\]. For example, if snr_samples contains a HistBucket with value = 60 and num_samples = 50, that means there were 50 frames counted that had a SNR of 60 dB. | No default |
| `invalid_samples` | `uint64` | Count of invalid samples encountered, if any. | No default |

### UnnamedCounter

*Defined in [fuchsia.wlan.stats/wlan_stats.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=133)*

| Field | Type | Description | Default |
|---|---|---|---|
| `id` | `uint16` |   | No default |
| `count` | `uint64` |   | No default |

### UnnamedGauge

*Defined in [fuchsia.wlan.stats/wlan_stats.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=138)*

| Field | Type | Description | Default |
|---|---|---|---|
| `id` | `uint16` |   | No default |
| `value` | `int64` |   | No default |

## **ENUMS**

### AntennaFreq [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint8`

*Defined in [fuchsia.wlan.stats/wlan_stats.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=31)*

Antenna frequency.

<br />

| Name | Value | Description |
|---|---|---|
| ### ANTENNA_2_G | `1` | 2.4 GHz. |
| ### ANTENNA_5_G | `2` | 5 GHz. |

### GaugeStatistic [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint8`

*Defined in [fuchsia.wlan.stats/wlan_stats.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=193)*

Statistics supported by the Gauge type.

<br />

| Name | Value | Description |
|---|---|---|
| ### MIN | `1` |   |
| ### MAX | `2` |   |
| ### SUM | `3` |   |
| ### LAST | `4` |   |
| ### MEAN | `5` |   |

### HistScope [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint8`

*Defined in [fuchsia.wlan.stats/wlan_stats.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=47)*

The scope of the histogram, e.g. if the histogram contains data for the entire station, or has
data for just a single antenna.

<br />

| Name | Value | Description |
|---|---|---|
| ### STATION | `1` |   |
| ### PER_ANTENNA | `2` |   |

## **TABLES**

### ConnectionSignalReport

*Defined in [fuchsia.wlan.stats/wlan_stats.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=239)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `primary` | `https://fuchsia.dev/reference/fuchsia.wlan.ieee80211//https://fuchsia.dev/reference/fuchsia.wlan.ieee80211#ChannelNumber` |   |
| ### 2 | `tx_rate_500kbps` | `uint32` |   |
| ### 3 | `rssi_dbm` | `int8` |   |
| ### 4 | `snr_db` | `int8` |   |
| ### 5 | `bandwidth` | `https://fuchsia.dev/reference/fuchsia.wlan.ieee80211//https://fuchsia.dev/reference/fuchsia.wlan.ieee80211#ChannelBandwidth` |   |
| ### 6 | `vht_secondary_80_channel` | `https://fuchsia.dev/reference/fuchsia.wlan.ieee80211//https://fuchsia.dev/reference/fuchsia.wlan.ieee80211#ChannelNumber` |   |
| ### 7 | `rx_rate_500kbps` | `uint32` | Rx rate in units of 500 kbit/s, which are the units used for Supported Rates in IEEE Std 802.11-2024 9.4.2.3. Optional. If not set, the Rx rate is unknown (e.g. idle or unsupported). |

### ConnectionStats

*Defined in [fuchsia.wlan.stats/wlan_stats.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=164)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `connection_id` | `uint8` | ID of the current connection. Used by WLAN telemetry to determine whether the current counters and the previous counters belong to the same connection. If the counters belong to two different connections, telemetry will not diff between them as it assumes that the driver/firmware has reset the counter in between. The driver should set a new connection ID after a successful connection, reconnection, or roaming attempt, as it's expected that the connection- related counters would reset on a new connection. |
| ### 2 | `driver_specific_counters` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#UnnamedCounter>:127` |   |
| ### 3 | `driver_specific_gauges` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#UnnamedGauge>:127` |   |
| ### 4 | `rx_unicast_total` | `uint64` |   |
| ### 5 | `rx_unicast_drop` | `uint64` |   |
| ### 6 | `rx_multicast` | `uint64` |   |
| ### 7 | `tx_total` | `uint64` |   |
| ### 8 | `tx_drop` | `uint64` |   |
| ### 9 | `wme` | `https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#WmePacketStats` |   |

### IfaceHistogramStats

*Defined in [fuchsia.wlan.stats/wlan_stats.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=222)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `noise_floor_histograms` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#NoiseFloorHistogram>:8` | Noise floor histogram(s). |
| ### 2 | `rssi_histograms` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#RssiHistogram>:8` | Received signal strength indicator (RSSI) histogram(s). |
| ### 3 | `rx_rate_index_histograms` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#RxRateIndexHistogram>:8` | Received rate index histogram(s). |
| ### 4 | `snr_histograms` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#SnrHistogram>:8` | Signal to noise ratio (SNR) histogram(s). |

### IfaceStats

*Defined in [fuchsia.wlan.stats/wlan_stats.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=143)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `connection_stats` | `https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#ConnectionStats` | Stats related to the current connection. May not be set if the client is not connected. |
| ### 2 | `driver_specific_counters` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#UnnamedCounter>:127` |   |
| ### 3 | `driver_specific_gauges` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#UnnamedGauge>:127` |   |

### InspectCounterConfig

*Defined in [fuchsia.wlan.stats/wlan_stats.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=187)*

Config to associate a driver-specific counter ID with a counter name that is
to be used in Inspect.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `counter_id` | `uint16` |   |
| ### 2 | `counter_name` | `string:127` |   |

### InspectGaugeConfig

*Defined in [fuchsia.wlan.stats/wlan_stats.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=203)*

Config to associate a driver-specific gauge ID with a gauge name that is
to be used in Inspect.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `gauge_id` | `uint16` |   |
| ### 2 | `gauge_name` | `string:127` |   |
| ### 3 | `statistics` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#GaugeStatistic>:5` | An Inspect time series would be created per statistic. |

### PacketStats

*Defined in [fuchsia.wlan.stats/wlan_stats.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=150)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `rx` | `uint64` |   |
| ### 2 | `tx` | `uint64` |   |
| ### 3 | `tx_drop` | `uint64` |   |
| ### 4 | `tx_retries` | `uint64` |   |

### SignalReport

*Defined in [fuchsia.wlan.stats/wlan_stats.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=233)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `connection_signal_report` | `https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#ConnectionSignalReport` | Signal report related to the current connection. May not be set if the client is not connected. |

### TelemetrySupport

*Defined in [fuchsia.wlan.stats/wlan_stats.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=210)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `inspect_counter_configs` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#InspectCounterConfig>:127` | Specifies counters that should be logged into Inspect time series |
| ### 2 | `inspect_gauge_configs` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#InspectGaugeConfig>:127` | Specifies gauges that should be logged into Inspect time series |

### WmePacketStats

*Defined in [fuchsia.wlan.stats/wlan_stats.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=157)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `be` | `https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#PacketStats` |   |
| ### 2 | `bk` | `https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#PacketStats` |   |
| ### 3 | `vi` | `https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#PacketStats` |   |
| ### 4 | `vo` | `https://fuchsia.dev/reference/fidl/fuchsia.wlan.stats#PacketStats` |   |

## **CONSTANTS**

| Name | Value | Type | Description |
|---|---|---|---|
| [GAUGE_STATISTIC_MAX_LENGTH](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=131) | `5` | `uint8` |   |
| [MAX_DRIVER_SPECIFIC_COUNTERS](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=128) | `127` | `uint32` |   |
| [MAX_DRIVER_SPECIFIC_GAUGES](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=129) | `127` | `uint32` |   |
| [MAX_HISTOGRAMS_PER_TYPE](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=220) | `8` | `uint8` | For each histogram type (e.g. RSSI), there can be multiple histograms up to this limit. For example, an interface might have 1 histogram for station-wide RSSI, but also 1 for each of the antennas used by the interface. |
| [MAX_NOISE_FLOOR_SAMPLES](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=22) | `255` | `uint8` | All histograms have a fixed number of buckets. To save space, each histogram type uses a vector to hold only non-empty buckets (a sparse histogram), with these constants as the max size of each vector. Noise floor values range from -255 to -1 dBm. |
| [MAX_RSSI_SAMPLES](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=26) | `255` | `uint8` | RSSI values range from -255 to -1 dBm. |
| [MAX_RX_RATE_INDEX_SAMPLES](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=24) | `196` | `uint8` | Size of RxRateIndexHistogram lookup table (see comments in RxRateIndexHistogram). |
| [MAX_SNR_SAMPLES](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=28) | `256` | `uint16` | SNR values range from 0 to 255 dB. |
| [STAT_NAME_MAX_LENGTH](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.wlan.stats/wlan_stats.fidl;l=130) | `127` | `uint8` |   |