[PATCH] Fix GSM900 ARFCN range check

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/OpenBSC@lists.osmocom.org/.

Mike McTernan (wavemobile) mike.mcternan at wavemobile.com
Thu Jun 18 08:03:42 UTC 2015


Allow ARFCN 0 to be used in GSM900 band.

Signed-off-by: Michael McTernan <mike.mcternan at wavemobile.com>
Index: osmobss/openbsc/openbsc/src/libbsc/bsc_init.c
===================================================================
--- osmobss.orig/openbsc/openbsc/src/libbsc/bsc_init.c	2015-06-03 11:36:16.114471430 +0100
+++ osmobss/openbsc/openbsc/src/libbsc/bsc_init.c	2015-06-18 08:53:14.116369178 +0100
@@ -379,10 +379,10 @@ static int bootstrap_bts(struct gsm_bts
 		}
 		break;
 	case GSM_BAND_900:
-		if (bts->c0->arfcn < 1 ||
+		if (bts->c0->arfcn < 0 ||
 		   (bts->c0->arfcn > 124 && bts->c0->arfcn < 955) ||
 		    bts->c0->arfcn > 1023)  {
-			LOGP(DNM, LOGL_ERROR, "GSM900 channel must be between 1-124, 955-1023.\n");
+			LOGP(DNM, LOGL_ERROR, "GSM900 channel must be between 0-124, 955-1023.\n");
 			return -EINVAL;
 		}
 		break;




More information about the OpenBSC mailing list