From 8c3d807b3fc785ffb18aeb97355150c92221e8a0 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 9 Aug 2012 11:38:15 +0200 Subject: [PATCH] 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. --- src/osmo-bts-sysmo/oml.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/osmo-bts-sysmo/oml.c b/src/osmo-bts-sysmo/oml.c index 705fd83c8..1240b2baf 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();