Package: android.hardware.wifi@1.0

IWifiApIface

interface IWifiApIface extends IWifiIface

Interface used to represent a single AP iface.

Methods

setCountryCode

setCountryCode (int8_t[2] code)
generates (WifiStatus status)

Set country code for this iface.

Details
Parameters
code
2 byte country code(as defined in ISO 3166)to set.
Generates
status
Status of the operation.Possible status codes:|WifiStatusCode.SUCCESS|, |WifiStatusCode.FAILURE_UNKNOWN|, |WifiStatusCode.FAILURE_IFACE_INVALID|

getValidFrequenciesForBand

getValidFrequenciesForBand (WifiBand band)
generates (WifiStatus status, vec<WifiChannelInMhz> frequencies)

Used to query the list of valid frequencies(depending on country code set)for the provided band.

Details
Parameters
band
Band for which the frequency list is being generated.
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|
frequencies
vector of valid frequencies for the provided band.