blob: 7f7b4d06162a0d8fba0453375b80c0343b6cf53e [file] [log] [blame]
Etan Cohen9e7a4052017-12-21 13:45:26 -08001/*
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
19import @1.0::CommandIdShort;
20import @1.0::IWifiNanIface;
21import @1.0::NanConfigRequest;
22import @1.0::NanEnableRequest;
23import @1.0::WifiStatus;
24
25/**
26 * Interface used to represent a single NAN (Neighbour Aware Network) iface.
27 *
28 * References to "NAN Spec" are to the Wi-Fi Alliance "Wi-Fi Neighbor Awareness
29 * Networking (NAN) Technical Specification".
30 */
31interface IWifiNanIface extends @1.0::IWifiNanIface {
32 /**
33 * Enable NAN: configures and activates NAN clustering (does not start
34 * a discovery session or set up data-interfaces or data-paths). Use the
35 * |IWifiNanIface.configureRequest| method to change the configuration of an already enabled
36 * NAN interface.
37 * Asynchronous response is with |IWifiNanIfaceEventCallback.notifyEnableResponse|.
38 *
39 * Note: supersedes the @1.0::IWifiNanIface.enableRequest() method which is deprecated as of
40 * HAL version 1.2.
41 *
42 * @param cmdId command Id to use for this invocation.
43 * @param msg1 Instance of |NanEnableRequest|.
44 * @param msg2 Instance of |NanConfigRequestSupplemental|.
45 * @return status WifiStatus of the operation.
46 * Possible status codes:
47 * |WifiStatusCode.SUCCESS|,
48 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|,
49 * |WifiStatusCode.ERROR_INVALID_ARGS|,
50 * |WifiStatusCode.ERROR_UNKNOWN|
51 */
52 enableRequest_1_2(CommandIdShort cmdId, NanEnableRequest msg1,
53 NanConfigRequestSupplemental msg2)
54 generates (WifiStatus status);
55
56 /**
57 * Configure NAN: configures an existing NAN functionality (i.e. assumes
58 * |IWifiNanIface.enableRequest| already submitted and succeeded).
59 * Asynchronous response is with |IWifiNanIfaceEventCallback.notifyConfigResponse|.
60 *
61 * Note: supersedes the @1.0::IWifiNanIface.configRequest() method which is deprecated as of
62 * HAL version 1.2.
63 *
64 * @param cmdId command Id to use for this invocation.
65 * @param msg1 Instance of |NanConfigRequest|.
66 * @param msg1 Instance of |NanConfigRequestSupplemental|.
67 * @return status WifiStatus of the operation.
68 * Possible status codes:
69 * |WifiStatusCode.SUCCESS|,
70 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|,
71 * |WifiStatusCode.ERROR_INVALID_ARGS|,
72 * |WifiStatusCode.ERROR_UNKNOWN|
73 */
74 configRequest_1_2(CommandIdShort cmdId, NanConfigRequest msg1,
75 NanConfigRequestSupplemental msg2)
76 generates (WifiStatus status);
77};