Gabriel Biren | 910d5df | 2022-04-08 18:21:22 +0000 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package android.hardware.wifi; |
| 18 | |
| 19 | /** |
| 20 | * Wifi bands defined in the 80211 spec. |
| 21 | */ |
| 22 | @VintfStability |
| 23 | @Backing(type="int") |
| 24 | enum WifiBand { |
| 25 | BAND_UNSPECIFIED = 0, |
| 26 | /** |
| 27 | * 2.4 GHz. |
| 28 | */ |
| 29 | BAND_24GHZ = 1, |
| 30 | /** |
| 31 | * 5 GHz without DFS. |
| 32 | */ |
| 33 | BAND_5GHZ = 2, |
| 34 | /** |
| 35 | * 5 GHz DFS only. |
| 36 | */ |
| 37 | BAND_5GHZ_DFS = 4, |
| 38 | /** |
| 39 | * 5 GHz with DFS. |
| 40 | */ |
| 41 | BAND_5GHZ_WITH_DFS = 6, |
| 42 | /** |
| 43 | * 2.4 GHz + 5 GHz; no DFS. |
| 44 | */ |
| 45 | BAND_24GHZ_5GHZ = 3, |
| 46 | /** |
| 47 | * 2.4 GHz + 5 GHz with DFS. |
| 48 | */ |
| 49 | BAND_24GHZ_5GHZ_WITH_DFS = 7, |
| 50 | /** |
| 51 | * 6 GHz. |
| 52 | */ |
| 53 | BAND_6GHZ = 8, |
| 54 | /** |
| 55 | * 5 GHz no DFS + 6 GHz. |
| 56 | */ |
| 57 | BAND_5GHZ_6GHZ = 10, |
| 58 | /** |
| 59 | * 2.4 GHz + 5 GHz no DFS + 6 GHz. |
| 60 | */ |
| 61 | BAND_24GHZ_5GHZ_6GHZ = 11, |
| 62 | /** |
| 63 | * 2.4 GHz + 5 GHz with DFS + 6 GHz. |
| 64 | */ |
| 65 | BAND_24GHZ_5GHZ_WITH_DFS_6GHZ = 15, |
| 66 | /** |
| 67 | * 60 GHz. |
| 68 | */ |
| 69 | BAND_60GHZ = 16, |
| 70 | /** |
| 71 | * 2.4 GHz + 5 GHz no DFS + 6 GHz + 60 GHz. |
| 72 | */ |
| 73 | BAND_24GHZ_5GHZ_6GHZ_60GHZ = 27, |
| 74 | /** |
| 75 | * 2.4 GHz + 5 GHz with DFS + 6 GHz + 60 GHz. |
| 76 | */ |
| 77 | BAND_24GHZ_5GHZ_WITH_DFS_6GHZ_60GHZ = 31, |
| 78 | } |