Google is committed to advancing racial equity for Black communities. See how.

fuchsia.hardware.wlanphyimpl

PROTOCOLS

WlanphyImpl

Defined in fuchsia.hardware.wlanphyimpl/wlanphy-impl.fidl

ClearCountry

Set device to a world-safe country

Request

NameType

Response

NameType
s zx/status

CreateIface

Create a new interface with the specified role, returning the interface id. Some common error codes are: ZX_ERR_NO_RESOURCES: maximum number of interfaces have already been created ZX_ERR_NOT_SUPPORTED: device does not support the specified role

Request

NameType
req WlanphyImplCreateIfaceReq

Response

NameType
s zx/status
iface_id uint16

DestroyIface

Destroy the interface with the matching id.

Request

NameType
iface_id uint16

Response

NameType
s zx/status

GetCountry

Read currently configured country. Implementations are advised to read the country directly from the firmware, where possible.

Request

NameType

Response

NameType
s zx/status
country WlanphyCountry

Query

Get information about the capabilities of the physical device.

Request

NameType

Response

NameType
s zx/status
info WlanphyImplInfo

SetCountry

Set country with a WlanphyCountry

Request

NameType
country WlanphyCountry

Response

NameType
s zx/status

STRUCTS

WlanphyImplCreateIfaceReq

Defined in fuchsia.hardware.wlanphyimpl/wlanphy-impl.fidl

Parameters to create an interface.

NameTypeDescriptionDefault
role ddk.hw.wlan.wlaninfo/WlanInfoMacRole

The station role for this interface. A device may support multiple roles, but an interface is instantiated with a single role.

No default
sme_channel handle<channel>

A handle to the direct SME channel, if supported by the driver.

No default
has_init_mac_addr bool

Whether this iface creation request come with an initial MAC address.

No default
init_mac_addr uint8[6]

The initial mac address set from configuration layer.

No default

WlanphyImplInfo

Defined in fuchsia.hardware.wlanphyimpl/wlanphy-impl.fidl

Info about this WLAN PHY.

NameTypeDescriptionDefault
supported_mac_roles ddk.hw.wlan.wlaninfo/WlanInfoMacRole

Bitmask for MAC roles supported. For an interface, this will be a single value.

No default

UNIONS

WlanphyCountry

Defined in fuchsia.hardware.wlanphyimpl/wlanphy-impl.fidl

NameTypeDescription
alpha2 uint8[2]

ISO Alpha-2 takes two octet alphabet characters. This needs to be expanded if at least one WLAN device driver or firmware requires more than two octets.

val uint16

CONSTANTS

NameValueTypeDescription
WLANPHY_ALPHA2_LEN 2 uint8