aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-02-02 18:39:24 +0100
committerHarald Welte <laforge@gnumonks.org>2017-02-02 18:41:02 +0100
commit1965b0d88082e427930f95071e992f0d9be79047 (patch)
treea7d5c312006331f44de3ad1708f39664878fc13a /src/osmo-bts-sysmo
parent67bc885c5d85237cc15b47ee2ee6773ea2af28e1 (diff)
sysmobts: Add correct nominal transmit power for sysmoBTS 1020
The sysmoBTS 1020 is a 2W BTS, hence its nominal transmit powre is 33dBm. We must handle this correctly based on the model-nr in the EEPROM. As a result, proper power ramping will be made during start of the unit by default. Change-Id: I91a78dadfd7d2e1bc74c8086808c55effdcdd132
Diffstat (limited to 'src/osmo-bts-sysmo')
-rw-r--r--src/osmo-bts-sysmo/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/utils.c b/src/osmo-bts-sysmo/utils.c
index a636ae15..8f54e6f2 100644
--- a/src/osmo-bts-sysmo/utils.c
+++ b/src/osmo-bts-sysmo/utils.c
@@ -125,6 +125,8 @@ int sysmobts_get_nominal_power(struct gsm_bts_trx *trx)
case 1002:
/* 200mW (23 dBm) nominal power */
return 23;
+ case 1020:
+ return 33;
case 2050:
/* 5W(37dBm) per TRX. This could be raiesd to 10W(40dBm)
* if the second TRX is not used. */