blob: 8bb0de80cb5ce7fd3826e6b39b29f6fafd1ae811 [file] [log] [blame]
Ahmed ElArabawy95e36b72019-11-15 21:24:53 +00001/*
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
17package android.hardware.wifi@1.4;
18
19import @1.0::WifiStatus;
20import @1.0::MacAddress;
21import @1.0::IWifiStaIface;
22import @1.3::IWifiStaIface;
23
24/**
25 * Interface used to represent a single STA iface.
26 *
27 * IWifiChip.createStaIface() may return a @1.4::IWifiStaIface when supported.
28 */
29interface IWifiStaIface extends @1.3::IWifiStaIface {
Ahmed ElArabawy95e36b72019-11-15 21:24:53 +000030 enum StaIfaceCapabilityMask : @1.0::IWifiStaIface.StaIfaceCapabilityMask {
Ahmed ElArabawy46b56982019-12-09 21:47:42 -080031 STA_6G = 1 << 15,
Ahmed ElArabawy95e36b72019-11-15 21:24:53 +000032 };
33
Ahmed ElArabawy46b56982019-12-09 21:47:42 -080034 /**
35 * Get the capabilities supported by this STA iface.
36 *
37 * @return status WifiStatus of the operation.
38 * Possible status codes:
39 * |WifiStatusCode.SUCCESS|,
40 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|,
41 * |WifiStatusCode.ERROR_NOT_AVAILABLE|,
42 * |WifiStatusCode.ERROR_NOT_SUPPORTED|,
43 * |WifiStatusCode.ERROR_UNKNOWN|
44 * @return capabilities Bitset of |StaIfaceCapabilityMask| values.
45 */
46 getCapabilities_1_4()
47 generates (WifiStatus status, bitfield<StaIfaceCapabilityMask> capabilities);
Ahmed ElArabawy95e36b72019-11-15 21:24:53 +000048};