Ahmed ElArabawy | eeb5338 | 2019-10-10 20:18:31 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2019 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.4; |
| 18 | |
| 19 | import @1.0::WifiStatus; |
| 20 | import @1.0::IWifiIface; |
| 21 | import @1.3::IWifiChip; |
| 22 | import IWifiRttController; |
| 23 | |
| 24 | /** |
| 25 | * Interface that represents a chip that must be configured as a single unit. |
| 26 | */ |
| 27 | interface IWifiChip extends @1.3::IWifiChip { |
| 28 | /** |
| 29 | * Create a RTTController instance. |
| 30 | * |
| 31 | * RTT controller can be either: |
| 32 | * a) Bound to a specific iface by passing in the corresponding |IWifiIface| |
| 33 | * object in |iface| param, OR |
| 34 | * b) Let the implementation decide the iface to use for RTT operations by |
| 35 | * passing null in |iface| param. |
| 36 | * |
| 37 | * @param boundIface HIDL interface object representing the iface if |
| 38 | * the responder must be bound to a specific iface, null otherwise. |
| 39 | * @return status WifiStatus of the operation. |
| 40 | * Possible status codes: |
| 41 | * |WifiStatusCode.SUCCESS|, |
| 42 | * |WifiStatusCode.ERROR_WIFI_CHIP_INVALID| |
| 43 | */ |
| 44 | createRttController_1_4(IWifiIface boundIface) |
| 45 | generates (WifiStatus status, IWifiRttController rtt); |
| 46 | }; |