blob: acc3359aae6a6d7322170b3d7097857be5dca63c [file] [log] [blame]
Roshan Pius9a3a84f2016-09-15 13:02:25 -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
Roshan Pius22ab8b22016-09-28 13:35:42 -070017package android.hardware.wifi.supplicant@1.0;
Roshan Pius9a3a84f2016-09-15 13:02:25 -070018
Roshan Pius9a3a84f2016-09-15 13:02:25 -070019/**
20 * Interface exposed by wpa_supplicant for each network configuration it
21 * controls.
22 * A network is wpa_supplicant's way of representing the configuration
23 * parameters of a Wifi service set. Service sets are identified by their
24 * service set identitifier (SSID). The parameters for a network includes the
25 * credentials, bssid, etc.
26 */
27interface ISupplicantNetwork {
28 /**
Roshan Pius9a3a84f2016-09-15 13:02:25 -070029 * Retrieves the ID allocated to this network by wpa_supplicant.
30 *
31 * This is not the |SSID| of the network, but an internal identifier for
32 * this network used by wpa_supplicant.
33 *
34 * @return status Status of the operation.
35 * Possible status codes:
36 * |SupplicantStatusCode.SUCCESS|,
37 * |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
38 * @return id Network ID.
39 */
40 getId() generates (SupplicantStatus status, SupplicantNetworkId id);
41
42 /**
43 * Retrieves the name of the interface this network belongs to.
44 *
45 * @return status Status of the operation.
46 * Possible status codes:
47 * |SupplicantStatusCode.SUCCESS|,
48 * |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
49 * @return Name of the network interface, e.g., wlan0
50 */
51 getInterfaceName() generates (SupplicantStatus status, string name);
52
53 /**
Roshan Pius39f588f2016-10-31 14:51:27 -070054 * Retrieves the type of the interface this network belongs to.
Roshan Pius9a3a84f2016-09-15 13:02:25 -070055 *
56 * @return status Status of the operation.
57 * Possible status codes:
58 * |SupplicantStatusCode.SUCCESS|,
Roshan Pius39f588f2016-10-31 14:51:27 -070059 * |SupplicantStatusCode.FAILURE_IFACE_INVALID|
60 * @return type Type of the network interface, e.g., STA.
Roshan Pius9a3a84f2016-09-15 13:02:25 -070061 */
Roshan Pius39f588f2016-10-31 14:51:27 -070062 getType() generates (SupplicantStatus status, IfaceType type);
Roshan Pius9a3a84f2016-09-15 13:02:25 -070063};