From 2ca2a529b9efb686f8e8c7e52fba49498271a5ba Mon Sep 17 00:00:00 2001 From: Roshan Pius Date: Fri, 27 Jan 2017 13:32:03 -0800 Subject: [PATCH] supplicant(interface): Remove redundant callbacks The information broadcast via these callbacks are already available via other callbacks. 1. All of the onProvisionDiscovery* callback data can be retrieved via the |onProvisionDiscoveryCompleted| callback. 2. OnAssociated & onConnected callbacks data can retrieved via the onStateChanges callback. Bug: 34221586 Test: ./hardware/interfaces/update-makefiles.sh Change-Id: Ieee26013dfda7a9be41a80e98ff1537da16b3466 --- .../supplicant/1.0/ISupplicantP2pIfaceCallback.hal | 37 ---------------------- .../supplicant/1.0/ISupplicantStaIfaceCallback.hal | 14 -------- 2 files changed, 51 deletions(-) diff --git a/wifi/supplicant/1.0/ISupplicantP2pIfaceCallback.hal b/wifi/supplicant/1.0/ISupplicantP2pIfaceCallback.hal index ad4290b3..b6ee57f9 100644 --- a/wifi/supplicant/1.0/ISupplicantP2pIfaceCallback.hal +++ b/wifi/supplicant/1.0/ISupplicantP2pIfaceCallback.hal @@ -195,43 +195,6 @@ interface ISupplicantP2pIfaceCallback { oneway onInvitationResult(Bssid bssid, P2pStatusCode status); /** - * Used to indicate a push-button request generated during provision discovery. - * - * @param p2pDeviceAddress P2P device address. - */ - oneway onProvisionDiscoveryPbcRequest(MacAddress p2pDeviceAddress); - - /** - * Used to indicate a push-button response generated during provision discovery. - * - * @param p2pDeviceAddress P2P device address. - */ - oneway onProvisionDiscoveryPbcResponse(MacAddress p2pDeviceAddress); - - /** - * Used to indicate the pin generated during provision discovery. - * - * @param p2pDeviceAddress P2P device address. - * @param generatedPin 8 digit pin generated. - */ - oneway onProvisionDiscoveryShowPin( - MacAddress p2pDeviceAddress, string generatedPin); - - /** - * Used to indicate that a pin needs to be entered during provision discovery. - * - * @param p2pDeviceAddress P2P device address. - */ - oneway onProvisionDiscoveryEnterPin(MacAddress p2pDeviceAddress); - - /** - * Used to indicate a provision discovery failure. - * - * @param p2pDeviceAddress P2P device address. - */ - oneway onProvisionDiscoveryFailure(MacAddress p2pDeviceAddress); - - /** * Used to indicate the completion of a P2P provision discovery request. * * @param p2pDeviceAddress P2P device address. diff --git a/wifi/supplicant/1.0/ISupplicantStaIfaceCallback.hal b/wifi/supplicant/1.0/ISupplicantStaIfaceCallback.hal index c3ec0600..34237f0e 100644 --- a/wifi/supplicant/1.0/ISupplicantStaIfaceCallback.hal +++ b/wifi/supplicant/1.0/ISupplicantStaIfaceCallback.hal @@ -257,13 +257,6 @@ interface ISupplicantStaIfaceCallback { string url); /** - * 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. * @@ -277,13 +270,6 @@ interface ISupplicantStaIfaceCallback { 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. * -- 2.11.0