diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-11-27 13:03:21 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-11-27 13:28:59 +0100 |
commit | ed9d643036d159bcd6dca0d7af47e6691b572a8a (patch) | |
tree | c4889f7aa81e7885d6148c7e5b05b44033758144 /src/osmo-bts-sysmo/main.c | |
parent | e14ddaf204b353d5b5a14f555da419178163a189 (diff) |
sysmobts: Make the eeprom/nominal power reading backward compatible
There are existing deployments where the EEPROM either contains a
wrong value and/or the kernel can not be updated to support the
different EEPROM of revD. Revert to the old behavior that if no
nominal can be derived from the model_nr we assume that it is 23.
Diffstat (limited to 'src/osmo-bts-sysmo/main.c')
-rw-r--r-- | src/osmo-bts-sysmo/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osmo-bts-sysmo/main.c b/src/osmo-bts-sysmo/main.c index 2ee39398..74ee47f8 100644 --- a/src/osmo-bts-sysmo/main.c +++ b/src/osmo-bts-sysmo/main.c @@ -78,9 +78,9 @@ int bts_model_init(struct gsm_bts *bts) rc = sysmobts_get_nominal_power(bts->c0); if (rc < 0) { - LOGP(DL1C, LOGL_FATAL, "Cannot determine nominal " - "transmit power\n"); - return -EIO; + LOGP(DL1C, LOGL_NOTICE, "Cannot determine nominal " + "transmit power. Assuming 23dBm.\n"); + rc = 23; } bts->c0->nominal_power = rc; |