blob: 2419dccbbb2a51002a7af95b2125a4532e8a79d9 [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
19/**
20 * Callback Interface exposed by the wpa_supplicant service
Roshan Pius39f588f2016-10-31 14:51:27 -070021 * for each network (ISupplicantStaNetwork).
Roshan Pius9a3a84f2016-09-15 13:02:25 -070022 *
23 * Clients need to host an instance of this HIDL interface object and
24 * pass a reference of the object to wpa_supplicant via the
Roshan Pius39f588f2016-10-31 14:51:27 -070025 * corresponding |ISupplicantStaNetwork.registerCallback| method.
Roshan Pius9a3a84f2016-09-15 13:02:25 -070026 */
Roshan Pius39f588f2016-10-31 14:51:27 -070027interface ISupplicantStaNetworkCallback {
Roshan Pius9a3a84f2016-09-15 13:02:25 -070028 /** Params of |onNetworkEapSimGsmAuthRequest| request. (Refer RFC 4186) */
29 typedef uint8_t[16] GsmRand;
30 struct NetworkRequestEapSimGsmAuthParams {
31 vec<GsmRand> rands;
32 };
33
34 /** Params of |onNetworkEapSimUmtsAuthRequest| request. (Refer RFC 4187) */
35 struct NetworkRequestEapSimUmtsAuthParams {
36 uint8_t[16] rand;
37 uint8_t[16] autn;
38 };
39
40 /**
41 * Used to request EAP GSM SIM authentication for this particular network.
42 *
43 * The response for the request must be sent using the corresponding
44 * |ISupplicantNetwork.sendNetworkEapSimGsmAuthResponse| call.
45 *
46 * @param params Params associated with the request.
47 */
48 oneway onNetworkEapSimGsmAuthRequest(
49 NetworkRequestEapSimGsmAuthParams params);
50
51 /**
52 * Used to request EAP UMTS SIM authentication for this particular network.
53 *
54 * The response for the request must be sent using the corresponding
55 * |ISupplicantNetwork.sendNetworkEapSimUmtsAuthResponse| call.
56 *
57 * @param params Params associated with the request.
58 */
59 oneway onNetworkEapSimUmtsAuthRequest(
60 NetworkRequestEapSimUmtsAuthParams params);
61
62 /**
63 * Used to request EAP Identity for this particular network.
64 *
65 * The response for the request must be sent using the corresponding
66 * |ISupplicantNetwork.sendNetworkEapIdentityResponse| call.
67 */
68 oneway onNetworkEapIdentityRequest();
69};