• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env python3
2#
3#   Copyright 2019 - The Android Open Source Project
4#
5#   Licensed under the Apache License, Version 2.0 (the "License");
6#   you may not use this file except in compliance with the License.
7#   You may obtain a copy of the License at
8#
9#       http://www.apache.org/licenses/LICENSE-2.0
10#
11#   Unless required by applicable law or agreed to in writing, software
12#   distributed under the License is distributed on an "AS IS" BASIS,
13#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14#   See the License for the specific language governing permissions and
15#   limitations under the License.
16
17
18# WiFi Frequency and channel map.
19wifi_channel_map = {
20    2412: 1,
21    2417: 2,
22    2422: 3,
23    2427: 4,
24    2432: 5,
25    2437: 6,
26    2442: 7,
27    2447: 8,
28    2452: 9,
29    2457: 10,
30    2462: 11,
31    2467: 12,
32    2472: 13,
33    2484: 14,
34    5170: 34,
35    5180: 36,
36    5190: 38,
37    5200: 40,
38    5210: 42,
39    5220: 44,
40    5230: 46,
41    5240: 48,
42    5260: 52,
43    5280: 56,
44    5300: 60,
45    5320: 64,
46    5500: 100,
47    5520: 104,
48    5540: 108,
49    5560: 112,
50    5580: 116,
51    5600: 120,
52    5620: 124,
53    5640: 128,
54    5660: 132,
55    5680: 136,
56    5700: 140,
57    5720: 144,
58    5745: 149,
59    5755: 151,
60    5765: 153,
61    5775: 155,
62    5795: 159,
63    5785: 157,
64    5805: 161,
65    5825: 165
66}
67
68# Supported lte band.
69# TODO:(@sairamganesh) Make a common function to support different SKU's.
70
71supported_lte_bands = ['OB1', 'OB2', 'OB3', 'OB4', 'OB5', 'OB7', 'OB8',
72                       'OB12', 'OB13', 'OB14', 'OB17', 'OB18', 'OB19',
73                       'OB20', 'OB25', 'OB26', 'OB28', 'OB30', 'OB38',
74                       'OB39', 'OB40', 'OB41', 'OB46', 'OB48', 'OB66',
75                       'OB71'
76                       ]
77
78# list of TDD Bands supported.
79tdd_band_list = ['OB33', 'OB34', 'OB35', 'OB36', 'OB37', 'OB38', 'OB39', 'OB40',
80                 'OB41', 'OB42', 'OB43', 'OB44']
81
82# lte band channel map.
83# For every band three channels are chosen(Low, Mid and High)
84band_channel_map = {
85    'OB1': [25, 300, 575],
86    'OB2': [625, 900, 1175],
87    'OB3': [1225, 1575, 1925],
88    'OB4': [1975, 2175, 2375],
89    'OB5': [2425, 2525, 2625],
90    'OB7': [3100],
91    'OB8': [3475, 3625, 3775],
92    'OB12': [5035, 5095, 5155],
93    'OB13': [5205, 5230, 5255],
94    'OB14': [5310, 5330, 5355],
95    'OB17': [5755, 5790, 5825],
96    'OB18': [5875, 5925, 5975],
97    'OB19': [6025, 6075, 6125],
98    'OB20': [6180, 6300, 6425],
99    'OB25': [8065, 8365, 8665],
100    'OB26': [8715, 8865, 9010],
101    'OB28': [9235, 9435, 9635],
102    'OB30': [9795, 9820, 9840],
103    'OB38': [37750, 38000, 38245],
104    'OB39': [38250, 38450, 38645],
105    'OB40': [38650, 39150, 39645],
106    'OB41': [39650, 40620, 41585],
107    'OB46': [46790, 50665, 54535],
108    'OB48': [55240, 55990, 56735],
109    'OB66': [66461, 66886, 67331],
110    'OB71': [68611, 68761, 68906]
111}
112