blob: f70c744a940b2141b26a7c5c78b072888c84d04c [file] [log] [blame]
Gabriel Biren910d5df2022-04-08 18:21:22 +00001/*
2 * Copyright (C) 2022 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;
18
19/**
20 * Interface operating modes.
21 */
22@VintfStability
23@Backing(type="int")
24enum WifiIfaceMode {
25 /**
26 * Interface operation mode is client.
27 */
28 IFACE_MODE_STA = 1 << 0,
29 /**
30 * Interface operation mode is Hotspot.
31 */
32 IFACE_MODE_SOFTAP = 1 << 1,
33 /**
34 * Interface operation mode is Ad-Hoc network.
35 */
36 IFACE_MODE_IBSS = 1 << 2,
37 /**
38 * Interface operation mode is Wifi Direct Client.
39 */
40 IFACE_MODE_P2P_CLIENT = 1 << 3,
41 /**
42 * Interface operation mode is Wifi Direct Group Owner.
43 */
44 IFACE_MODE_P2P_GO = 1 << 4,
45 /**
46 * Interface operation mode is Aware.
47 */
48 IFACE_MODE_NAN = 1 << 5,
49 /**
50 * Interface operation mode is Mesh network.
51 */
52 IFACE_MODE_MESH = 1 << 6,
53 /**
54 * Interface operation mode is Tunneled Direct Link Setup.
55 */
56 IFACE_MODE_TDLS = 1 << 7,
57}