blob: e51ea6db23d983412164a7d17d8f9bff8098af96 [file] [log] [blame]
Roshan Pius7b777472016-10-07 13:15:59 -07001/*
2 * Copyright 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.hardware.wifi@1.0;
18
19interface IWifiStaIfaceEventCallback {
Roshan Pius7b777472016-10-07 13:15:59 -070020 /**
Roshan Piusa52dc732016-10-10 11:53:07 -070021 * Callback indicating that an ongoing background scan request has failed.
22 * The background scan needs to be restarted to continue scanning.
Roshan Piusd4767542016-12-06 10:04:05 -080023 *
24 * @param cmdId command ID corresponding to the request.
Roshan Piusa52dc732016-10-10 11:53:07 -070025 */
26 oneway onBackgroundScanFailure(CommandId cmdId);
27
28 /**
Roshan Pius7b777472016-10-07 13:15:59 -070029 * Called for each received beacon/probe response for a scan with the
30 * |REPORT_EVENTS_FULL_RESULTS| flag set in
Roshan Pius5e254662016-10-26 10:10:48 -070031 * |StaBackgroundScanBucketParameters.eventReportScheme|.
Roshan Pius7b777472016-10-07 13:15:59 -070032 *
Roshan Piusd4767542016-12-06 10:04:05 -080033 * @param cmdId command ID corresponding to the request.
Roshan Pius8c0c8e92017-02-24 08:07:42 -080034 * @param bucketsScanned Bitset where each bit indicates if the bucket with
35 * that index (starting at 0) was scanned.
Roshan Pius7b777472016-10-07 13:15:59 -070036 * @parm result Full scan result for an AP.
37 */
Roshan Pius8c0c8e92017-02-24 08:07:42 -080038 oneway onBackgroundFullScanResult(
39 CommandId cmdId, uint32_t bucketsScanned, StaScanResult result);
Roshan Pius7b777472016-10-07 13:15:59 -070040
41 /**
Roshan Pius5e254662016-10-26 10:10:48 -070042 * Called when the |StaBackgroundScanBucketParameters.eventReportScheme| flags
Roshan Pius7b777472016-10-07 13:15:59 -070043 * for at least one bucket that was just scanned was
44 * |REPORT_EVENTS_EACH_SCAN| or one of the configured thresholds was
45 * breached.
46 *
Roshan Piusd4767542016-12-06 10:04:05 -080047 * @param cmdId command ID corresponding to the request.
Roshan Pius7b777472016-10-07 13:15:59 -070048 * @parm scanDatas List of scan result for all AP's seen since last callback.
49 */
Roshan Pius5e254662016-10-26 10:10:48 -070050 oneway onBackgroundScanResults(CommandId cmdId, vec<StaScanData> scanDatas);
Roshan Piusd4767542016-12-06 10:04:05 -080051
52 /**
53 * Called when the RSSI of the currently connected access point goes beyond the
54 * thresholds set via |IWifiStaIface.startRssiMonitoring|.
55 *
56 * @param cmdId command ID corresponding to the request.
57 * @param currBssid BSSID of the currently connected access point.
58 * @param currRssi RSSI of the currently connected access point.
59 */
60 oneway onRssiThresholdBreached(CommandId cmdId, Bssid currBssid, Rssi currRssi);
Roshan Pius7b777472016-10-07 13:15:59 -070061};