1# Copyright (c) 2019 The Chromium OS Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5""" Attenuator hostnames with fixed loss overhead on a given antenna line. """ 6 7# This map represents the fixed loss overhead on a given antenna line. 8# The map maps from: 9# attenuator hostname -> attenuator number -> frequency -> loss in dB. 10HOST_FIXED_ATTENUATIONS = { 11 'chromeos1-dev-host4-attenuator': { 12 0: {2437: 53, 5220: 59, 5765: 59}, 13 1: {2437: 56, 5220: 56, 5765: 56}, 14 2: {2437: 53, 5220: 59, 5765: 59}, 15 3: {2437: 57, 5220: 56, 5765: 56}}, 16 'chromeos1-test-host2-attenuator': { 17 0: {2437: 53, 5220: 59, 5765: 58}, 18 1: {2437: 57, 5220: 57, 5765: 59}, 19 2: {2437: 53, 5220: 59, 5765: 58}, 20 3: {2437: 57, 5220: 57, 5765: 59}}, 21 'chromeos15-row3-rack9-host1-attenuator': { 22 0: {2437: 59, 5220: 59, 5765: 59}, 23 1: {2437: 52, 5220: 54, 5765: 54}, 24 2: {2437: 59, 5220: 59, 5765: 59}, 25 3: {2437: 52, 5220: 54, 5765: 54}}, 26 'chromeos15-row3-rack9-host2-attenuator': { 27 0: {2437: 64, 5220: 62, 5765: 62}, 28 1: {2437: 58, 5220: 57, 5765: 57}, 29 2: {2437: 64, 5220: 62, 5765: 62}, 30 3: {2437: 58, 5220: 57, 5765: 57}}, 31 'chromeos15-row3-rack9-host3-attenuator': { 32 0: {2437: 60, 5220: 58, 5765: 58}, 33 1: {2437: 52, 5220: 57, 5765: 57}, 34 2: {2437: 60, 5220: 58, 5765: 58}, 35 3: {2437: 52, 5220: 57, 5765: 57}}, 36 'chromeos15-row3-rack9-host4-attenuator': { 37 0: {2437: 52, 5220: 58, 5765: 58}, 38 1: {2437: 59, 5220: 60, 5765: 60}, 39 2: {2437: 52, 5220: 58, 5765: 58}, 40 3: {2437: 59, 5220: 60, 5765: 60}}, 41 'chromeos15-row3-rack9-host5-attenuator': { 42 0: {2437: 58, 5220: 60, 5765: 60}, 43 1: {2437: 53, 5220: 58, 5765: 58}, 44 2: {2437: 58, 5220: 60, 5765: 60}, 45 3: {2437: 53, 5220: 58, 5765: 58}}, 46 'chromeos15-row3-rack9-host6-attenuator': { 47 0: {2437: 52, 5220: 56, 5765: 58}, 48 1: {2437: 53, 5220: 56, 5765: 57}, 49 2: {2437: 52, 5220: 56, 5765: 58}, 50 3: {2437: 53, 5220: 56, 5765: 57}}, 51 'chromeos15-row3-rack10-host1-attenuator': { 52 0: {2437: 53, 5220: 56, 5765: 56}, 53 1: {2437: 52, 5220: 56, 5765: 56}, 54 2: {2437: 53, 5220: 56, 5765: 56}, 55 3: {2437: 52, 5220: 56, 5765: 56}}, 56 'chromeos15-row3-rack10-host2-attenuator': { 57 0: {2437: 59, 5220: 59, 5765: 59}, 58 1: {2437: 59, 5220: 60, 5765: 60}, 59 2: {2437: 59, 5220: 59, 5765: 59}, 60 3: {2437: 59, 5220: 60, 5765: 60}}, 61 'chromeos15-row3-rack10-host3-attenuator': { 62 0: {2437: 52, 5220: 56, 5765: 56}, 63 1: {2437: 64, 5220: 63, 5765: 63}, 64 2: {2437: 52, 5220: 56, 5765: 56}, 65 3: {2437: 64, 5220: 63, 5765: 63}}, 66 'chromeos15-row3-rack10-host4-attenuator': { 67 0: {2437: 52, 5220: 55, 5765: 55}, 68 1: {2437: 58, 5220: 58, 5765: 58}, 69 2: {2437: 52, 5220: 55, 5765: 55}, 70 3: {2437: 58, 5220: 58, 5765: 58}}, 71 'chromeos15-row3-rack10-host5-attenuator': { 72 0: {2437: 57, 5220: 58, 5765: 58}, 73 1: {2437: 52, 5220: 55, 5765: 55}, 74 2: {2437: 57, 5220: 58, 5765: 58}, 75 3: {2437: 52, 5220: 55, 5765: 55}}, 76 'chromeos15-row3-rack10-host6-attenuator': { 77 0: {2437: 57, 5220: 57, 5765: 57}, 78 1: {2437: 52, 5220: 55, 5765: 55}, 79 2: {2437: 57, 5220: 57, 5765: 57}, 80 3: {2437: 52, 5220: 55, 5765: 55}}, 81 'chromeos15-row3-rack11-host1-attenuator': { 82 0: {2437: 53, 5220: 58, 5765: 57}, 83 1: {2437: 56, 5220: 56, 5765: 58}, 84 2: {2437: 53, 5220: 58, 5765: 57}, 85 3: {2437: 56, 5220: 56, 5765: 57}}, 86 'chromeos15-row3-rack11-host2-attenuator': { 87 0: {2437: 53, 5220: 58, 5765: 56}, 88 1: {2437: 56, 5220: 56, 5765: 58}, 89 2: {2437: 53, 5220: 59, 5765: 56}, 90 3: {2437: 56, 5220: 56, 5765: 56}}, 91 'chromeos15-row3-rack11-host3-attenuator': { 92 0: {2437: 52, 5220: 57, 5765: 59}, 93 1: {2437: 55, 5220: 55, 5765: 54}, 94 2: {2437: 52, 5220: 57, 5765: 59}, 95 3: {2437: 55, 5220: 55, 5765: 54}}, 96 'chromeos15-row3-rack11-host4-attenuator': { 97 0: {2437: 52, 5220: 58, 5765: 59}, 98 1: {2437: 56, 5220: 56, 5765: 55}, 99 2: {2437: 52, 5220: 57, 5765: 59}, 100 3: {2437: 56, 5220: 56, 5765: 55}}, 101 'chromeos15-row3-rack11-host5-attenuator': { 102 0: {2437: 53, 5220: 58, 5765: 58}, 103 1: {2437: 55, 5220: 56, 5765: 55}, 104 2: {2437: 53, 5220: 58, 5765: 59}, 105 3: {2437: 56, 5220: 55, 5765: 55}}, 106 'chromeos15-row3-rack11-host6-attenuator': { 107 0: {2437: 52, 5220: 58, 5765: 59}, 108 1: {2437: 55, 5220: 55, 5765: 54}, 109 2: {2437: 52, 5220: 57, 5765: 59}, 110 3: {2437: 55, 5220: 55, 5765: 54}}, 111 'chromeos15-row3-rack12-host1-attenuator': { 112 0: {2437: 53, 5220: 59, 5765: 58}, 113 1: {2437: 55, 5220: 57, 5765: 55}, 114 2: {2437: 57, 5220: 59, 5765: 58}, 115 3: {2437: 55, 5220: 56, 5765: 55}}, 116 'chromeos15-row3-rack12-host2-attenuator': { 117 0: {2437: 52, 5220: 59, 5765: 56}, 118 1: {2437: 55, 5220: 56, 5765: 55}, 119 2: {2437: 52, 5220: 59, 5765: 57}, 120 3: {2437: 55, 5220: 56, 5765: 55}}, 121 'chromeos15-row3-rack12-host3-attenuator': { 122 0: {2437: 52, 5220: 58, 5765: 57}, 123 1: {2437: 55, 5220: 57, 5765: 55}, 124 2: {2437: 52, 5220: 59, 5765: 59}, 125 3: {2437: 55, 5220: 59, 5765: 55}}, 126 'chromeos15-row3-rack12-host4-attenuator': { 127 0: {2437: 52, 5220: 58, 5765: 56}, 128 1: {2437: 55, 5220: 56, 5765: 55}, 129 2: {2437: 52, 5220: 58, 5765: 56}, 130 3: {2437: 55, 5220: 56, 5765: 56}}, 131 'chromeos15-row3-rack12-host5-attenuator': { 132 0: {2437: 53, 5220: 59, 5765: 58}, 133 1: {2437: 55, 5220: 56, 5765: 55}, 134 2: {2437: 52, 5220: 59, 5765: 59}, 135 3: {2437: 55, 5220: 56, 5765: 55}}, 136 'chromeos15-row3-rack12-host6-attenuator': { 137 0: {2437: 52, 5220: 59, 5765: 57}, 138 1: {2437: 55, 5220: 56, 5765: 55}, 139 2: {2437: 52, 5220: 58, 5765: 56}, 140 3: {2437: 55, 5220: 56, 5765: 55}}, 141 } 142