Roshan Pius | 9a3a84f | 2016-09-15 13:02:25 -0700 | [diff] [blame] | 1 | /* |
| 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 Pius | 22ab8b2 | 2016-09-28 13:35:42 -0700 | [diff] [blame] | 17 | package android.hardware.wifi.supplicant@1.0; |
Roshan Pius | 9a3a84f | 2016-09-15 13:02:25 -0700 | [diff] [blame] | 18 | |
Roshan Pius | 9a3a84f | 2016-09-15 13:02:25 -0700 | [diff] [blame] | 19 | /** |
| 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 | */ |
| 27 | interface ISupplicantNetwork { |
| 28 | /** |
Roshan Pius | 9a3a84f | 2016-09-15 13:02:25 -0700 | [diff] [blame] | 29 | * 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 Pius | 39f588f | 2016-10-31 14:51:27 -0700 | [diff] [blame^] | 54 | * Retrieves the type of the interface this network belongs to. |
Roshan Pius | 9a3a84f | 2016-09-15 13:02:25 -0700 | [diff] [blame] | 55 | * |
| 56 | * @return status Status of the operation. |
| 57 | * Possible status codes: |
| 58 | * |SupplicantStatusCode.SUCCESS|, |
Roshan Pius | 39f588f | 2016-10-31 14:51:27 -0700 | [diff] [blame^] | 59 | * |SupplicantStatusCode.FAILURE_IFACE_INVALID| |
| 60 | * @return type Type of the network interface, e.g., STA. |
Roshan Pius | 9a3a84f | 2016-09-15 13:02:25 -0700 | [diff] [blame] | 61 | */ |
Roshan Pius | 39f588f | 2016-10-31 14:51:27 -0700 | [diff] [blame^] | 62 | getType() generates (SupplicantStatus status, IfaceType type); |
Roshan Pius | 9a3a84f | 2016-09-15 13:02:25 -0700 | [diff] [blame] | 63 | }; |