blob: 28b808ed324699b615f1614bd927e9ed50ff14b2 [file] [log] [blame]
Jimmy Chend460df32019-11-29 17:31:22 +02001/*
2 * Copyright 2020 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.5;
18
19import @1.4::IWifi;
chenpaulb690fb82021-03-16 22:49:18 +080020import IWifiEventCallback;
21import @1.0::WifiStatus;
Jimmy Chend460df32019-11-29 17:31:22 +020022
23/**
24 * This is the root of the HAL module and is the interface returned when
25 * loading an implementation of the Wi-Fi HAL. There must be at most one
26 * module loaded in the system.
27 * IWifi.getChip() must return @1.5::IWifiChip
28 */
chenpaulb690fb82021-03-16 22:49:18 +080029interface IWifi extends @1.4::IWifi {
30 /**
31 * Requests notifications of significant events for the HAL. Multiple calls to
32 * this must register multiple callbacks each of which must receive all
33 * events. |IWifiEventCallback| object registration must be independent of the
34 * state of the rest of the HAL and must persist though stops/starts. These
35 * objects must be deleted when the corresponding client process is dead.
36 *
37 * @param callback An instance of the |IWifiEventCallback| HIDL interface
38 * object.
39 * @return status WifiStatus of the operation.
40 * Possible status codes:
41 * |WifiStatusCode.SUCCESS|,
42 * |WifiStatusCode.UNKNOWN|
43 */
44 registerEventCallback_1_5(IWifiEventCallback callback)
45 generates (WifiStatus status);
46};