blob: efcebdac00f1625648e41a1a49bc3252bcef3bcd [file] [log] [blame]
Hai Shalom1cc3ba22020-10-28 18:09:26 -07001/*
2 * Copyright 2020 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.4;
18
Hai Shalom349bc582020-10-30 15:25:40 -070019import @1.0::ISupplicantStaIfaceCallback.AnqpData;
20import @1.0::ISupplicantStaIfaceCallback.Hs20AnqpData;
Hai Shalom1cc3ba22020-10-28 18:09:26 -070021import @1.3::ISupplicantStaIfaceCallback;
22import @1.0::ISupplicantStaIfaceCallback.State;
23import @1.0::Bssid;
24
25/**
26 * Callback Interface exposed by the supplicant service
27 * for each station mode interface (ISupplicantStaIface).
28 *
29 * Clients need to host an instance of this HIDL interface object and
30 * pass a reference of the object to the supplicant via the
31 * corresponding |ISupplicantStaIface.registerCallback_1_4| method.
32 */
33interface ISupplicantStaIfaceCallback extends @1.3::ISupplicantStaIfaceCallback {
34 /**
Hai Shalom349bc582020-10-30 15:25:40 -070035 * ANQP data for IEEE Std 802.11-2016.
36 * The format of the data within these elements follows the IEEE
37 * Std 802.11-2016 standard, section 9.4.5.
38 */
39 struct AnqpData {
40 /**
41 * Baseline information as defined in HAL 1.0.
42 */
Sunil Ravif14d9a02020-11-08 22:33:25 -080043 @1.0::ISupplicantStaIfaceCallback.AnqpData V1_0;
44
45 /*
46 * Container for v1.0 of this struct
47 */
48 vec<uint8_t> venueUrl;
Hai Shalom349bc582020-10-30 15:25:40 -070049 };
50
51 /**
Hai Shalom1cc3ba22020-10-28 18:09:26 -070052 * Used to indicate a Hotspot 2.0 terms and conditions acceptance is requested from the user
53 * before allowing the device to get internet access.
54 *
55 * @param bssid BSSID of the access point.
56 * @param url URL of the T&C server.
57 */
58 oneway onHs20TermsAndConditionsAcceptanceRequestedNotification(Bssid bssid, string url);
Hai Shalom349bc582020-10-30 15:25:40 -070059
60 /**
61 * Used to indicate the result of ANQP (either for IEEE 802.11u Interworking
62 * or Hotspot 2.0) query.
63 *
64 * @param bssid BSSID of the access point.
65 * @param data ANQP data fetched from the access point.
66 * All the fields in this struct must be empty if the query failed.
67 * @param hs20Data ANQP data fetched from the Hotspot 2.0 access point.
68 * All the fields in this struct must be empty if the query failed.
69 */
70 oneway onAnqpQueryDone_1_4(Bssid bssid, AnqpData data, Hs20AnqpData hs20Data);
Hai Shalom1cc3ba22020-10-28 18:09:26 -070071};