diff options
author | Harald Welte <laforge@gnumonks.org> | 2013-10-28 09:42:14 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2013-10-28 10:15:47 +0100 |
commit | b8687024eac87d325056db55ff181da2ded8a310 (patch) | |
tree | 59ed9617cbe44be065ce4fa6003f74db9d5b5592 /src/osmo-bts-sysmo/utils.c | |
parent | 501673fcf378a3b519875d6b4b77b1967038af24 (diff) |
sysmobts calibration: skip bands not supported by L1
If L1 tells us that a certain band is not supported, then there is no
point in even trying to read+load calibration tables from EEPROM or
files.
Diffstat (limited to 'src/osmo-bts-sysmo/utils.c')
-rw-r--r-- | src/osmo-bts-sysmo/utils.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/utils.c b/src/osmo-bts-sysmo/utils.c index 50898453..0114fd3e 100644 --- a/src/osmo-bts-sysmo/utils.c +++ b/src/osmo-bts-sysmo/utils.c @@ -29,6 +29,22 @@ #include "femtobts.h" #include "l1_if.h" +int band_femto2osmo(GsmL1_FreqBand_t band) +{ + switch (band) { + case GsmL1_FreqBand_850: + return GSM_BAND_850; + case GsmL1_FreqBand_900: + return GSM_BAND_900; + case GsmL1_FreqBand_1800: + return GSM_BAND_1800; + case GsmL1_FreqBand_1900: + return GSM_BAND_1900; + default: + return -1; + } +} + static int band_osmo2femto(struct gsm_bts_trx *trx, enum gsm_band osmo_band) { struct femtol1_hdl *fl1h = trx_femtol1_hdl(trx); |