From 2d50db95b4f5cb564879aad62582e481865b48b5 Mon Sep 17 00:00:00 2001 From: Roshan Pius Date: Fri, 13 Jan 2017 15:53:07 -0800 Subject: [PATCH] supplicant(interface): Add sta network idstr & ft key mgmt Bug: 34284015 Bug: 32571829 Test: Compiles Change-Id: Id4d08657a4ed5a76f727e89c19991a65ce7f91e5 --- wifi/supplicant/1.0/ISupplicantStaNetwork.hal | 35 +++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/wifi/supplicant/1.0/ISupplicantStaNetwork.hal b/wifi/supplicant/1.0/ISupplicantStaNetwork.hal index 479ba948ae..7d86f42e7e 100644 --- a/wifi/supplicant/1.0/ISupplicantStaNetwork.hal +++ b/wifi/supplicant/1.0/ISupplicantStaNetwork.hal @@ -51,7 +51,10 @@ interface ISupplicantStaNetwork extends ISupplicantNetwork { WPA_EAP = 1 << 0, WPA_PSK = 1 << 1, NONE = 1 << 2, - IEEE8021X = 1 << 3 + IEEE8021X = 1 << 3, + FT_EAP = 1 << 5, + FT_PSK = 1 << 6, + OSEN = 1 << 15 }; /** Possble mask of values for Proto param. */ @@ -74,7 +77,8 @@ interface ISupplicantStaNetwork extends ISupplicantNetwork { WEP40 = 1 << 1, WEP104 = 1 << 2, TKIP = 1 << 3, - CCMP = 1 << 4 + CCMP = 1 << 4, + GTK_NOT_USED = 1 << 14 }; /** Possble mask of values for PairwiseCipher param. */ @@ -504,6 +508,19 @@ interface ISupplicantStaNetwork extends ISupplicantNetwork { */ setEapDomainSuffixMatch(string match) generates (SupplicantStatus status); + /** + * Get ID string set for this network. + * Network identifier string for external scripts. + * + * @return idStr ID string value to set. + * @return status Status of the operation. + * Possible status codes: + * |SupplicantStatusCode.SUCCESS|, + * |SupplicantStatusCode.FAILURE_ARGS_INVALID|, + * |SupplicantStatusCode.FAILURE_UNKNOWN|, + * |SupplicantStatusCode.FAILURE_NETWORK_INVALID| + */ + setIdStr(string idStr) generates (SupplicantStatus status); /** * Getters for the various network params. @@ -826,6 +843,20 @@ interface ISupplicantStaNetwork extends ISupplicantNetwork { getEapDomainSuffixMatch() generates (SupplicantStatus status, string match); + /** + * Get ID string set for this network. + * Network identifier string for external scripts. + * + * @return status Status of the operation. + * Possible status codes: + * |SupplicantStatusCode.SUCCESS|, + * |SupplicantStatusCode.FAILURE_ARGS_INVALID|, + * |SupplicantStatusCode.FAILURE_UNKNOWN|, + * |SupplicantStatusCode.FAILURE_NETWORK_INVALID| + * @return idStr ID string set. + */ + getIdStr() generates (SupplicantStatus status, string idStr); + /** * Enable the network for connection purposes. *