Package: android.hardware.wifi@1.2

IWifiStaIface

interface IWifiStaIface extends @1.0::IWifiStaIface

Interface used to represent a single STA iface.

IWifiChip.createStaIface() may return a@1.2::IWifiStaIface when supported.

Methods

readApfPacketFilterData

readApfPacketFilterData ()
generates (WifiStatus status, vec<uint8_t> data)

Fetches a consistent snapshot of the entire APF program and working memory buffer and returns it to the host.The returned buffer contains both code and data.Its length must match the most recently returned |StaApfPacketFilterCapabilities.maxLength|.

While the snapshot is being fetched, the APF intepreter must not execute and all incoming packets must be passed to the host as if there was no APF program installed.

Must fail with |WifiStatusCode.ERROR_NOT_SUPPORTED| if |StaIfaceCapabilityMask.APF| is not set.

Details
Generates
status
WifiStatus of the operation.Possible status codes:|WifiStatusCode.SUCCESS|, |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |WifiStatusCode.ERROR_NOT_SUPPORTED|, |WifiStatusCode.ERROR_NOT_AVAILABLE|, |WifiStatusCode.ERROR_UNKNOWN|
data
The entire APF working memory buffer when status is |WifiStatusCode.SUCCESS|, empty otherwise.

setMacAddress

setMacAddress (MacAddress mac)
generates (WifiStatus status)

Changes the MAC address of the Sta Interface to the given MAC address.

Details
Parameters
mac
MAC address to change into.
Generates
status
WifiStatus of the operation.Possible status codes:|WifiStatusCode.SUCCESS|, |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |WifiStatusCode.ERROR_UNKNOWN|