From 6eb05a2fc778d4cf2102a6d34aad912b84d812de Mon Sep 17 00:00:00 2001 From: Roshan Pius Date: Fri, 13 Jan 2017 11:05:36 -0800 Subject: [PATCH] supplicant(interface): Add missing STA callbacks Add a few missing callbacks in ISupplicantStaIfaceCallbacks & ISupplicantCallbacks. Bug: 34274091 Test: Compiles Change-Id: I5d7819f9708f6caa4da80ed481408e376a5636f8 --- wifi/supplicant/1.0/ISupplicantCallback.hal | 5 ++++ .../1.0/ISupplicantStaIfaceCallback.hal | 30 +++++++++++++++++-- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/wifi/supplicant/1.0/ISupplicantCallback.hal b/wifi/supplicant/1.0/ISupplicantCallback.hal index a5a0da569f..3674cfbdfc 100644 --- a/wifi/supplicant/1.0/ISupplicantCallback.hal +++ b/wifi/supplicant/1.0/ISupplicantCallback.hal @@ -37,4 +37,9 @@ interface ISupplicantCallback { * @param ifName Name of the network interface, e.g., wlan0 */ oneway onInterfaceRemoved(string ifName); + + /** + * Used to indicate that the supplicant daemon is terminating. + */ + oneway onTerminating(); }; diff --git a/wifi/supplicant/1.0/ISupplicantStaIfaceCallback.hal b/wifi/supplicant/1.0/ISupplicantStaIfaceCallback.hal index 55ff9a84d6..4b201d4161 100644 --- a/wifi/supplicant/1.0/ISupplicantStaIfaceCallback.hal +++ b/wifi/supplicant/1.0/ISupplicantStaIfaceCallback.hal @@ -257,8 +257,15 @@ interface ISupplicantStaIfaceCallback { string url); /** - * Used to indicate a disconnect from the currently connected - * network on this iface,. + * Used to indicate the connection to a new network on this iface. + * + * @param bssid BSSID of the AP to which we connected. + */ + oneway onConnected(Bssid bssid); + + /** + * Used to indicate the disconnection from the currently connected + * network on this iface. * * @param bssid BSSID of the AP from which we disconnected. * @param locallyGenerated If the disconnect was triggered by @@ -269,6 +276,13 @@ interface ISupplicantStaIfaceCallback { oneway onDisconnected( Bssid bssid, bool locallyGenerated, uint32_t reasonCode); + /** + * Used to indicate the completion of association to an AP. + * + * @param bssid BSSID of the corresponding AP. + */ + oneway onAssociationCompleted(Bssid bssid); + /** * Used to indicate an association rejection recieved from the AP * to which the connection is being attempted. @@ -280,6 +294,18 @@ interface ISupplicantStaIfaceCallback { */ oneway onAssociationRejected(Bssid bssid, uint32_t statusCode); + /** + * Used to indicate the timeout of authentication to an AP. + * + * @param bssid BSSID of the corresponding AP. + */ + oneway onAuthenticationTimeout(Bssid bssid); + + /** + * Used to indicate an EAP authentication failure. + */ + oneway onEapFailure(); + /** * Used to indicate the success of a WPS connection attempt. */