Package: android.hardware.wifi@1.2

types

Properties

NanConfigRequestSupplemental

struct NanConfigRequestSupplemental {uint32_t discoveryBeaconIntervalMs; uint32_t numberOfSpatialStreamsInDiscovery; bool enableDiscoveryWindowEarlyTermination; bool enableRanging}

NAN configuration request parameters added in the 1.2 HAL.These are supplemental to previous versions.

Details
Members
discoveryBeaconIntervalMs
Specify the Discovery Beacon interval in ms.Specification only applicable if the device transmits Discovery Beacons(based on the Wi-Fi Aware protocol selection criteria). The value can be increased to reduce power consumption(on devices which would transmit Discovery Beacons), however - cluster synchronization time will likely increase.Values are:- A value of 0 indicates that the HAL sets the interval to a default(implementation specific)- A positive value
numberOfSpatialStreamsInDiscovery
The number of spatial streams to be used for transmitting NAN management frames(does NOT apply to data-path packets). A small value may reduce power consumption for small discovery packets.Values are:- A value of 0 indicates that the HAL sets the number to a default(implementation specific)- A positive value
enableDiscoveryWindowEarlyTermination
Controls whether the device may terminate listening on a Discovery Window(DW)earlier than the DW termination(16ms)if no information is received.Enabling the feature will result in lower power consumption, but may result in some missed messages and hence increased latency.
enableRanging
Controls whether NAN RTT(ranging)is permitted.Global flag on any NAN RTT operations are allowed.Controls ranging in the context of discovery as well as direct RTT.

NanDataPathChannelInfo

struct NanDataPathChannelInfo {WifiChannelInMhz channelFreq; WifiChannelWidthInMhz channelBandwidth; uint32_t numSpatialStreams}

NAN data path channel information provided to the framework.

Details
Members
channelFreq
Channel frequency in MHz.
channelBandwidth
Channel bandwidth in MHz.
numSpatialStreams
Number of spatial streams used in the channel.

NanDataPathConfirmInd

struct NanDataPathConfirmInd {@ V1_0; vec channelInfo}

NAN Data path confirmation Indication structure.Event indication is received on both initiator and responder side when negotiation for a data-path finish:on success or failure.

Details
Members
V1_0
Baseline information as defined in HAL 1.0.
channelInfo
The channel(s)on which the NDP is scheduled to operate.Updates to the operational channels are provided using the |eventDataPathScheduleUpdate| event.

NanDataPathScheduleUpdateInd

struct NanDataPathScheduleUpdateInd {MacAddress peerDiscoveryAddress; vec channelInfo; vec ndpInstanceIds}

NAN data path channel information update indication structure.Event indication is received by all NDP owners whenever the channels on which the NDP operates are updated.Note:multiple NDPs may share the same schedule, the indication specifies all NDPs to which it applies.

Details
Members
peerDiscoveryAddress
The discovery address(NMI)of the peer to which the NDP is connected.
channelInfo
The updated channel(s)information.
ndpInstanceIds
The list of NDPs to which this update applies.