FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/g23m-gsm/mm/mm_forp.c @ 720:5e2663894f03
mm_forp.c compiles
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sat, 04 Oct 2014 01:14:17 +0000 |
parents | 2f7df7a314f8 |
children |
comparison
equal
deleted
inserted
replaced
719:9686546a3cf8 | 720:5e2663894f03 |
---|---|
20 */ | 20 */ |
21 | 21 |
22 #ifndef MM_FORP_C | 22 #ifndef MM_FORP_C |
23 #define MM_FORP_C | 23 #define MM_FORP_C |
24 | 24 |
25 #include "config.h" | |
26 #include "fixedconf.h" | |
27 #include "condat-features.h" | |
28 | |
25 #define ENTITY_MM | 29 #define ENTITY_MM |
26 | 30 |
27 /*==== INCLUDES ===================================================*/ | 31 /*==== INCLUDES ===================================================*/ |
28 #if defined (NEW_FRAME) | 32 #if defined (NEW_FRAME) |
29 | 33 |
138 | 142 |
139 csf_read_mobile_class_2 (&mob_class_2); | 143 csf_read_mobile_class_2 (&mob_class_2); |
140 | 144 |
141 rr_data_ind->sdu.l_buf -= 8; | 145 rr_data_ind->sdu.l_buf -= 8; |
142 rr_data_ind->sdu.o_buf += 8; | 146 rr_data_ind->sdu.o_buf += 8; |
143 | 147 |
144 if (ccd_decodeMsg (CCDENT_MM, | 148 if (ccd_decodeMsg (CCDENT_MM, |
145 DOWNLINK, | 149 DOWNLINK, |
146 (T_MSGBUF *) &rr_data_ind->sdu, | 150 (T_MSGBUF *) &rr_data_ind->sdu, |
147 (UBYTE *) _decodedMsg, | 151 (UBYTE *) _decodedMsg, |
148 NOT_PRESENT_8BIT) NEQ ccdOK) | 152 NOT_PRESENT_8BIT) NEQ ccdOK) |
201 payload = &(rr_data_ind->sdu.buf[0]); /* beginning of buffer */ | 205 payload = &(rr_data_ind->sdu.buf[0]); /* beginning of buffer */ |
202 payload += ((rr_data_ind->sdu.o_buf) >> 3) - 1; /* plus offset (bytes) */ | 206 payload += ((rr_data_ind->sdu.o_buf) >> 3) - 1; /* plus offset (bytes) */ |
203 length = ((rr_data_ind->sdu.l_buf) >> 3) + 1; /* length (bytes, bits / 8) */ | 207 length = ((rr_data_ind->sdu.l_buf) >> 3) + 1; /* length (bytes, bits / 8) */ |
204 | 208 |
205 | 209 |
206 | |
207 /* Implements Measure#32: Row 14,...,24 */ | 210 /* Implements Measure#32: Row 14,...,24 */ |
208 switch (_decodedMsg[0]) | 211 switch (_decodedMsg[0]) |
209 { | 212 { |
210 case D_AUTH_REJ: | 213 case D_AUTH_REJ: |
211 TRACE_BINDUMP( mm_handle, | 214 TRACE_BINDUMP( mm_handle, |