From 94b4bdca75380220919dbcd7a5ff84782e988a2a Mon Sep 17 00:00:00 2001 From: Roshan Pius Date: Thu, 16 Mar 2017 09:38:26 -0700 Subject: [PATCH] supplicant(interface): Support for P2P client list and save config Bug: 36042785 Test: Compiles Change-Id: Ib47b47762c05e6252f692c1456e9b8d5dd8c051a --- wifi/supplicant/1.0/ISupplicantP2pIface.hal | 11 +++++++ wifi/supplicant/1.0/ISupplicantP2pNetwork.hal | 30 +++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/wifi/supplicant/1.0/ISupplicantP2pIface.hal b/wifi/supplicant/1.0/ISupplicantP2pIface.hal index dc1388a6f9..5a0f6003b8 100644 --- a/wifi/supplicant/1.0/ISupplicantP2pIface.hal +++ b/wifi/supplicant/1.0/ISupplicantP2pIface.hal @@ -672,4 +672,15 @@ interface ISupplicantP2pIface extends ISupplicantIface { */ reportNfcHandoverInitiation(vec select) generates (SupplicantStatus status); + + /** + * Persist the current configuration to disk. + * + * @return status Status of the operation. + * Possible status codes: + * |SupplicantStatusCode.SUCCESS|, + * |SupplicantStatusCode.FAILURE_UNKNOWN|, + * |SupplicantStatusCode.FAILURE_IFACE_INVALID| + */ + saveConfig() generates (SupplicantStatus status); }; diff --git a/wifi/supplicant/1.0/ISupplicantP2pNetwork.hal b/wifi/supplicant/1.0/ISupplicantP2pNetwork.hal index d32b47e85c..6ec7143111 100644 --- a/wifi/supplicant/1.0/ISupplicantP2pNetwork.hal +++ b/wifi/supplicant/1.0/ISupplicantP2pNetwork.hal @@ -100,4 +100,34 @@ interface ISupplicantP2pNetwork extends ISupplicantNetwork { * @return isGo true if group owner, false otherwise. */ isGo() generates (SupplicantStatus status, bool isGo); + + /** + * 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). + * + * @param clients MAC address of the clients. + * @return status Status of the operation. + * Possible status codes: + * |SupplicantStatusCode.SUCCESS|, + * |SupplicantP2ptusCode.FAILURE_UNKNOWN|, + * |SupplicantStatusCode.FAILURE_NETWORK_INVALID| + */ + setClientList(vec clients) generates (SupplicantStatus status); + + /** + * 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). + * + * @return status Status of the operation. + * Possible status codes: + * |SupplicantStatusCode.SUCCESS|, + * |SupplicantP2ptusCode.FAILURE_UNKNOWN|, + * |SupplicantStatusCode.FAILURE_NETWORK_INVALID| + * @return clients MAC address of the clients. + */ + getClientList() generates (SupplicantStatus status, vec clients); };