diff options
author | Roshan Pius <rpius@google.com> | 2016-10-10 11:53:07 -0700 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2016-11-16 11:05:16 -0800 |
commit | a52dc7322d39347c97c6b700bae6c7fa62090cd3 (patch) | |
tree | c58d18c1678421afe276dfe3ccffe586f75a3aba /wifi/1.0/IWifiStaIfaceEventCallback.hal | |
parent | 1f9073cfcb1a9674beb839efa24046851dee0222 (diff) | |
download | platform_hardware_interfaces-a52dc7322d39347c97c6b700bae6c7fa62090cd3.tar.gz platform_hardware_interfaces-a52dc7322d39347c97c6b700bae6c7fa62090cd3.tar.bz2 platform_hardware_interfaces-a52dc7322d39347c97c6b700bae6c7fa62090cd3.zip |
wifi(interface): Make methods synchronous
Having all the HIDL methods asynchronous, makes it hard for the
calling code to keep track of the operation status/result.
There are some operations which will generate asynchronous results (like
bgscan), convert all the other methods to synchronous methods.
The |EventCallback| objects will now just broadcast important events
(needed for other clients to listen for state changes). This will no
longer be used to send responses to every command sent to the HAL.
Bug: 32061909
Test: `./hardware/interfaces/update-makefiles.sh`
Change-Id: Id2433f4c8e028268dd027cdeb239ba4082b157b5
Diffstat (limited to 'wifi/1.0/IWifiStaIfaceEventCallback.hal')
-rw-r--r-- | wifi/1.0/IWifiStaIfaceEventCallback.hal | 32 |
1 files changed, 6 insertions, 26 deletions
diff --git a/wifi/1.0/IWifiStaIfaceEventCallback.hal b/wifi/1.0/IWifiStaIfaceEventCallback.hal index 1ee2d4e1d2..7466fc33a6 100644 --- a/wifi/1.0/IWifiStaIfaceEventCallback.hal +++ b/wifi/1.0/IWifiStaIfaceEventCallback.hal @@ -17,32 +17,6 @@ package android.hardware.wifi@1.0; interface IWifiStaIfaceEventCallback { - /** - * Callback indicating that the requested packet filter was successfully - * installed. - */ - oneway onInstallPacketFilterSuccess(); - - /** - * Callback indicating that installing a packet filter failed. - */ - oneway onInstallPacketFilterFailure(FailureReason reason); - - /** - * Callback indicating that a requested background scan was started. - */ - oneway onBackgroundScanStarted(); - - /** - * Callback indicating that a requested background scan failed to start. - */ - oneway onBackgroundScanStartFailure(FailureReason reason); - - /** - * Callback indicating that a scan was stopped - */ - oneway onBackgroundScanStopped(); - /** * Information elements contained within the |ScanResult| structure. * These elements correspond to the IEEE_802.11 standard. @@ -104,6 +78,12 @@ interface IWifiStaIfaceEventCallback { }; /** + * Callback indicating that an ongoing background scan request has failed. + * The background scan needs to be restarted to continue scanning. + */ + oneway onBackgroundScanFailure(CommandId cmdId); + + /** * Called for each received beacon/probe response for a scan with the * |REPORT_EVENTS_FULL_RESULTS| flag set in * |BackgroundScanBucketParameters.eventReportScheme|. |