Package: android.hardware.wifi.supplicant@1.0

ISupplicantP2pNetwork

interface ISupplicantP2pNetwork extends ISupplicantNetwork

Interface exposed by the supplicant for each P2P mode network configuration it controls.

Methods

registerCallback

registerCallback (ISupplicantP2pNetworkCallback callback)
generates (SupplicantStatus status)

Register for callbacks from this network.

These callbacks are invoked for events that are specific to this network.Registration of multiple callback objects is supported.These objects must be automatically deleted when the corresponding client process is dead or if this network is removed.

Details
Parameters
callback
An instance of the |ISupplicantP2pNetworkCallback| HIDL interface object.
Generates
status
P2ptus of the operation.Possible status codes:|SupplicantP2ptusCode.SUCCESS|, |SupplicantP2ptusCode.FAILURE_UNKNOWN|, |SupplicantP2ptusCode.FAILURE_NETWORK_INVALID|

getSsid

getSsid ()
generates (SupplicantStatus status, Ssid ssid)

Get SSID for this network.

Details
Generates
status
Status of the operation.Possible status codes:|SupplicantStatusCode.SUCCESS|, |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
ssid
value set.

getBssid

getBssid ()
generates (SupplicantStatus status, Bssid bssid)

Get the BSSID set for this network.

Details
Generates
status
Status of the operation.Possible status codes:|SupplicantStatusCode.SUCCESS|, |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
bssid
value set.

isCurrent

isCurrent ()
generates (SupplicantStatus status, bool isCurrent)

Check if the network is currently active one.

Details
Generates
status
Status of the operation.Possible status codes:|SupplicantStatusCode.SUCCESS|, |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
isCurrent
true if current, false otherwise.

isPersistent

isPersistent ()
generates (SupplicantStatus status, bool isPersistent)

Check if the network is marked persistent.

Details
Generates
status
Status of the operation.Possible status codes:|SupplicantStatusCode.SUCCESS|, |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
isPersistent
true if persistent, false otherwise.

isGo

isGo ()
generates (SupplicantStatus status, bool isGo)

Check if the device is the group owner of the network.

Details
Generates
status
Status of the operation.Possible status codes:|SupplicantStatusCode.SUCCESS|, |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
isGo
true if group owner, false otherwise.

setClientList

setClientList (vec<MacAddress> clients)
generates (SupplicantStatus status)

Set the list of P2P Clients in a persistent group(GO). This is a list of P2P Clients(P2P Device Address)that have joined the persistent group.This is maintained on the GO for persistent group entries(disabled == 2).

Details
Parameters
clients
MAC address of the clients.
Generates
status
Status of the operation.Possible status codes:|SupplicantStatusCode.SUCCESS|, |SupplicantP2ptusCode.FAILURE_UNKNOWN|, |SupplicantStatusCode.FAILURE_NETWORK_INVALID|

getClientList

getClientList ()
generates (SupplicantStatus status, vec<MacAddress> clients)

Get the list of P2P Clients in a persistent group(GO). This is a list of P2P Clients(P2P Device Address)that have joined the persistent group.This is maintained on the GO for persistent group entries(disabled == 2).

Details
Generates
status
Status of the operation.Possible status codes:|SupplicantStatusCode.SUCCESS|, |SupplicantP2ptusCode.FAILURE_UNKNOWN|, |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
clients
MAC address of the clients.