Package: android.hardware.wifi@1.0

IWifiNanIface

interface IWifiNanIface extends IWifiIface

Interface used to represent a single NAN(Neighbour Aware Network)iface.

References to "NAN Spec" are to the Wi-Fi Alliance "Wi-Fi Neighbor Awareness Networking(NAN)Technical Specification".

Methods

registerEventCallback

registerEventCallback (IWifiNanIfaceEventCallback callback)
generates (WifiStatus status)

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

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

getCapabilitiesRequest

getCapabilitiesRequest (CommandIdShort cmdId)
generates (WifiStatus status)

Get NAN capabilities.Asynchronous response is with |IWifiNanIfaceEventCallback.notifyCapabilitiesResponse|.

Details
Parameters
cmdId
command Id to use for this invocation.
Generates
status
WifiStatus of the operation.Possible status codes:|WifiStatusCode.SUCCESS|, |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |WifiStatusCode.ERROR_UNKNOWN|

enableRequest

enableRequest (CommandIdShort cmdId, NanEnableRequest msg)
generates (WifiStatus status)

Enable NAN:configures and activates NAN clustering(does not start a discovery session or set up data-interfaces or data-paths). Use the |IWifiNanIface.configureRequest| method to change the configuration of an already enabled NAN interface.Asynchronous response is with |IWifiNanIfaceEventCallback.notifyEnableResponse|.

Details
Parameters
cmdId
command Id to use for this invocation.
msg
Instance of |NanEnableRequest|.
Generates
status
WifiStatus of the operation.Possible status codes:|WifiStatusCode.SUCCESS|, |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |WifiStatusCode.ERROR_INVALID_ARGS|, |WifiStatusCode.ERROR_UNKNOWN|

configRequest

configRequest (CommandIdShort cmdId, NanConfigRequest msg)
generates (WifiStatus status)

Configure NAN:configures an existing NAN functionality(i.e.assumes |IWifiNanIface.enableRequest| already submitted and succeeded). Asynchronous response is with |IWifiNanIfaceEventCallback.notifyConfigResponse|.

Details
Parameters
cmdId
command Id to use for this invocation.
msg
Instance of |NanConfigRequest|.
Generates
status
WifiStatus of the operation.Possible status codes:|WifiStatusCode.SUCCESS|, |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |WifiStatusCode.ERROR_INVALID_ARGS|, |WifiStatusCode.ERROR_UNKNOWN|

disableRequest

disableRequest (CommandIdShort cmdId)
generates (WifiStatus status)

Disable NAN functionality.Asynchronous response is with |IWifiNanIfaceEventCallback.notifyDisableResponse|.

Details
Parameters
cmdId
command Id to use for this invocation.
Generates
status
WifiStatus of the operation.Possible status codes:|WifiStatusCode.SUCCESS|, |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |WifiStatusCode.ERROR_UNKNOWN|

startPublishRequest

startPublishRequest (CommandIdShort cmdId, NanPublishRequest msg)
generates (WifiStatus status)

Publish request to start advertising a discovery service.Asynchronous response is with |IWifiNanIfaceEventCallback.notifyStartPublishResponse|.

Details
Parameters
cmdId
command Id to use for this invocation.
msg
Instance of |NanPublishRequest|.
Generates
status
WifiStatus of the operation.Possible status codes:|WifiStatusCode.SUCCESS|, |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |WifiStatusCode.ERROR_INVALID_ARGS|, |WifiStatusCode.ERROR_UNKNOWN|

stopPublishRequest

stopPublishRequest (CommandIdShort cmdId, uint8_t sessionId)
generates (WifiStatus status)

Stop publishing a discovery service.Asynchronous response is with |IWifiNanIfaceEventCallback.notifyStopPublishResponse|.

Details
Parameters
cmdId
command Id to use for this invocation.
sessionId
ID of the publish discovery session to be stopped.
Generates
status
WifiStatus of the operation.Possible status codes:|WifiStatusCode.SUCCESS|, |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |WifiStatusCode.ERROR_UNKNOWN|

startSubscribeRequest

startSubscribeRequest (CommandIdShort cmdId, NanSubscribeRequest msg)
generates (WifiStatus status)

Subscribe request to start searching for a discovery service.Asynchronous response is with |IWifiNanIfaceEventCallback.notifyStartSubscribeResponse|.

Details
Parameters
cmdId
command Id to use for this invocation.
msg
Instance of |NanSubscribeRequest|.
Generates
status
WifiStatus of the operation.Possible status codes:|WifiStatusCode.SUCCESS|, |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |WifiStatusCode.ERROR_INVALID_ARGS|, |WifiStatusCode.ERROR_UNKNOWN|

stopSubscribeRequest

stopSubscribeRequest (CommandIdShort cmdId, uint8_t sessionId)
generates (WifiStatus status)

Stop subscribing to a discovery service.Asynchronous response is with |IWifiNanIfaceEventCallback.notifyStopSubscribeResponse|.

Details
Parameters
cmdId
command Id to use for this invocation.
sessionId
ID of the subscribe discovery session to be stopped.
Generates
status
WifiStatus of the operation.Possible status codes:|WifiStatusCode.SUCCESS|, |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |WifiStatusCode.ERROR_UNKNOWN|

transmitFollowupRequest

transmitFollowupRequest (CommandIdShort cmdId, NanTransmitFollowupRequest msg)
generates (WifiStatus status)

NAN transmit follow up message request.Asynchronous response is with |IWifiNanIfaceEventCallback.notifyTransmitFollowupResponse|.

Details
Parameters
cmdId
command Id to use for this invocation.
msg
Instance of |NanTransmitFollowupRequest|.
Generates
status
WifiStatus of the operation.Possible status codes:|WifiStatusCode.SUCCESS|, |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |WifiStatusCode.ERROR_INVALID_ARGS|, |WifiStatusCode.ERROR_UNKNOWN|

createDataInterfaceRequest

createDataInterfaceRequest (CommandIdShort cmdId, string ifaceName)
generates (WifiStatus status)

Create a NAN Data Interface.Asynchronous response is with |IWifiNanIfaceEventCallback.notifyCreateDataInterfaceResponse|.

Details
Parameters
cmdId
command Id to use for this invocation.
ifaceName
Generates
status
WifiStatus of the operation.Possible status codes:|WifiStatusCode.SUCCESS|, |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |WifiStatusCode.ERROR_UNKNOWN|

deleteDataInterfaceRequest

deleteDataInterfaceRequest (CommandIdShort cmdId, string ifaceName)
generates (WifiStatus status)

Delete a NAN Data Interface.Asynchronous response is with |IWifiNanIfaceEventCallback.notifyDeleteDataInterfaceResponse|.

Details
Parameters
cmdId
command Id to use for this invocation.
ifaceName
Generates
status
WifiStatus of the operation.Possible status codes:|WifiStatusCode.SUCCESS|, |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |WifiStatusCode.ERROR_UNKNOWN|

initiateDataPathRequest

initiateDataPathRequest (CommandIdShort cmdId, NanInitiateDataPathRequest msg)
generates (WifiStatus status)

Initiate a data-path(NDP)setup operation:Initiator.Asynchronous response is with |IWifiNanIfaceEventCallback.notifyInitiateDataPathResponse|.

Details
Parameters
cmdId
command Id to use for this invocation.
msg
Instance of |NanInitiateDataPathRequest|.
Generates
status
WifiStatus of the operation.Possible status codes:|WifiStatusCode.SUCCESS|, |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |WifiStatusCode.ERROR_INVALID_ARGS|, |WifiStatusCode.ERROR_UNKNOWN|

respondToDataPathIndicationRequest

respondToDataPathIndicationRequest (CommandIdShort cmdId, NanRespondToDataPathIndicationRequest msg)
generates (WifiStatus status)

Respond to a received data indication as part of a data-path(NDP)setup operation.An indication is received by the Responder from the Initiator.Asynchronous response is with |IWifiNanIfaceEventCallback.notifyRespondToDataPathIndicationResponse|.

Details
Parameters
cmdId
command Id to use for this invocation.
msg
Instance of |NanRespondToDataPathIndicationRequest|.
Generates
status
WifiStatus of the operation.Possible status codes:|WifiStatusCode.SUCCESS|, |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |WifiStatusCode.ERROR_INVALID_ARGS|, |WifiStatusCode.ERROR_UNKNOWN|

terminateDataPathRequest

terminateDataPathRequest (CommandIdShort cmdId, uint32_t ndpInstanceId)
generates (WifiStatus status)

Data-path(NDP)termination request:executed by either Initiator or Responder.Asynchronous response is with |IWifiNanIfaceEventCallback.notifyTerminateDataPathResponse|.

Details
Parameters
cmdId
command Id to use for this invocation.
ndpInstanceId
Data-path instance ID to be terminated.
Generates
status
WifiStatus of the operation.Possible status codes:|WifiStatusCode.SUCCESS|, |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |WifiStatusCode.ERROR_UNKNOWN|