blob: bfd894625105867ab18585f3cba25bbfd8a72267 [file] [log] [blame]
Jimmy Chen1eb82362019-08-28 17:54:29 +08001/*
2 * Copyright 2019 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.supplicant@1.3;
18
19import @1.0::SupplicantStatus;
20import @1.2::ISupplicantStaIface;
Ahmed ElArabawye56767d2019-09-30 09:35:03 -070021import ISupplicantStaIfaceCallback;
Jimmy Chen1eb82362019-08-28 17:54:29 +080022
23/**
24 * Interface exposed by the supplicant for each station mode network
25 * interface (e.g wlan0) it controls.
26 */
27interface ISupplicantStaIface extends @1.2::ISupplicantStaIface {
28 /**
29 * Register for callbacks from this interface.
30 *
31 * These callbacks are invoked for events that are specific to this interface.
32 * Registration of multiple callback objects is supported. These objects must
33 * be automatically deleted when the corresponding client process is dead or
34 * if this interface is removed.
35 *
36 * @param callback An instance of the |ISupplicantStaIfaceCallback| HIDL
37 * interface object.
38 * @return status Status of the operation.
39 * Possible status codes:
40 * |SupplicantStatusCode.SUCCESS|,
41 * |SupplicantStatusCode.FAILURE_UNKNOWN|,
42 * |SupplicantStatusCode.FAILURE_IFACE_INVALID|
43 */
44 registerCallback_1_3(ISupplicantStaIfaceCallback callback)
45 generates (SupplicantStatus status);
Ahmed ElArabawye56767d2019-09-30 09:35:03 -070046
47 /**
48 * Get Connection capabilities
49 *
50 * @return status Status of the operation, and connection capabilities.
51 * Possible status codes:
52 * |SupplicantStatusCode.SUCCESS|,
53 * |SupplicantStatusCode.FAILURE_UNKNOWN|,
54 */
55 getConnectionCapabilities()
56 generates (SupplicantStatus status, ConnectionCapabilities capabilities);
Sunil Ravi89157a42019-10-31 15:28:47 -070057
58 /**
59 * Get wpa driver capabilities.
60 *
61 * @return status Status of the operation, and a bitmap of wpa driver features.
62 * Possible status codes:
63 * |SupplicantStatusCode.SUCCESS|,
64 * |SupplicantStatusCode.FAILURE_UNKNOWN|,
65 */
66 getWpaDriverCapabilities() generates (SupplicantStatus status,
67 bitfield<WpaDriverCapabilitiesMask> driverCapabilitiesMask);
68
69 /**
70 * Set MBO cellular data status.
71 *
72 * @param available true means cellular data available, false otherwise.
73 * @return status Status of the operation.
74 * Possible status codes:
75 * |SupplicantStatusCode.SUCCESS|,
76 * |SupplicantStatusCode.FAILURE_UNKNOWN|
77 */
78 setMboCellularDataStatus(bool available) generates (SupplicantStatus status);
Jimmy Chen1eb82362019-08-28 17:54:29 +080079};