laforge submitted this change.

View Change

Approvals: pespin: Looks good to me, but someone else must approve Jenkins Builder: Verified fixeria: Looks good to me, approved
gsm/gsm_utils: Support the ER-GSM band (ARFCN 940..954)

Backport from libosmocore.git commit 28973f0d29

Change-Id: I2fbddc523e72c6d6134e8a9d8132ad58266ce0db
---
M src/shared/libosmocore/src/gsm/gsm_utils.c
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/shared/libosmocore/src/gsm/gsm_utils.c b/src/shared/libosmocore/src/gsm/gsm_utils.c
index 4b170df..66d5abb 100644
--- a/src/shared/libosmocore/src/gsm/gsm_utils.c
+++ b/src/shared/libosmocore/src/gsm/gsm_utils.c
@@ -481,7 +481,7 @@
return GSM_BAND_1900;
else if (arfcn <= 124)
return GSM_BAND_900;
- else if (arfcn >= 955 && arfcn <= 1023)
+ else if (arfcn >= 940 && arfcn <= 1023)
return GSM_BAND_900;
else if (arfcn >= 128 && arfcn <= 251)
return GSM_BAND_850;
@@ -517,8 +517,8 @@
/* Primary GSM + ARFCN 0 of E-GSM */
freq10_ul = 8900 + 2 * arfcn;
freq10_dl = freq10_ul + 450;
- } else if (arfcn >= 955 && arfcn <= 1023) {
- /* E-GSM and R-GSM */
+ } else if (arfcn >= 940 && arfcn <= 1023) {
+ /* E-GSM and R-GSM and ER-GSM */
freq10_ul = 8900 + 2 * (arfcn - 1024);
freq10_dl = freq10_ul + 450;
} else if (arfcn >= 128 && arfcn <= 251) {

To view, visit change 41392. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I2fbddc523e72c6d6134e8a9d8132ad58266ce0db
Gerrit-Change-Number: 41392
Gerrit-PatchSet: 1
Gerrit-Owner: jolly <andreas@eversberg.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>