laforge has submitted this change. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/41392?usp=email )

Change subject: gsm/gsm_utils: Support the ER-GSM band (ARFCN 940..954)
......................................................................

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(-)

Approvals:
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified
  fixeria: Looks good to me, approved




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 https://gerrit.osmocom.org/c/osmocom-bb/+/41392?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I2fbddc523e72c6d6134e8a9d8132ad58266ce0db
Gerrit-Change-Number: 41392
Gerrit-PatchSet: 1
Gerrit-Owner: jolly <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>

Reply via email to