1/*
2 * Copyright (C) 2018 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
17syntax = "proto2";
18package android.net.wifi;
19
20option java_outer_classname = "WifiProtoEnums";
21option java_multiple_files = true;
22
23/**
24 * Wifi Lock modes, primarily used in
25 * frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiLockManager.java.
26 */
27enum WifiModeEnum {
28    /**
29     * Deprecated.
30     * Wi-Fi will be kept active, and will behave normally.
31     */
32    WIFI_MODE_FULL = 1 [deprecated=true];
33
34    /**
35     * Deprecated.
36     * Wi-Fi will be kept active, but the only operation that will be supported is initiation of
37     * scans, and the subsequent reporting of scan results.
38     */
39    WIFI_MODE_SCAN_ONLY = 2 [deprecated=true];
40
41    /**
42     * Wi-Fi will not go to power save.
43     */
44    WIFI_MODE_FULL_HIGH_PERF = 3;
45
46    /**
47     * Wi-Fi will operate with a priority to achieve low latency.
48     */
49    WIFI_MODE_FULL_LOW_LATENCY = 4;
50}
51