# fuchsia.factory.wlan

<br />

Added: 7

## **PROTOCOLS**

## Iovar

*Defined in [fuchsia.factory.wlan/iovar.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.factory.wlan/iovar.fidl;l=13)*

Allows the factory testing tool to communicate to the firmware via the driver using
a pre-formatted command buffer to observe and/or control the WLAN hardware's behavior.

<br />

### Get

- request `iface_idx` interface index in the firmware
- request `cmd` pre-defined command index specified by the manufacturer
- request `request` additional data associated with the command

<!-- -->

- response `result` pre-formatted response data retrieved from firmware

<!-- -->

- error a status code indicating why the request could not be completed.

#### Request

| Name | Type |
|---|---|
| `iface_idx` | `int32` |
| `cmd` | `int32` |
| `request` | `vector<uint8>:16384` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.factory.wlan#Iovar_Get_Result` |

### Set

- request `iface_idx` interface index in the firmware
- request `cmd` pre-defined command index specified by the manufacturer
- request `request` additional data associated with the command

<!-- -->

- error a status code indicating why the request could not be completed.

#### Request

| Name | Type |
|---|---|
| `iface_idx` | `int32` |
| `cmd` | `int32` |
| `request` | `vector<uint8>:16384` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.factory.wlan#Iovar_Set_Result` |

## **STRUCTS**

### Iovar_Get_Response

*Defined in [fuchsia.factory.wlan/iovar.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.factory.wlan/iovar.fidl;l=24)*

| Field | Type | Description | Default |
|---|---|---|---|
| `result` | `vector<uint8>:16384` |   | No default |

### Iovar_Set_Response

*Defined in [fuchsia.factory.wlan/iovar.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.factory.wlan/iovar.fidl;l=36)*

\<EMPTY\>

## **UNIONS**

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

*Defined in [fuchsia.factory.wlan/iovar.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.factory.wlan/iovar.fidl;l=24)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.factory.wlan#Iovar_Get_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |

<br />

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

*Defined in [fuchsia.factory.wlan/iovar.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.factory.wlan/iovar.fidl;l=36)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.factory.wlan#Iovar_Set_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |

<br />

## **CONSTANTS**

| Name | Value | Type | Description |
|---|---|---|---|
| [MAX_BUFFER_SIZE](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.factory.wlan/iovar.fidl;l=9) | `16384` | `uint64` |   |