diff mbox

Fix GSM900 ARFCN range check

Message ID B7D827E17A958449871286AB5AE2391A5DDC63@GRID.cxn.local
State Accepted
Headers show

Commit Message

Mike McTernan (wavemobile) June 18, 2015, 8:03 a.m. UTC
Allow ARFCN 0 to be used in GSM900 band.

Signed-off-by: Michael McTernan <mike.mcternan@wavemobile.com>
diff mbox

Patch

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;