Etan Cohen | 6ce5090 | 2017-09-14 07:30:57 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017 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.2; |
| 18 | |
Roshan Pius | 1ce92cf | 2018-01-22 16:12:19 -0800 | [diff] [blame] | 19 | import @1.0::WifiStatus; |
Etan Cohen | 6ce5090 | 2017-09-14 07:30:57 -0700 | [diff] [blame] | 20 | import @1.1::IWifiChip; |
Roshan Pius | 1ce92cf | 2018-01-22 16:12:19 -0800 | [diff] [blame] | 21 | import IWifiChipEventCallback; |
Etan Cohen | 6ce5090 | 2017-09-14 07:30:57 -0700 | [diff] [blame] | 22 | |
| 23 | /** |
| 24 | * Interface that represents a chip that must be configured as a single unit. |
| 25 | * The HAL/driver/firmware will be responsible for determining which phy is used |
| 26 | * to perform operations like NAN, RTT, etc. |
| 27 | */ |
| 28 | interface IWifiChip extends @1.1::IWifiChip { |
Roshan Pius | 1ce92cf | 2018-01-22 16:12:19 -0800 | [diff] [blame] | 29 | /** |
| 30 | * Requests notifications of significant events on this chip. Multiple calls |
| 31 | * to this must register multiple callbacks each of which must receive all |
| 32 | * events. |
| 33 | * |
| 34 | * @param callback An instance of the |IWifiChipEventCallback| HIDL interface |
| 35 | * object. |
| 36 | * @return status WifiStatus of the operation. |
| 37 | * Possible status codes: |
| 38 | * |WifiStatusCode.SUCCESS|, |
| 39 | * |WifiStatusCode.ERROR_WIFI_CHIP_INVALID| |
| 40 | */ |
| 41 | registerEventCallback_1_2(IWifiChipEventCallback callback) |
| 42 | generates (WifiStatus status); |
Etan Cohen | 6ce5090 | 2017-09-14 07:30:57 -0700 | [diff] [blame] | 43 | }; |