aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/oml.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-08-09 11:38:15 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-08-09 12:15:41 +0200
commit8c3d807b3fc785ffb18aeb97355150c92221e8a0 (patch)
tree78d86651f57cd30383969f902b9978a935685fbe /src/osmo-bts-sysmo/oml.c
parent7daa093df7f5f743e69d73778d695e2f31cec73e (diff)
sysmobts: Do not ignore the band configuration of the BTS.
The band was derived from the ARFCN but this does not work for PCS1900/DCS1800 due overlapping ARFCNs. Use the already existing band configuration to select the band for the MphInitReq. The dsp firmware will complain if the band/arfcn do not match.
Diffstat (limited to 'src/osmo-bts-sysmo/oml.c')
-rw-r--r--src/osmo-bts-sysmo/oml.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/osmo-bts-sysmo/oml.c b/src/osmo-bts-sysmo/oml.c
index 705fd83c..1240b2ba 100644
--- a/src/osmo-bts-sysmo/oml.c
+++ b/src/osmo-bts-sysmo/oml.c
@@ -255,7 +255,6 @@ static int trx_init(struct gsm_bts_trx *trx)
struct msgb *msg;
GsmL1_MphInitReq_t *mi_req;
GsmL1_DeviceParam_t *dev_par;
- enum gsm_band osmo_band;
int femto_band;
if (!gsm_abis_mo_check_attr(&trx->mo, trx_rqd_attr,
@@ -266,11 +265,10 @@ static int trx_init(struct gsm_bts_trx *trx)
//return oml_mo_opstart_nack(&trx->mo, NM_NACK_CANT_PERFORM);
}
- osmo_band = gsm_arfcn2band(trx->arfcn);
- femto_band = band_osmo2femto(osmo_band);
+ femto_band = band_osmo2femto(trx->bts->band);
if (femto_band < 0) {
LOGP(DL1C, LOGL_ERROR, "Unsupported GSM band %s\n",
- gsm_band_name(osmo_band));
+ gsm_band_name(trx->bts->band));
}
msg = l1p_msgb_alloc();