changeset 682:7ddec309313d

alr_pch.c compiles
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 29 Sep 2014 21:35:16 +0000
parents 461ab5b255f5
children 8e40f2974e4c
files gsm-fw/g23m-gsm/alr/Makefile gsm-fw/g23m-gsm/alr/alr_pch.c
diffstat 2 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/g23m-gsm/alr/Makefile	Mon Sep 29 19:57:11 2014 +0000
+++ b/gsm-fw/g23m-gsm/alr/Makefile	Mon Sep 29 21:35:16 2014 +0000
@@ -5,7 +5,8 @@
 CPPFLAGS=-I. -I../../include -I../../include/condat -I../../gpf/inc \
 	-I../../cdginc
 
-OBJS=	alr_cbch.o alr_cs.o alr_csf.o alr_dedi.o alr_em.o alr_main.o alr_nc.o
+OBJS=	alr_cbch.o alr_cs.o alr_csf.o alr_dedi.o alr_em.o alr_main.o alr_nc.o \
+	alr_pch.o
 
 all:	${OBJS}
 
--- a/gsm-fw/g23m-gsm/alr/alr_pch.c	Mon Sep 29 19:57:11 2014 +0000
+++ b/gsm-fw/g23m-gsm/alr/alr_pch.c	Mon Sep 29 21:35:16 2014 +0000
@@ -21,6 +21,10 @@
 #ifndef ALR_PCH_C
 #define ALR_PCH_C
 
+#include "config.h"
+#include "fixedconf.h"
+#include "condat-features.h"
+
 #define ENTITY_PL
 
 /*==== INCLUDES ===================================================*/
@@ -351,8 +355,6 @@
 }
 
 
-
-
 /*
 +--------------------------------------------------------------------+
 | PROJECT : GSM-PS (6103)       MODULE  : ALR_PCH                    |
@@ -828,7 +830,7 @@
   ULONG  tmsi;
   UBYTE  i;
   UBYTE  channel_needed;
-     
+
   /*
    * Check only if IMSI available (len NEQ 0) and
    * ti and pd = 0x06 and
@@ -862,7 +864,7 @@
      */
     if(pch_tmsi_type(TMSI_TYPE_2, frame, channel_needed))
       return;
-   #ifdef GPRS
+#ifdef GPRS
     if(GET_STATE(STATE_MA) NEQ MA_CON_EST)
     {
       tmsi = 0L;