blob: 50cd02ddeb35c16723aa5482353e7e4dde913eb3 [file] [log] [blame]
Roshan Piusee3daf92017-06-20 11:36:29 -07001/*
2 * Copyright 2016 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@1.1;
18
19import @1.0::IWifiChip;
20import @1.0::WifiStatus;
21
22/**
23 * Interface that represents a chip that must be configured as a single unit.
24 * The HAL/driver/firmware will be responsible for determining which phy is used
25 * to perform operations like NAN, RTT, etc.
26 */
27interface IWifiChip extends @1.0::IWifiChip {
28 /**
29 * Capabilities exposed by this chip.
30 */
31 enum ChipCapabilityMask : @1.0::IWifiChip.ChipCapabilityMask {
32 /**
33 * Set/Reset Tx Power limits.
34 */
Roshan Pius08df76e2017-07-17 13:10:01 -070035 SET_TX_POWER_LIMIT = 1 << 8,
36 /**
37 * Device to Device RTT.
38 */
39 D2D_RTT = 1 << 9,
40 /**
41 * Device to AP RTT.
42 */
43 D2AP_RTT = 1 << 10
Roshan Piusee3daf92017-06-20 11:36:29 -070044 };
45
46 /**
47 * API to set TX power limit.
48 * This is used for meeting SAR requirements while making VOIP calls for
49 * example.
50 *
51 * @param powerInDbm Power level in dBm.
52 * @return status WifiStatus of the operation.
53 * Possible status codes:
54 * |WifiStatusCode.SUCCESS|,
55 * |WifiStatusCode.ERROR_WIFI_CHIP_INVALID|,
56 * |WifiStatusCode.ERROR_NOT_SUPPORTED|,
57 * |WifiStatusCode.NOT_AVAILABLE|,
58 * |WifiStatusCode.UNKNOWN|
59 */
60 setTxPowerLimit(int32_t powerInDbm) generates (WifiStatus status);
61
62 /**
63 * API to reset TX power limit.
64 * This is used to set the power back to default values.
65 *
66 * @return status WifiStatus of the operation.
67 * Possible status codes:
68 * |WifiStatusCode.SUCCESS|,
69 * |WifiStatusCode.ERROR_WIFI_CHIP_INVALID|,
70 * |WifiStatusCode.ERROR_NOT_SUPPORTED|,
71 * |WifiStatusCode.NOT_AVAILABLE|,
72 * |WifiStatusCode.UNKNOWN|
73 */
74 resetTxPowerLimit() generates (WifiStatus status);
75};