Jimmy Chen | d460df3 | 2019-11-29 17:31:22 +0200 | [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@1.5; |
| 18 | |
| 19 | import @1.4::IWifi; |
chenpaul | b690fb8 | 2021-03-16 22:49:18 +0800 | [diff] [blame] | 20 | import IWifiEventCallback; |
| 21 | import @1.0::WifiStatus; |
Jimmy Chen | d460df3 | 2019-11-29 17:31:22 +0200 | [diff] [blame] | 22 | |
| 23 | /** |
| 24 | * This is the root of the HAL module and is the interface returned when |
| 25 | * loading an implementation of the Wi-Fi HAL. There must be at most one |
| 26 | * module loaded in the system. |
| 27 | * IWifi.getChip() must return @1.5::IWifiChip |
| 28 | */ |
chenpaul | b690fb8 | 2021-03-16 22:49:18 +0800 | [diff] [blame] | 29 | interface IWifi extends @1.4::IWifi { |
| 30 | /** |
| 31 | * Requests notifications of significant events for the HAL. Multiple calls to |
| 32 | * this must register multiple callbacks each of which must receive all |
| 33 | * events. |IWifiEventCallback| object registration must be independent of the |
| 34 | * state of the rest of the HAL and must persist though stops/starts. These |
| 35 | * objects must be deleted when the corresponding client process is dead. |
| 36 | * |
| 37 | * @param callback An instance of the |IWifiEventCallback| HIDL interface |
| 38 | * object. |
| 39 | * @return status WifiStatus of the operation. |
| 40 | * Possible status codes: |
| 41 | * |WifiStatusCode.SUCCESS|, |
| 42 | * |WifiStatusCode.UNKNOWN| |
| 43 | */ |
| 44 | registerEventCallback_1_5(IWifiEventCallback callback) |
| 45 | generates (WifiStatus status); |
| 46 | }; |