Package: android.hardware.wifi@1.2

IWifiChip

interface IWifiChip extends @1.1::IWifiChip

Interface that represents a chip that must be configured as a single unit.The HAL/driver/firmware will be responsible for determining which phy is used to perform operations like NAN, RTT, etc.

Properties

ChipCapabilityMask

enum ChipCapabilityMask: @1.1::IWifiChip.ChipCapabilityMask

Capabilities exposed by this chip.

Details
Members
USE_BODY_HEAD_SAR = 1 << 11
Set/Reset Tx Power limits.

TxPowerScenario

enum TxPowerScenario: @1.1::IWifiChip.TxPowerScenario

List of preset wifi radio TX power levels for different scenarios.The actual power values(typically varies based on the channel, 802.11 connection type, number of MIMO streams, etc)for each scenario is defined by the OEM as a BDF file since it varies for each wifi chip vendor and device.

Details
Members
ON_HEAD_CELL_OFF = 1
ON_HEAD_CELL_ON = 2
ON_BODY_CELL_OFF = 3
ON_BODY_CELL_ON = 4

Methods

selectTxPowerScenario_1_2

selectTxPowerScenario_1_2 (TxPowerScenario scenario)
generates (WifiStatus status)

API to select one of the preset TX power scenarios.

The framework must invoke this method with the appropriate scenario to let the wifi chip change it's transmitting power levels.OEM's should define various power profiles for each of the scenarios above(defined in |TxPowerScenario|)in a vendor extension.

Details
Parameters
scenario
One of the preselected scenarios defined in |TxPowerScenario|.
Generates
status
WifiStatus of the operation.Possible status codes:|WifiStatusCode.SUCCESS|, |WifiStatusCode.ERROR_WIFI_CHIP_INVALID|, |WifiStatusCode.ERROR_NOT_SUPPORTED|, |WifiStatusCode.NOT_AVAILABLE|, |WifiStatusCode.UNKNOWN|

registerEventCallback_1_2

registerEventCallback_1_2 (IWifiChipEventCallback callback)
generates (WifiStatus status)

Requests notifications of significant events on this chip.Multiple calls to this must register multiple callbacks each of which must receive all events.

Details
Parameters
callback
An instance of the |IWifiChipEventCallback| HIDL interface object.
Generates
status
WifiStatus of the operation.Possible status codes:|WifiStatusCode.SUCCESS|, |WifiStatusCode.ERROR_WIFI_CHIP_INVALID|