FreeCalypso > hg > fc-tourmaline
comparison src/g23m-aci/aci/psa_sndp.c @ 1:fa8dc04885d8
src/g23m-*: import from Magnetite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 16 Oct 2020 06:25:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:4e78acac3d88 | 1:fa8dc04885d8 |
---|---|
1 /* | |
2 +----------------------------------------------------------------------------- | |
3 | Project : | |
4 | Modul : | |
5 +----------------------------------------------------------------------------- | |
6 | Copyright 2002 Texas Instruments Berlin, AG | |
7 | All rights reserved. | |
8 | | |
9 | This file is confidential and a trade secret of Texas | |
10 | Instruments Berlin, AG | |
11 | The receipt of or possession of this file does not convey | |
12 | any rights to reproduce or disclose its contents or to | |
13 | manufacture, use, or sell anything it may describe, in | |
14 | whole, or in part, without the specific written consent of | |
15 | Texas Instruments Berlin, AG. | |
16 +----------------------------------------------------------------------------- | |
17 | Purpose : This module defines the processing functions for the | |
18 | primitives send to the protocol stack adapter by SNDCP. | |
19 +----------------------------------------------------------------------------- | |
20 */ | |
21 | |
22 #if defined (GPRS) && defined (DTI) | |
23 | |
24 #ifndef PSA_SNDP_C | |
25 #define PSA_SNDP_C | |
26 #endif | |
27 | |
28 #include "aci_all.h" | |
29 /*==== INCLUDES ===================================================*/ | |
30 #include "dti.h" /* functionality of the dti library */ | |
31 #include "aci_cmh.h" | |
32 #include "ati_cmd.h" | |
33 #include "aci_cmd.h" | |
34 | |
35 #include "aci.h" | |
36 | |
37 #include "dti_conn_mng.h" | |
38 #include "dti_cntrl_mng.h" | |
39 | |
40 #include "gaci.h" | |
41 #include "gaci_cmh.h" | |
42 #include "psa.h" | |
43 #include "psa_sm.h" | |
44 #include "cmh.h" | |
45 #include "cmh_sm.h" | |
46 #include "cmh_gppp.h" | |
47 | |
48 #if defined (FF_WAP) || defined (FF_GPF_TCPIP) || defined (FF_SAT_E) | |
49 #include "wap_aci.h" | |
50 #include "psa_tcpip.h" | |
51 #endif /* defined (FF_WAP) || defined (FF_GPF_TCPIP) */ | |
52 | |
53 #ifdef FF_GPF_TCPIP | |
54 #include "dcm_utils.h" | |
55 #endif | |
56 #include "dcm_f.h" | |
57 | |
58 /*==== CONSTANTS ==================================================*/ | |
59 | |
60 /*==== TYPES ======================================================*/ | |
61 | |
62 /*==== EXPORT =====================================================*/ | |
63 | |
64 /*==== VARIABLES ==================================================*/ | |
65 | |
66 /*==== FUNCTIONS ==================================================*/ | |
67 | |
68 | |
69 /* | |
70 +-------------------------------------------------------------+ | |
71 | PROJECT : GPRS (8441) MODULE : PSA_SND | | |
72 | STATE : finished ROUTINE : psa_sn_dti_cnf | | |
73 +-------------------------------------------------------------+ | |
74 | |
75 PURPOSE : processes the SN_DTI_CNF primitive send by SNDCP. | |
76 */ | |
77 GLOBAL void psa_sn_dti_cnf ( T_SN_DTI_CNF *sn_dti_cnf ) | |
78 { | |
79 #if defined(FF_PKTIO) OR defined(FF_TCP_IP) | |
80 T_PDP_CONTEXT_INTERNAL *p_pdp_context_node = NULL; | |
81 #endif | |
82 | |
83 TRACE_FUNCTION ("psa_sn_dti_cnf()"); | |
84 | |
85 switch( sn_dti_cnf->dti_conn ) | |
86 { | |
87 case(NAS_CONNECT_DTI): | |
88 dti_cntrl_entity_connected( sn_dti_cnf->dti_linkid, DTI_ENTITY_SNDCP, DTI_OK ); | |
89 break; | |
90 | |
91 case(NAS_DISCONNECT_DTI): | |
92 dti_cntrl_entity_disconnected( sn_dti_cnf->dti_linkid, DTI_ENTITY_SNDCP ); | |
93 break; | |
94 } | |
95 /* Issue 34035 - Not possible to perform a context activation with user plane | |
96 for PKTIO (TCS.4.x) without +CGACT before +CGDATA. */ | |
97 | |
98 #if defined(FF_PKTIO) OR defined(FF_TCP_IP) | |
99 | |
100 p_pdp_context_node = pdp_context_find_node_from_cid( work_cids[cid_pointer] ); | |
101 | |
102 if ( p_pdp_context_node ) | |
103 { | |
104 if ((p_pdp_context_node->internal_data.entity_id EQ DTI_ENTITY_PKTIO) AND | |
105 (p_pdp_context_node->internal_data.state NEQ PDP_CONTEXT_STATE_ACTIVATING)) | |
106 { | |
107 if( cmhSM_next_work_cid( AT_CMD_CGDATA ) EQ FALSE ) | |
108 { | |
109 TRACE_EVENT("psa_sn_dti_cnf(): No more context in the work_cid"); | |
110 } | |
111 else | |
112 { | |
113 TRACE_EVENT("psa_sn_dti_cnf(): More context in work_cid are getting handled"); | |
114 } | |
115 } | |
116 } | |
117 else | |
118 { | |
119 TRACE_EVENT("psa_sn_dti_cnf(): NULL p_pdp_context_node"); | |
120 } | |
121 | |
122 #endif /* FF_PKTIO OR FF_TCP_IP */ | |
123 | |
124 PFREE (sn_dti_cnf); | |
125 } | |
126 #endif /* GPRS */ |