jolly has uploaded this change for review. ( 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(-)
git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/92/41392/1
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) {