blob: 84025cec9f67dc8861122cb973d02ac174714b2f [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.
31 */
32 oneway onStartFailure(FailureReason reason);
33
34 /**
35 * Called in response to a call to stop indicating that the operation
36 * completed. When this event is received all IWifiChip objects retrieved
37 * after the last call to start will be considered invalid.
38 */
39 oneway onStop();
40
41 /**
42 * Called when the Wi-Fi system failed in a way that caused it be disabled.
43 * Calling start again must restart Wi-Fi as if stop then start was called
44 * (full state reset). When this event is received all IWifiChip objects
45 * retrieved after the last call to start will be considered invalid.
46 */
47 oneway onFailure(FailureReason reason);
48};