[MERGED] osmo-bts[master]: octphy: Fixing band selection for ARFCN 0

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sat Sep 24 03:36:08 UTC 2016


Harald Welte has submitted this change and it was merged.

Change subject: octphy: Fixing band selection for ARFCN 0
......................................................................


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
---
M src/osmo-bts-octphy/l1_if.c
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo-bts-octphy/l1_if.c b/src/osmo-bts-octphy/l1_if.c
index d621bcf..c4105ac 100644
--- a/src/osmo-bts-octphy/l1_if.c
+++ b/src/osmo-bts-octphy/l1_if.c
@@ -98,7 +98,9 @@
 	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;

-- 
To view, visit https://gerrit.osmocom.org/903
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If012f31121e9d0d45b36459807c5f290aa17374f
Gerrit-PatchSet: 3
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list