diff options
author | Roshan Pius <rpius@google.com> | 2016-10-26 10:10:48 -0700 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2016-11-16 11:05:16 -0800 |
commit | 5e25466ebf7282bfbbe58e5f1f741c9a05993602 (patch) | |
tree | e6d9140ce9a84a7891da8ae7831ef5591d107e28 /wifi/1.0/IWifiStaIfaceEventCallback.hal | |
parent | e03f736ca003a0d2679ce15c1d0602ad67e43e93 (diff) | |
download | platform_hardware_interfaces-5e25466ebf7282bfbbe58e5f1f741c9a05993602.tar.gz platform_hardware_interfaces-5e25466ebf7282bfbbe58e5f1f741c9a05993602.tar.bz2 platform_hardware_interfaces-5e25466ebf7282bfbbe58e5f1f741c9a05993602.zip |
wifi(interface): Move all StaIface types to types.hal
Some of these structs are used in the debug framework and hence needs to
live in types.hal. Add a |Sta| prefix to differentiate them from other
types similar to what is done for Nan and Rtt types.
Bug: 31991459
Test: ./hardware/interfaces/update-makefiles.sh
Change-Id: Idc49b28447609c4334b0a086481c404c06a63fea
Diffstat (limited to 'wifi/1.0/IWifiStaIfaceEventCallback.hal')
-rw-r--r-- | wifi/1.0/IWifiStaIfaceEventCallback.hal | 54 |
1 files changed, 4 insertions, 50 deletions
diff --git a/wifi/1.0/IWifiStaIfaceEventCallback.hal b/wifi/1.0/IWifiStaIfaceEventCallback.hal index 6bffc7d7d5..d47d40cfd6 100644 --- a/wifi/1.0/IWifiStaIfaceEventCallback.hal +++ b/wifi/1.0/IWifiStaIfaceEventCallback.hal @@ -18,52 +18,6 @@ package android.hardware.wifi@1.0; interface IWifiStaIfaceEventCallback { /** - * Structure describing all the information about a single access point seen - * during the scan. - */ - struct ScanResult { - TimeStampInUs timeStampInUs; - vec<uint8_t> ssid; - Bssid bssid; - Rssi rssi; - WifiChannelInMhz frequency; - uint16_t beaconPeriodInMs; - uint16_t capability; - vec<WifiInformationElement> informationElements; - }; - - /** - * Mask of flags set in the |ScanData| instance. - */ - enum ScanDataFlagMask { - /** - * Indicates that a scan was interrupted/did not occur so results may be - * incomplete. - */ - WIFI_SCAN_FLAG_INTERRUPTED = 1 << 0, - }; - - /** - * Structure describing all the information about all the access points seen during - * the scan. - */ - struct ScanData { - /** - * Bitset containing |ScanDataFlagMask| values. - */ - uint32_t flags; - /** - * Bitset where each bit indicates if the bucket with that index was - * scanned. - */ - uint32_t bucketsScanned; - /** - * List of scan results. - */ - vec<ScanResult> results; - }; - - /** * Callback indicating that an ongoing background scan request has failed. * The background scan needs to be restarted to continue scanning. */ @@ -72,15 +26,15 @@ interface IWifiStaIfaceEventCallback { /** * Called for each received beacon/probe response for a scan with the * |REPORT_EVENTS_FULL_RESULTS| flag set in - * |BackgroundScanBucketParameters.eventReportScheme|. + * |StaBackgroundScanBucketParameters.eventReportScheme|. * * @param cmdId command Id corresponding to the request. * @parm result Full scan result for an AP. */ - oneway onBackgroundFullScanResult(CommandId cmdId, ScanResult result); + oneway onBackgroundFullScanResult(CommandId cmdId, StaScanResult result); /** - * Called when the |BackgroundScanBucketParameters.eventReportScheme| flags + * Called when the |StaBackgroundScanBucketParameters.eventReportScheme| flags * for at least one bucket that was just scanned was * |REPORT_EVENTS_EACH_SCAN| or one of the configured thresholds was * breached. @@ -88,5 +42,5 @@ interface IWifiStaIfaceEventCallback { * @param cmdId command Id corresponding to the request. * @parm scanDatas List of scan result for all AP's seen since last callback. */ - oneway onBackgroundScanResults(CommandId cmdId, vec<ScanData> scanDatas); + oneway onBackgroundScanResults(CommandId cmdId, vec<StaScanData> scanDatas); }; |