Package: android.hardware.wifi@1.0

IWifiNanIfaceEventCallback

interface IWifiNanIfaceEventCallback

NAN Response and Asynchronous Event Callbacks.

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

Methods

notifyCapabilitiesResponse

oneway notifyCapabilitiesResponse (CommandIdShort id, WifiNanStatus status, NanCapabilities capabilities)

Asynchronous callback invoked in response to a capability request |IWifiNanIface.getCapabilitiesRequest|.

Details
RPC mode
oneway
Parameters
id
command Id corresponding to the original request.
status
WifiNanStatus of the operation.Possible status codes are:|NanStatusType.SUCCESS|
capabilities
Capability data.

notifyEnableResponse

oneway notifyEnableResponse (CommandIdShort id, WifiNanStatus status)

Asynchronous callback invoked in response to an enable request |IWifiNanIface.enableRequest|.

Details
RPC mode
oneway
Parameters
id
command Id corresponding to the original request.
status
WifiNanStatus of the operation.Possible status codes are:|NanStatusType.SUCCESS| |NanStatusType.ALREADY_ENABLED| |NanStatusType.INVALID_ARGS| |NanStatusType.INTERNAL_FAILURE| |NanStatusType.PROTOCOL_FAILURE| |NanStatusType.NAN_NOT_ALLOWED|

notifyConfigResponse

oneway notifyConfigResponse (CommandIdShort id, WifiNanStatus status)

Asynchronous callback invoked in response to a config request |IWifiNanIface.configRequest|.

Details
RPC mode
oneway
Parameters
id
command Id corresponding to the original request.
status
WifiNanStatus of the operation.Possible status codes are:|NanStatusType.SUCCESS| |NanStatusType.INVALID_ARGS| |NanStatusType.INTERNAL_FAILURE| |NanStatusType.PROTOCOL_FAILURE|

notifyDisableResponse

oneway notifyDisableResponse (CommandIdShort id, WifiNanStatus status)

Asynchronous callback invoked in response to a disable request |IWifiNanIface.disableRequest|.

Details
RPC mode
oneway
Parameters
id
command Id corresponding to the original request.
status
WifiNanStatus of the operation.Possible status codes are:|NanStatusType.SUCCESS| |NanStatusType.PROTOCOL_FAILURE|

notifyStartPublishResponse

oneway notifyStartPublishResponse (CommandIdShort id, WifiNanStatus status, uint8_t sessionId)

Asynchronous callback invoked to notify the status of the start publish request |IWifiNanIface.startPublishRequest|.

Details
RPC mode
oneway
Parameters
id
command Id corresponding to the original request.
status
WifiNanStatus of the operation.Possible status codes are:|NanStatusType.SUCCESS| |NanStatusType.INVALID_ARGS| |NanStatusType.PROTOCOL_FAILURE| |NanStatusType.NO_RESOURCES_AVAILABLE| |NanStatusType.INVALID_SESSION_ID|
sessionId
ID of the new publish session(if successfully created).

notifyStopPublishResponse

oneway notifyStopPublishResponse (CommandIdShort id, WifiNanStatus status)

Asynchronous callback invoked in response to a stop publish request |IWifiNanIface.stopPublishRequest|.

Details
RPC mode
oneway
Parameters
id
command Id corresponding to the original request.
status
WifiNanStatus of the operation.Possible status codes are:|NanStatusType.SUCCESS| |NanStatusType.INVALID_SESSION_ID| |NanStatusType.INTERNAL_FAILURE|

notifyStartSubscribeResponse

oneway notifyStartSubscribeResponse (CommandIdShort id, WifiNanStatus status, uint8_t sessionId)

Asynchronous callback invoked to notify the status of the start subscribe request |IWifiNanIface.startSubscribeRequest|.

Details
RPC mode
oneway
Parameters
id
command Id corresponding to the original request.
status
WifiNanStatus of the operation.Possible status codes are:|NanStatusType.SUCCESS| |NanStatusType.INVALID_ARGS| |NanStatusType.PROTOCOL_FAILURE| |NanStatusType.NO_RESOURCES_AVAILABLE| |NanStatusType.INVALID_SESSION_ID|
sessionId
ID of the new subscribe session(if successfully created).

notifyStopSubscribeResponse

oneway notifyStopSubscribeResponse (CommandIdShort id, WifiNanStatus status)

Asynchronous callback invoked in response to a stop subscribe request |IWifiNanIface.stopSubscribeRequest|.

Details
RPC mode
oneway
Parameters
id
command Id corresponding to the original request.
status
WifiNanStatus of the operation.Possible status codes are:|NanStatusType.SUCCESS| |NanStatusType.INVALID_SESSION_ID| |NanStatusType.INTERNAL_FAILURE|

notifyTransmitFollowupResponse

oneway notifyTransmitFollowupResponse (CommandIdShort id, WifiNanStatus status)

Asynchronous callback invoked in response to a transmit followup request |IWifiNanIface.transmitFollowupRequest|.

Details
RPC mode
oneway
Parameters
id
command Id corresponding to the original request.
status
WifiNanStatus of the operation.Possible status codes are:|NanStatusType.SUCCESS| |NanStatusType.INVALID_ARGS| |NanStatusType.INTERNAL_FAILURE| |NanStatusType.INVALID_SESSION_ID| |NanStatusType.INVALID_PEER_ID| |NanStatusType.FOLLOWUP_TX_QUEUE_FULL|

notifyCreateDataInterfaceResponse

oneway notifyCreateDataInterfaceResponse (CommandIdShort id, WifiNanStatus status)

Asynchronous callback invoked in response to a create data interface request |IWifiNanIface.createDataInterfaceRequest|.

Details
RPC mode
oneway
Parameters
id
command Id corresponding to the original request.
status
WifiNanStatus of the operation.Possible status codes are:|NanStatusType.SUCCESS| |NanStatusType.INVALID_ARGS| |NanStatusType.INTERNAL_FAILURE|

notifyDeleteDataInterfaceResponse

oneway notifyDeleteDataInterfaceResponse (CommandIdShort id, WifiNanStatus status)

Asynchronous callback invoked in response to a delete data interface request |IWifiNanIface.deleteDataInterfaceRequest|.

Details
RPC mode
oneway
Parameters
id
command Id corresponding to the original request.
status
WifiNanStatus of the operation.Possible status codes are:|NanStatusType.SUCCESS| |NanStatusType.INVALID_ARGS| |NanStatusType.INTERNAL_FAILURE|

notifyInitiateDataPathResponse

oneway notifyInitiateDataPathResponse (CommandIdShort id, WifiNanStatus status, uint32_t ndpInstanceId)

Asynchronous callback invoked in response to an initiate data path request |IWifiNanIface.initiateDataPathRequest|.

Details
RPC mode
oneway
Parameters
id
command Id corresponding to the original request.
status
WifiNanStatus of the operation.Possible status codes are:|NanStatusType.SUCCESS| |NanStatusType.INVALID_ARGS| |NanStatusType.INTERNAL_FAILURE| |NanStatusType.PROTOCOL_FAILURE| |NanStatusType.INVALID_PEER_ID|
ndpInstanceId
ID of the new data path being negotiated(on successful status).

notifyRespondToDataPathIndicationResponse

oneway notifyRespondToDataPathIndicationResponse (CommandIdShort id, WifiNanStatus status)

Asynchronous callback invoked in response to a respond to data path indication request |IWifiNanIface.respondToDataPathIndicationRequest|.

Details
RPC mode
oneway
Parameters
id
command Id corresponding to the original request.
status
WifiNanStatus of the operation.Possible status codes are:|NanStatusType.SUCCESS| |NanStatusType.INVALID_ARGS| |NanStatusType.INTERNAL_FAILURE| |NanStatusType.PROTOCOL_FAILURE| |NanStatusType.INVALID_NDP_ID|

notifyTerminateDataPathResponse

oneway notifyTerminateDataPathResponse (CommandIdShort id, WifiNanStatus status)

Asynchronous callback invoked in response to a terminate data path request |IWifiNanIface.terminateDataPathRequest|.

Details
RPC mode
oneway
Parameters
id
command Id corresponding to the original request.
status
WifiNanStatus of the operation.Possible status codes are:|NanStatusType.SUCCESS| |NanStatusType.INVALID_ARGS| |NanStatusType.INTERNAL_FAILURE| |NanStatusType.PROTOCOL_FAILURE| |NanStatusType.INVALID_NDP_ID|

eventClusterEvent

oneway eventClusterEvent (NanClusterEventInd event)

Asynchronous callback indicating that a cluster event has been received.

Details
RPC mode
oneway
Parameters
event
: NanClusterEventInd containing event details.

eventDisabled

oneway eventDisabled (WifiNanStatus status)

Asynchronous callback indicating that a NAN has been disabled.

Details
RPC mode
oneway
Parameters
status
: WifiNanStatus describing the reason for the disable event.Possible status codes are:|NanStatusType.SUCCESS| |NanStatusType.UNSUPPORTED_CONCURRENCY_NAN_DISABLED|

eventPublishTerminated

oneway eventPublishTerminated (uint8_t sessionId, WifiNanStatus status)

Asynchronous callback indicating that an active publish session has terminated.

Details
RPC mode
oneway
Parameters
sessionId
: The discovery session ID of the terminated session.
status
: WifiNanStatus describing the reason for the session termination.Possible status codes are:|NanStatusType.SUCCESS|

eventSubscribeTerminated

oneway eventSubscribeTerminated (uint8_t sessionId, WifiNanStatus status)

Asynchronous callback indicating that an active subscribe session has terminated.

Details
RPC mode
oneway
Parameters
sessionId
: The discovery session ID of the terminated session.
status
: WifiNanStatus describing the reason for the session termination.Possible status codes are:|NanStatusType.SUCCESS|

eventMatch

oneway eventMatch (NanMatchInd event)

Asynchronous callback indicating that a match has occurred:i.e.a service has been discovered.

Details
RPC mode
oneway
Parameters
event
: NanMatchInd containing event details.

eventMatchExpired

oneway eventMatchExpired (uint8_t discoverySessionId, uint32_t peerId)

Asynchronous callback indicating that a previously discovered match(service)has expired.

Details
RPC mode
oneway
Parameters
discoverySessionId
: The discovery session ID of the expired match.
peerId
: The peer ID of the expired match.

eventFollowupReceived

oneway eventFollowupReceived (NanFollowupReceivedInd event)

Asynchronous callback indicating that a followup message has been received from a peer.

Details
RPC mode
oneway
Parameters
event
: NanFollowupReceivedInd containing event details.

eventTransmitFollowup

oneway eventTransmitFollowup (CommandIdShort id, WifiNanStatus status)

Asynchronous callback providing status on a completed followup message transmit operation.

Details
RPC mode
oneway
Parameters
id
command Id corresponding to the original |transmitFollowupRequest| request.
status
WifiNanStatus of the operation.Possible status codes are:|NanStatusType.SUCCESS| |NanStatusType.NO_OTA_ACK| |NanStatusType.PROTOCOL_FAILURE|

eventDataPathRequest

oneway eventDataPathRequest (NanDataPathRequestInd event)

Asynchronous callback indicating a data-path(NDP)setup has been requested by an Initiator peer(received by the intended Respodner).

Details
RPC mode
oneway
Parameters
event
: NanDataPathRequestInd containing event details.

eventDataPathConfirm

oneway eventDataPathConfirm (NanDataPathConfirmInd event)

Asynchronous callback indicating a data-path(NDP)setup has been completed:received by both Initiator and Responder.

Details
RPC mode
oneway
Parameters
event
: NanDataPathConfirmInd containing event details.

eventDataPathTerminated

oneway eventDataPathTerminated (uint32_t ndpInstanceId)

Asynchronous callback indicating a list of data-paths(NDP)have been terminated:received by both Initiator and Responder.

Details
RPC mode
oneway
Parameters
ndpInstanceId
: data-path ID of the terminated data-path.