Hai Shalom | 1cc3ba2 | 2020-10-28 18:09:26 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package android.hardware.wifi.supplicant@1.4; |
| 18 | |
Hai Shalom | 349bc58 | 2020-10-30 15:25:40 -0700 | [diff] [blame] | 19 | import @1.0::ISupplicantStaIfaceCallback.AnqpData; |
| 20 | import @1.0::ISupplicantStaIfaceCallback.Hs20AnqpData; |
Hai Shalom | 1cc3ba2 | 2020-10-28 18:09:26 -0700 | [diff] [blame] | 21 | import @1.3::ISupplicantStaIfaceCallback; |
| 22 | import @1.0::ISupplicantStaIfaceCallback.State; |
| 23 | import @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 | */ |
| 33 | interface ISupplicantStaIfaceCallback extends @1.3::ISupplicantStaIfaceCallback { |
| 34 | /** |
Hai Shalom | 349bc58 | 2020-10-30 15:25:40 -0700 | [diff] [blame] | 35 | * 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 Ravi | f14d9a0 | 2020-11-08 22:33:25 -0800 | [diff] [blame^] | 43 | @1.0::ISupplicantStaIfaceCallback.AnqpData V1_0; |
| 44 | |
| 45 | /* |
| 46 | * Container for v1.0 of this struct |
| 47 | */ |
| 48 | vec<uint8_t> venueUrl; |
Hai Shalom | 349bc58 | 2020-10-30 15:25:40 -0700 | [diff] [blame] | 49 | }; |
| 50 | |
| 51 | /** |
Hai Shalom | 1cc3ba2 | 2020-10-28 18:09:26 -0700 | [diff] [blame] | 52 | * 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 Shalom | 349bc58 | 2020-10-30 15:25:40 -0700 | [diff] [blame] | 59 | |
| 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 Shalom | 1cc3ba2 | 2020-10-28 18:09:26 -0700 | [diff] [blame] | 71 | }; |