diff options
author | Philipp <pmaier@sysmocom.de> | 2016-09-22 14:48:19 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-09-24 03:25:01 +0000 |
commit | a570e05ec865c846cbc3bfbdaef4eafe3b7a2da6 (patch) | |
tree | fafb9a8d8631ff81eed06463cc6bdac76895e58d /src | |
parent | e2069d968c20fb097a63b9573d324b9157f4a500 (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
Diffstat (limited to 'src')
-rw-r--r-- | src/osmo-bts-octphy/l1_if.c | 4 |
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; |