blob: b92a880364c51bd4ef3aee3c02233bd34f952e30 [file] [log] [blame]
Ahmed ElArabawyd73b64c2022-01-13 09:20:15 -08001/*
2 * Copyright 2022 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.6;
18
19import @1.0::WifiStatus;
20import @1.5::IWifiNanIface;
21import IWifiNanIfaceEventCallback;
22
23/**
24 * Interface used to represent a single NAN (Neighbour Aware Network) iface.
25 *
26 * References to "NAN Spec" are to the Wi-Fi Alliance "Wi-Fi Neighbor Awareness
27 * Networking (NAN) Technical Specification".
28 */
29interface IWifiNanIface extends @1.5::IWifiNanIface {
30 /**
31 * Requests notifications of significant events on this iface. Multiple calls
32 * to this must register multiple callbacks each of which must receive all
33 * events.
34 *
35 * @param callback An instance of the |IWifiNanIfaceEventCallback| HIDL interface
36 * object.
37 * @return status WifiStatus of the operation.
38 * Possible status codes:
39 * |WifiStatusCode.SUCCESS|,
40 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|
41 */
42 registerEventCallback_1_6(IWifiNanIfaceEventCallback callback) generates (WifiStatus status);
43};