blob: 33accff8eadc015b013c308f961d540094bfbc42 [file] [log] [blame]
Mitchell Wills5443a9f2016-08-18 11:44:58 -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 IWifiEventCallback {
20 /**
21 * Called in response to a call to start indicating that the operation
22 * completed. After this callback the HAL must be fully operational.
23 */
24 oneway onStart();
25
26 /**
27 * Called in response to a call to start indicating that the operation
28 * failed. After this callback the HAL will be considered stopped. Another
29 * call to start will attempt to reinitialize the HAL; however, there is a
30 * chance it may fail again.
Roshan Pius6f31d922016-10-04 15:08:05 -070031 *
32 * @param reason Failure reason code.
Mitchell Wills5443a9f2016-08-18 11:44:58 -070033 */
34 oneway onStartFailure(FailureReason reason);
35
36 /**
37 * Called in response to a call to stop indicating that the operation
38 * completed. When this event is received all IWifiChip objects retrieved
39 * after the last call to start will be considered invalid.
40 */
41 oneway onStop();
42
43 /**
44 * Called when the Wi-Fi system failed in a way that caused it be disabled.
45 * Calling start again must restart Wi-Fi as if stop then start was called
46 * (full state reset). When this event is received all IWifiChip objects
47 * retrieved after the last call to start will be considered invalid.
Roshan Pius6f31d922016-10-04 15:08:05 -070048 *
49 * @param reason Failure reason code.
Mitchell Wills5443a9f2016-08-18 11:44:58 -070050 */
51 oneway onFailure(FailureReason reason);
52};