aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp <pmaier@sysmocom.de>2016-09-22 14:48:19 +0200
committerHarald Welte <laforge@gnumonks.org>2016-09-24 03:25:01 +0000
commita570e05ec865c846cbc3bfbdaef4eafe3b7a2da6 (patch)
treefafb9a8d8631ff81eed06463cc6bdac76895e58d
parente2069d968c20fb097a63b9573d324b9157f4a500 (diff)
octphy: Fixing band selection for ARFCN 0
There is now an exception for ARFCN 0 in osmocom_to_octphy_band to distingush ARFCN 0 (E-GSM) and 1-124 (P-GSM). Change-Id: If012f31121e9d0d45b36459807c5f290aa17374f
-rw-r--r--src/osmo-bts-octphy/l1_if.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/osmo-bts-octphy/l1_if.c b/src/osmo-bts-octphy/l1_if.c
index d621bcf5..c4105ac6 100644
--- a/src/osmo-bts-octphy/l1_if.c
+++ b/src/osmo-bts-octphy/l1_if.c
@@ -98,7 +98,9 @@ osmocom_to_octphy_band(enum gsm_band osmo_band, unsigned int arfcn)
case GSM_BAND_850:
return cOCTVC1_RADIO_STANDARD_FREQ_BAND_GSM_ENUM_850;
case GSM_BAND_900:
- if (arfcn >= 955 && arfcn <= 974)
+ if (arfcn == 0)
+ return cOCTVC1_RADIO_STANDARD_FREQ_BAND_GSM_ENUM_E_900;
+ else if (arfcn >= 955 && arfcn <= 974)
return cOCTVC1_RADIO_STANDARD_FREQ_BAND_GSM_ENUM_R_900;
else if (arfcn >= 975 && arfcn <= 1023)
return cOCTVC1_RADIO_STANDARD_FREQ_BAND_GSM_ENUM_E_900;