osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/41355?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)
So far we've supported R-GSM (ARFCN 955-974) and E-GSM (ARFCN 975..1023) but not yet the ER-GSM range (ARFCN 940..954) in the gsm_arfcn2freq10() and gsm_freq102arfcn() functions. This patch fixes this.
Change-Id: I2f17bca405403ee12cfe7c5c804c135ab021b369 (cherry picked from commit 28973f0d29e07bc59cbee450211f4bba64ec488c) --- M src/gsm/gsm_utils.c 1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/55/41355/1
diff --git a/src/gsm/gsm_utils.c b/src/gsm/gsm_utils.c index 64fbd63..3ca6812 100644 --- a/src/gsm/gsm_utils.c +++ b/src/gsm/gsm_utils.c @@ -739,7 +739,7 @@ } else if (arfcn <= 124) { *band = GSM_BAND_900; return 0; - } else if (arfcn >= 955 && arfcn <= 1023) { + } else if (arfcn >= 940 && arfcn <= 1023) { *band = GSM_BAND_900; return 0; } else if (arfcn >= 128 && arfcn <= 251) { @@ -787,10 +787,11 @@ uint16_t flags; };
+/* See 3GPP TS 45.005 Section 2 Table 2-2 */ static struct gsm_freq_range gsm_ranges[] = { { 512, 810, 18502, 800, ARFCN_PCS }, /* PCS 1900 */ { 0, 124, 8900, 450, 0 }, /* P-GSM + E-GSM ARFCN 0 */ - { 955, 1023, 8762, 450, 0 }, /* E-GSM + R-GSM */ + { 940, 1023, 8732, 450, 0 }, /* E-GSM + R-GSM + ER-GSM */ { 128, 251, 8242, 450, 0 }, /* GSM 850 */ { 512, 885, 17102, 950, 0 }, /* DCS 1800 */ { 259, 293, 4506, 100, 0 }, /* GSM 450 */