FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/g23m-gsm/cc/cc_ffk.c @ 693:59f088f893a5
cc_ffk.c compiles
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Tue, 30 Sep 2014 01:56:15 +0000 |
parents | 2f7df7a314f8 |
children |
comparison
equal
deleted
inserted
replaced
692:c1cda30fda52 | 693:59f088f893a5 |
---|---|
19 +----------------------------------------------------------------------------- | 19 +----------------------------------------------------------------------------- |
20 */ | 20 */ |
21 | 21 |
22 #ifndef CC_FFK_C | 22 #ifndef CC_FFK_C |
23 #define CC_FFK_C | 23 #define CC_FFK_C |
24 | |
25 #include "config.h" | |
26 #include "fixedconf.h" | |
27 #include "condat-features.h" | |
24 | 28 |
25 #define ENTITY_CC | 29 #define ENTITY_CC |
26 /*==== INCLUDES ===================================================*/ | 30 /*==== INCLUDES ===================================================*/ |
27 | 31 |
28 #include <string.h> | 32 #include <string.h> |
218 TRACE_FUNCTION ("for_check_cc_cause()"); | 222 TRACE_FUNCTION ("for_check_cc_cause()"); |
219 //TISH patch for OMAPS00129223 | 223 //TISH patch for OMAPS00129223 |
220 #if 0 | 224 #if 0 |
221 /* | 225 /* |
222 * this is a (dirty) "trick" to detect that the cause IE was not present | 226 * this is a (dirty) "trick" to detect that the cause IE was not present |
223 * although mandatory (for some messages): value 0 is reserved, i.e. it is not | 227 * although mandatory (for some messages): value 0 is reserved, i.e. it is not |
224 * expected that it will be sent by a network; CCD/the frame ensures that the | 228 * expected that it will be sent by a network; CCD/the frame ensures that the |
225 * memory contents is 0 which will be seen as value if the cause IE was not present | 229 * memory contents is 0 which will be seen as value if the cause IE was not present |
226 */ | 230 */ |
227 if (cc_cause->cause EQ 0) | 231 if (cc_cause->cause EQ 0) |
228 return FALSE; | 232 return FALSE; |
441 GET_INSTANCE_DATA; | 445 GET_INSTANCE_DATA; |
442 TRACE_FUNCTION ("for_set_optional_error()"); | 446 TRACE_FUNCTION ("for_set_optional_error()"); |
443 | 447 |
444 switch (cc_data->error) | 448 switch (cc_data->error) |
445 { | 449 { |
446 case M_CC_CAUSE_INVALID_MAND_INFO: | 450 case M_CC_CAUSE_INVALID_MAND_INFO: |
447 break; | 451 break; |
448 | 452 |
449 case M_CC_CAUSE_COND_INFO_ELEM: | 453 case M_CC_CAUSE_COND_INFO_ELEM: |
450 cc_data->error_count = 0; | 454 cc_data->error_count = 0; |
451 /*FALLTHROUGH*/ /*lint -fallthrough*/ | 455 /*FALLTHROUGH*/ /*lint -fallthrough*/ |
452 | 456 |
484 TRACE_FUNCTION ("cc_check_critical_error ()"); | 488 TRACE_FUNCTION ("cc_check_critical_error ()"); |
485 if (cc_err EQ M_CC_CAUSE_INVALID_MAND_INFO OR | 489 if (cc_err EQ M_CC_CAUSE_INVALID_MAND_INFO OR |
486 cc_err EQ M_CC_CAUSE_MESSAGE_TYPE_NOT_IMPLEM OR | 490 cc_err EQ M_CC_CAUSE_MESSAGE_TYPE_NOT_IMPLEM OR |
487 cc_err EQ M_CC_CAUSE_COND_INFO_ELEM OR | 491 cc_err EQ M_CC_CAUSE_COND_INFO_ELEM OR |
488 cc_err EQ M_CC_CAUSE_SERVICE_NOT_IMPLEM ) | 492 cc_err EQ M_CC_CAUSE_SERVICE_NOT_IMPLEM ) |
489 return (TRUE); | 493 return (TRUE); |
490 else | 494 else |
491 return (FALSE); | 495 return (FALSE); |
492 } | 496 } |
493 | 497 |
494 #endif | 498 #endif |