blob: 5243baf7f31f67e810fb49e0d604d6ab6cbb33f6 [file] [log] [blame]
Jimmy Chen1bdf1a72019-12-23 17:53:40 +02001/*
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
17package android.hardware.wifi@1.5;
18
19import @1.0::WifiStatus;
20import @1.0::IWifiIface;
21import @1.3::IWifiChip;
22import @1.4::IWifiChip;
23
24/**
25 * Interface that represents a chip that must be configured as a single unit.
26 */
27interface IWifiChip extends @1.4::IWifiChip {
28 /**
29 * Capabilities exposed by this chip.
30 */
31 enum ChipCapabilityMask : @1.3::IWifiChip.ChipCapabilityMask {
32 /**
33 * chip can operate in the 60GHz band(WiGig chip)
34 */
35 WIGIG = 1 << 14,
36 };
37
38 /**
39 * Get the capabilities supported by this chip.
40 *
41 * @return status WifiStatus of the operation.
42 * Possible status codes:
43 * |WifiStatusCode.SUCCESS|,
44 * |WifiStatusCode.ERROR_WIFI_CHIP_INVALID|,
45 * |WifiStatusCode.ERROR_NOT_AVAILABLE|,
46 * |WifiStatusCode.ERROR_UNKNOWN|
47 * @return capabilities Bitset of |ChipCapabilityMask| values.
48 */
49 getCapabilities_1_5()
50 generates (WifiStatus status, bitfield<ChipCapabilityMask> capabilities);
51};