blob: 718f36c20f464d97a25a7333b56880f1487c0968 [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 /**
Mitchell Wills5443a9f2016-08-18 11:44:58 -070027 * Called in response to a call to stop indicating that the operation
28 * completed. When this event is received all IWifiChip objects retrieved
29 * after the last call to start will be considered invalid.
30 */
31 oneway onStop();
32
33 /**
34 * Called when the Wi-Fi system failed in a way that caused it be disabled.
35 * Calling start again must restart Wi-Fi as if stop then start was called
Roshan Piusa52dc732016-10-10 11:53:07 -070036 * (full state reset). When this event is received all IWifiChip & IWifiIface
37 * objects retrieved after the last call to start will be considered invalid.
Roshan Pius6f31d922016-10-04 15:08:05 -070038 *
Roshan Piusa52dc732016-10-10 11:53:07 -070039 * @param status Failure reason code.
Mitchell Wills5443a9f2016-08-18 11:44:58 -070040 */
Roshan Piusa52dc732016-10-10 11:53:07 -070041 oneway onFailure(WifiStatus status);
Mitchell Wills5443a9f2016-08-18 11:44:58 -070042};