blob: d336a337c6fc92122e050a3f2cb561e3887a761e [file] [log] [blame]
Etan Cohen6ce50902017-09-14 07:30:57 -07001/*
2 * Copyright 2017 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.2;
18
Roshan Pius1ce92cf2018-01-22 16:12:19 -080019import @1.0::WifiStatus;
Etan Cohen6ce50902017-09-14 07:30:57 -070020import @1.1::IWifiChip;
Roshan Pius1ce92cf2018-01-22 16:12:19 -080021import IWifiChipEventCallback;
Etan Cohen6ce50902017-09-14 07:30:57 -070022
23/**
24 * Interface that represents a chip that must be configured as a single unit.
25 * The HAL/driver/firmware will be responsible for determining which phy is used
26 * to perform operations like NAN, RTT, etc.
27 */
28interface IWifiChip extends @1.1::IWifiChip {
Roshan Pius1ce92cf2018-01-22 16:12:19 -080029 /**
30 * Requests notifications of significant events on this chip. Multiple calls
31 * to this must register multiple callbacks each of which must receive all
32 * events.
33 *
34 * @param callback An instance of the |IWifiChipEventCallback| HIDL interface
35 * object.
36 * @return status WifiStatus of the operation.
37 * Possible status codes:
38 * |WifiStatusCode.SUCCESS|,
39 * |WifiStatusCode.ERROR_WIFI_CHIP_INVALID|
40 */
41 registerEventCallback_1_2(IWifiChipEventCallback callback)
42 generates (WifiStatus status);
Etan Cohen6ce50902017-09-14 07:30:57 -070043};