blob: d47d40cfd662ad9b094f7502355976ffec9bc478 [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.
23 */
24 oneway onBackgroundScanFailure(CommandId cmdId);
25
26 /**
Roshan Pius7b777472016-10-07 13:15:59 -070027 * Called for each received beacon/probe response for a scan with the
28 * |REPORT_EVENTS_FULL_RESULTS| flag set in
Roshan Pius5e254662016-10-26 10:10:48 -070029 * |StaBackgroundScanBucketParameters.eventReportScheme|.
Roshan Pius7b777472016-10-07 13:15:59 -070030 *
31 * @param cmdId command Id corresponding to the request.
32 * @parm result Full scan result for an AP.
33 */
Roshan Pius5e254662016-10-26 10:10:48 -070034 oneway onBackgroundFullScanResult(CommandId cmdId, StaScanResult result);
Roshan Pius7b777472016-10-07 13:15:59 -070035
36 /**
Roshan Pius5e254662016-10-26 10:10:48 -070037 * Called when the |StaBackgroundScanBucketParameters.eventReportScheme| flags
Roshan Pius7b777472016-10-07 13:15:59 -070038 * for at least one bucket that was just scanned was
39 * |REPORT_EVENTS_EACH_SCAN| or one of the configured thresholds was
40 * breached.
41 *
42 * @param cmdId command Id corresponding to the request.
43 * @parm scanDatas List of scan result for all AP's seen since last callback.
44 */
Roshan Pius5e254662016-10-26 10:10:48 -070045 oneway onBackgroundScanResults(CommandId cmdId, vec<StaScanData> scanDatas);
Roshan Pius7b777472016-10-07 13:15:59 -070046};