FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/g23m-aci/aci/gaci_ret.c @ 775:eedbf248bac0
gsm-fw/g23m-aci subtree: initial import from LoCosto source
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sun, 12 Oct 2014 01:45:14 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
774:40a721fd9854 | 775:eedbf248bac0 |
---|---|
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 : GPRS AT Command Interpreter Call-Back Functions. | |
18 +----------------------------------------------------------------------------- | |
19 */ | |
20 | |
21 #ifdef GPRS | |
22 | |
23 #ifndef GACI_RET_C | |
24 #define GACI_RET_C | |
25 #endif | |
26 | |
27 #include "aci_all.h" | |
28 | |
29 /* | |
30 * includes | |
31 */ | |
32 #include "dti.h" /* functionality of the dti library */ | |
33 #include "aci_cmh.h" | |
34 #include "ati_cmd.h" | |
35 #include "aci_cmd.h" | |
36 #include "aci_io.h" | |
37 #include "aci.h" | |
38 #include "l4_tim.h" | |
39 #include "aci_lst.h" | |
40 | |
41 #include "dti_conn_mng.h" | |
42 | |
43 #include "gaci.h" | |
44 #include "gaci_cmh.h" | |
45 #include "psa.h" | |
46 #include "psa_sm.h" | |
47 | |
48 #include "cmh.h" | |
49 #include "cmh_sm.h" | |
50 | |
51 #include "aci_io.h" | |
52 #include "aci_mem.h" | |
53 | |
54 #include "ati_int.h" | |
55 | |
56 /* | |
57 +--------------------------------------------------------------------+ | |
58 | PROJECT : GPRS (8441) MODULE : GACI_RET | | |
59 | STATE : code ROUTINE : rCI_PlusCGACT | | |
60 +--------------------------------------------------------------------+ | |
61 | |
62 PURPOSE : handles rCI_PlusCGACT call back | |
63 | |
64 */ | |
65 GLOBAL void rCI_PlusCGACT ( SHORT link_id ) | |
66 { | |
67 UBYTE srcId = srcId_cb; | |
68 T_ATI_SRC_PARAMS *src_params = find_element (ati_src_list, srcId, search_ati_src_id); | |
69 | |
70 TRACE_FUNCTION("rCI_PlusCGACT()"); | |
71 | |
72 src_params->curAtCmd = AT_CMD_NONE; | |
73 | |
74 } | |
75 | |
76 /* | |
77 +--------------------------------------------------------------------+ | |
78 | PROJECT : GPRS (8441) MODULE : GACI_RET | | |
79 | STATE : code ROUTINE : rCI_PlusCGDATA | | |
80 +--------------------------------------------------------------------+ | |
81 | |
82 PURPOSE : handles rCI_PlusCGDATA call back | |
83 | |
84 */ | |
85 GLOBAL void rCI_PlusCGDATA ( SHORT link_id ) | |
86 { | |
87 UBYTE srcId = srcId_cb; | |
88 T_ATI_SRC_PARAMS *src_params = find_element (ati_src_list, srcId, search_ati_src_id); | |
89 | |
90 TRACE_FUNCTION("rCI_PlusCGDATA()"); | |
91 | |
92 src_params->curAtCmd = AT_CMD_NONE; | |
93 | |
94 } | |
95 | |
96 /* | |
97 +--------------------------------------------------------------------+ | |
98 | PROJECT : GPRS (8441) MODULE : GACI_RET | | |
99 | STATE : code ROUTINE : rCI_PlusCGANS | | |
100 +--------------------------------------------------------------------+ | |
101 | |
102 PURPOSE : handles rCI_PlusCGANS call back | |
103 | |
104 */ | |
105 GLOBAL void rCI_PlusCGANS ( SHORT link_id ) | |
106 { | |
107 UBYTE srcId = srcId_cb; | |
108 T_ATI_SRC_PARAMS *src_params = find_element (ati_src_list, srcId, search_ati_src_id); | |
109 | |
110 TRACE_FUNCTION("rCI_PlusCGANS()"); | |
111 | |
112 src_params->curAtCmd = AT_CMD_NONE; | |
113 | |
114 } | |
115 | |
116 /* | |
117 +--------------------------------------------------------------------+ | |
118 | PROJECT : GPRS (8441) MODULE : GACI_RET | | |
119 | STATE : code ROUTINE : rCI_PlusCGEREP | | |
120 +--------------------------------------------------------------------+ | |
121 | |
122 PURPOSE : handles rCI_PlusCGEREP call back | |
123 | |
124 */ | |
125 GLOBAL void rCI_PlusCGEREP ( T_CGEREP_EVENT event, T_CGEREP_EVENT_REP_PARAM *param ) | |
126 { | |
127 char *me="+CGEV: "; | |
128 UBYTE srcId = srcId_cb; | |
129 char pdp_ip_addr_str[17]; | |
130 U8 idx; | |
131 | |
132 TRACE_FUNCTION("rCI_PlusCGEREP()"); | |
133 | |
134 if (sm_cgerep_srcId NEQ srcId) | |
135 { | |
136 return; /* don't indicate +CGEV to a source on which AT+CGEREP was not set up */ | |
137 } | |
138 | |
139 if( CGEREP_MODE_DICARD_RESERVED EQ sm_cgerep_mode AND | |
140 uart_is_mt_te_link () NEQ FALSE ) | |
141 { | |
142 return; | |
143 } | |
144 | |
145 memset(pdp_ip_addr_str, 0x00, sizeof(pdp_ip_addr_str)); | |
146 | |
147 switch(event) | |
148 { | |
149 case CGEREP_EVENT_NW_REACT: | |
150 case CGEREP_EVENT_NW_DEACT: | |
151 case CGEREP_EVENT_ME_DEACT: | |
152 switch(param->act.pdp_addr.ctrl_ip_address) | |
153 { | |
154 case NAS_is_ipv4: | |
155 sprintf( pdp_ip_addr_str, "%d.%d.%d.%d", | |
156 param->act.pdp_addr.ip_address.ipv4_addr.a4[0], | |
157 param->act.pdp_addr.ip_address.ipv4_addr.a4[1], | |
158 param->act.pdp_addr.ip_address.ipv4_addr.a4[2], | |
159 param->act.pdp_addr.ip_address.ipv4_addr.a4[3]); | |
160 break; | |
161 case NAS_is_ipv6: | |
162 for(idx = 0;idx < NAS_SIZE_IPv6_ADDR;idx++) | |
163 sprintf( pdp_ip_addr_str, "%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d", | |
164 param->act.pdp_addr.ip_address.ipv6_addr.a6[0], | |
165 param->act.pdp_addr.ip_address.ipv6_addr.a6[1], | |
166 param->act.pdp_addr.ip_address.ipv6_addr.a6[2], | |
167 param->act.pdp_addr.ip_address.ipv6_addr.a6[3], | |
168 param->act.pdp_addr.ip_address.ipv6_addr.a6[4], | |
169 param->act.pdp_addr.ip_address.ipv6_addr.a6[5], | |
170 param->act.pdp_addr.ip_address.ipv6_addr.a6[6], | |
171 param->act.pdp_addr.ip_address.ipv6_addr.a6[7], | |
172 param->act.pdp_addr.ip_address.ipv6_addr.a6[8], | |
173 param->act.pdp_addr.ip_address.ipv6_addr.a6[9], | |
174 param->act.pdp_addr.ip_address.ipv6_addr.a6[10], | |
175 param->act.pdp_addr.ip_address.ipv6_addr.a6[11], | |
176 param->act.pdp_addr.ip_address.ipv6_addr.a6[12], | |
177 param->act.pdp_addr.ip_address.ipv6_addr.a6[13], | |
178 param->act.pdp_addr.ip_address.ipv6_addr.a6[14], | |
179 param->act.pdp_addr.ip_address.ipv6_addr.a6[15] ); | |
180 break; | |
181 } | |
182 break; | |
183 case CGEREP_EVENT_REJECT: | |
184 switch(param->act.pdp_addr.ctrl_ip_address) | |
185 { | |
186 case NAS_is_ipv4: | |
187 sprintf( pdp_ip_addr_str, "%d.%d.%d.%d", | |
188 param->reject.pdp_addr.ip_address.ipv4_addr.a4[0], | |
189 param->reject.pdp_addr.ip_address.ipv4_addr.a4[1], | |
190 param->reject.pdp_addr.ip_address.ipv4_addr.a4[2], | |
191 param->reject.pdp_addr.ip_address.ipv4_addr.a4[3]); | |
192 break; | |
193 case NAS_is_ipv6: | |
194 for(idx = 0;idx < NAS_SIZE_IPv6_ADDR;idx++) | |
195 sprintf( pdp_ip_addr_str, "%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d", | |
196 param->reject.pdp_addr.ip_address.ipv6_addr.a6[0], | |
197 param->reject.pdp_addr.ip_address.ipv6_addr.a6[1], | |
198 param->reject.pdp_addr.ip_address.ipv6_addr.a6[2], | |
199 param->reject.pdp_addr.ip_address.ipv6_addr.a6[3], | |
200 param->reject.pdp_addr.ip_address.ipv6_addr.a6[4], | |
201 param->reject.pdp_addr.ip_address.ipv6_addr.a6[5], | |
202 param->reject.pdp_addr.ip_address.ipv6_addr.a6[6], | |
203 param->reject.pdp_addr.ip_address.ipv6_addr.a6[7], | |
204 param->reject.pdp_addr.ip_address.ipv6_addr.a6[8], | |
205 param->reject.pdp_addr.ip_address.ipv6_addr.a6[9], | |
206 param->reject.pdp_addr.ip_address.ipv6_addr.a6[10], | |
207 param->reject.pdp_addr.ip_address.ipv6_addr.a6[11], | |
208 param->reject.pdp_addr.ip_address.ipv6_addr.a6[12], | |
209 param->reject.pdp_addr.ip_address.ipv6_addr.a6[13], | |
210 param->reject.pdp_addr.ip_address.ipv6_addr.a6[14], | |
211 param->reject.pdp_addr.ip_address.ipv6_addr.a6[15] ); | |
212 break; | |
213 } | |
214 break; | |
215 | |
216 } | |
217 | |
218 switch ( event ) | |
219 { | |
220 case CGEREP_EVENT_REJECT: | |
221 sprintf(g_sa,"%s%s \"%s\",\"%s\"", me, "REJECT", param->reject.pdp_type, pdp_ip_addr_str); | |
222 break; | |
223 case CGEREP_EVENT_NW_REACT: | |
224 sprintf(g_sa,"%s%s \"%s\",\"%s\",%hd", me, "NW REACT", param->act.pdp_type, pdp_ip_addr_str, param->act.cid); | |
225 break; | |
226 case CGEREP_EVENT_NW_DEACT: | |
227 sprintf(g_sa,"%s%s \"%s\",\"%s\",%hd", me, "NW DEACT", param->act.pdp_type, pdp_ip_addr_str, param->act.cid); | |
228 break; | |
229 case CGEREP_EVENT_ME_DEACT: | |
230 sprintf(g_sa,"%s%s \"%s\",\"%s\",%hd", me, "ME DEACT", param->act.pdp_type, pdp_ip_addr_str, param->act.cid); | |
231 break; | |
232 case CGEREP_EVENT_NW_DETACH: | |
233 sprintf(g_sa,"%s%s", me, "NW DETACH" ); | |
234 break; | |
235 case CGEREP_EVENT_ME_DETACH: | |
236 sprintf(g_sa,"%s%s", me, "ME DETACH" ); | |
237 break; | |
238 case CGEREP_EVENT_NW_CLASS: | |
239 sprintf(g_sa,"%s%s", me, "NW CLASS" ); | |
240 break; | |
241 case CGEREP_EVENT_ME_CLASS: | |
242 sprintf(g_sa,"%s%s", me, "ME CLASS" ); | |
243 break; | |
244 } | |
245 | |
246 if ( CGEREP_MODE_BUFFER NEQ sm_cgerep_mode AND | |
247 uart_is_mt_te_link () EQ FALSE) | |
248 { | |
249 io_sendIndication(srcId, g_sa, ATI_FORCED_OUTPUT); | |
250 } | |
251 else | |
252 { /* write in event reporting buffer */ | |
253 cmhSM_save_event(event, param); | |
254 } | |
255 } | |
256 | |
257 | |
258 /* | |
259 +--------------------------------------------------------------------+ | |
260 | PROJECT : GPRS (8441) MODULE : GACI_RET | | |
261 | STATE : code ROUTINE : rCI_PercentCGEV | | |
262 +--------------------------------------------------------------------+ | |
263 | |
264 PURPOSE : handles rCI_PercentCGEREP call back | |
265 | |
266 */ | |
267 GLOBAL void rCI_PercentCGEV ( T_CGEREP_EVENT event, T_CGEREP_EVENT_REP_PARAM *param ) | |
268 { | |
269 char *me="%CGEV: "; | |
270 UBYTE srcId = srcId_cb; | |
271 char pdp_ip_addr_str[17]; | |
272 U8 idx = 0; | |
273 | |
274 TRACE_FUNCTION("rCI_PercentCGEV()"); | |
275 | |
276 if (ati_user_output_cfg[srcId].Percent_CGEREP_stat == 0) | |
277 { | |
278 return; /* don't indicate %CGEV to a source on which AT%CGEREP was not set up */ | |
279 } | |
280 | |
281 memset(pdp_ip_addr_str, 0x00, sizeof(pdp_ip_addr_str)); | |
282 | |
283 switch (event) | |
284 { | |
285 case CGEREP_EVENT_NW_REACT: | |
286 case CGEREP_EVENT_NW_DEACT: | |
287 case CGEREP_EVENT_ME_DEACT: | |
288 case CGEREP_EVENT_NW_ACT: | |
289 case CGEREP_EVENT_ME_ACT: | |
290 switch(param->act.pdp_addr.ctrl_ip_address) | |
291 { | |
292 case NAS_is_ipv4: | |
293 sprintf( pdp_ip_addr_str, "%d.%d.%d.%d", | |
294 param->act.pdp_addr.ip_address.ipv4_addr.a4[0], | |
295 param->act.pdp_addr.ip_address.ipv4_addr.a4[1], | |
296 param->act.pdp_addr.ip_address.ipv4_addr.a4[2], | |
297 param->act.pdp_addr.ip_address.ipv4_addr.a4[3]); | |
298 break; | |
299 case NAS_is_ipv6: | |
300 for(idx = 0;idx < NAS_SIZE_IPv6_ADDR;idx++) | |
301 sprintf( pdp_ip_addr_str, "%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d", | |
302 param->act.pdp_addr.ip_address.ipv6_addr.a6[0], | |
303 param->act.pdp_addr.ip_address.ipv6_addr.a6[1], | |
304 param->act.pdp_addr.ip_address.ipv6_addr.a6[2], | |
305 param->act.pdp_addr.ip_address.ipv6_addr.a6[3], | |
306 param->act.pdp_addr.ip_address.ipv6_addr.a6[4], | |
307 param->act.pdp_addr.ip_address.ipv6_addr.a6[5], | |
308 param->act.pdp_addr.ip_address.ipv6_addr.a6[6], | |
309 param->act.pdp_addr.ip_address.ipv6_addr.a6[7], | |
310 param->act.pdp_addr.ip_address.ipv6_addr.a6[8], | |
311 param->act.pdp_addr.ip_address.ipv6_addr.a6[9], | |
312 param->act.pdp_addr.ip_address.ipv6_addr.a6[10], | |
313 param->act.pdp_addr.ip_address.ipv6_addr.a6[11], | |
314 param->act.pdp_addr.ip_address.ipv6_addr.a6[12], | |
315 param->act.pdp_addr.ip_address.ipv6_addr.a6[13], | |
316 param->act.pdp_addr.ip_address.ipv6_addr.a6[14], | |
317 param->act.pdp_addr.ip_address.ipv6_addr.a6[15] ); | |
318 break; | |
319 } | |
320 break; | |
321 case CGEREP_EVENT_REJECT: | |
322 switch(param->act.pdp_addr.ctrl_ip_address) | |
323 { | |
324 case NAS_is_ipv4: | |
325 sprintf( pdp_ip_addr_str, "%d.%d.%d.%d", | |
326 param->reject.pdp_addr.ip_address.ipv4_addr.a4[0], | |
327 param->reject.pdp_addr.ip_address.ipv4_addr.a4[1], | |
328 param->reject.pdp_addr.ip_address.ipv4_addr.a4[2], | |
329 param->reject.pdp_addr.ip_address.ipv4_addr.a4[3]); | |
330 break; | |
331 case NAS_is_ipv6: | |
332 for(idx = 0;idx < NAS_SIZE_IPv6_ADDR;idx++) | |
333 sprintf( pdp_ip_addr_str, "%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d", | |
334 param->reject.pdp_addr.ip_address.ipv6_addr.a6[0], | |
335 param->reject.pdp_addr.ip_address.ipv6_addr.a6[1], | |
336 param->reject.pdp_addr.ip_address.ipv6_addr.a6[2], | |
337 param->reject.pdp_addr.ip_address.ipv6_addr.a6[3], | |
338 param->reject.pdp_addr.ip_address.ipv6_addr.a6[4], | |
339 param->reject.pdp_addr.ip_address.ipv6_addr.a6[5], | |
340 param->reject.pdp_addr.ip_address.ipv6_addr.a6[6], | |
341 param->reject.pdp_addr.ip_address.ipv6_addr.a6[7], | |
342 param->reject.pdp_addr.ip_address.ipv6_addr.a6[8], | |
343 param->reject.pdp_addr.ip_address.ipv6_addr.a6[9], | |
344 param->reject.pdp_addr.ip_address.ipv6_addr.a6[10], | |
345 param->reject.pdp_addr.ip_address.ipv6_addr.a6[11], | |
346 param->reject.pdp_addr.ip_address.ipv6_addr.a6[12], | |
347 param->reject.pdp_addr.ip_address.ipv6_addr.a6[13], | |
348 param->reject.pdp_addr.ip_address.ipv6_addr.a6[14], | |
349 param->reject.pdp_addr.ip_address.ipv6_addr.a6[15] ); | |
350 break; | |
351 } | |
352 break; | |
353 | |
354 } | |
355 | |
356 | |
357 switch ( event ) | |
358 { | |
359 case CGEREP_EVENT_REJECT: | |
360 sprintf(g_sa,"%s%s \"%s\",\"%s\"", me, "REJECT", param->reject.pdp_type, pdp_ip_addr_str); | |
361 break; | |
362 case CGEREP_EVENT_NW_REACT: | |
363 sprintf(g_sa,"%s%s \"%s\",\"%s\",%hd", me, "NW REACT", param->act.pdp_type, pdp_ip_addr_str, param->act.cid); | |
364 break; | |
365 case CGEREP_EVENT_NW_DEACT: | |
366 sprintf(g_sa,"%s%s \"%s\",\"%s\",%hd", me, "NW DEACT", param->act.pdp_type, pdp_ip_addr_str, param->act.cid); | |
367 break; | |
368 case CGEREP_EVENT_ME_DEACT: | |
369 sprintf(g_sa,"%s%s \"%s\",\"%s\",%hd", me, "ME DEACT", param->act.pdp_type, pdp_ip_addr_str, param->act.cid); | |
370 break; | |
371 case CGEREP_EVENT_NW_DETACH: | |
372 sprintf(g_sa,"%s%s", me, "NW DETACH" ); | |
373 break; | |
374 case CGEREP_EVENT_ME_DETACH: | |
375 sprintf(g_sa,"%s%s", me, "ME DETACH" ); | |
376 break; | |
377 case CGEREP_EVENT_NW_CLASS: | |
378 sprintf(g_sa,"%s%s", me, "NW CLASS" ); | |
379 break; | |
380 case CGEREP_EVENT_ME_CLASS: | |
381 sprintf(g_sa,"%s%s", me, "ME CLASS" ); | |
382 break; | |
383 case CGEREP_EVENT_NW_ACT: | |
384 sprintf(g_sa,"%s%s \"%s\",\"%s\",%hd", me, "NW ACT", param->act.pdp_type, pdp_ip_addr_str, param->act.cid); | |
385 break; | |
386 case CGEREP_EVENT_ME_ACT: | |
387 sprintf(g_sa,"%s%s \"%s\",\"%s\",%hd", me, "ME ACT", param->act.pdp_type, pdp_ip_addr_str, param->act.cid); | |
388 break; | |
389 } | |
390 | |
391 io_sendIndication(srcId, g_sa, ATI_FORCED_OUTPUT); | |
392 } | |
393 | |
394 | |
395 /* | |
396 +--------------------------------------------------------------------+ | |
397 | PROJECT : GPRS (8441) MODULE : GACI_RET | | |
398 | STATE : code ROUTINE : rCI_PlusCGREG | | |
399 +--------------------------------------------------------------------+ | |
400 | |
401 PURPOSE : handles rCI_PlusCGREG call back | |
402 | |
403 */ | |
404 GLOBAL void rCI_PlusCGREG ( T_CGREG_STAT stat, USHORT lac, USHORT ci ) | |
405 { | |
406 U8 rt = 0; | |
407 TRACE_FUNCTION("rCI_PlusCGREG()"); | |
408 | |
409 r_plus_percent_CREG ( srcId_cb, | |
410 stat, | |
411 lac, | |
412 ci, | |
413 PlusCGREG_CMD, | |
414 P_CREG_GPRS_Support_Unknown, /*ACI-SPR-17218: ignored*/ | |
415 rt, | |
416 FALSE ); | |
417 } | |
418 | |
419 /* | |
420 +--------------------------------------------------------------------+ | |
421 | PROJECT : GPRS (8441) MODULE : GACI_RET | | |
422 | STATE : code ROUTINE : rCI_changedQOS | | |
423 +--------------------------------------------------------------------+ | |
424 | |
425 PURPOSE : dummy function | |
426 | |
427 */ | |
428 GLOBAL void rCI_changedQOS ( SHORT cid, T_PS_qos *qos ) | |
429 { | |
430 } | |
431 | |
432 /* | |
433 +--------------------------------------------------------------------+ | |
434 | PROJECT : GPRS (8441) MODULE : GACI_RET | | |
435 | STATE : code ROUTINE : rCI_PercentSNCNT | | |
436 +--------------------------------------------------------------------+ | |
437 | |
438 PURPOSE : handles rCI_PercentSNCNT call back | |
439 | |
440 */ | |
441 GLOBAL void rCI_PercentSNCNT ( UBYTE c_id, | |
442 ULONG octets_uplink, | |
443 ULONG octets_downlink, | |
444 ULONG packets_uplink, | |
445 ULONG packets_downlink ) | |
446 { | |
447 TRACE_FUNCTION("rCI_PercentSNCNT()"); | |
448 | |
449 sprintf(g_sa,"%s: %d, %d, %d, %d, %d", "%SNCNT", c_id, | |
450 octets_uplink, octets_downlink, | |
451 packets_uplink, packets_downlink); | |
452 | |
453 io_sendMessage(srcId_cb, g_sa, ATI_NORMAL_OUTPUT); | |
454 | |
455 } | |
456 | |
457 /* | |
458 +--------------------------------------------------------------------+ | |
459 | PROJECT : GPRS (8441) MODULE : GACI_RET | | |
460 | STATE : code ROUTINE : rCI_PercentCGREG | | |
461 +--------------------------------------------------------------------+ | |
462 | |
463 PURPOSE : handles rCI_PercentCGREG call back | |
464 | |
465 */ | |
466 GLOBAL void rCI_PercentCGREG ( T_P_CGREG_STAT stat, USHORT lac, USHORT ci, BOOL bActiveContext ) | |
467 { | |
468 U8 rt = 0; | |
469 TRACE_FUNCTION("rCI_PercentCGREG()"); | |
470 | |
471 r_plus_percent_CREG ( srcId_cb, | |
472 stat, | |
473 lac, | |
474 ci, | |
475 PercentCGREG_CMD, | |
476 P_CREG_GPRS_Support_Unknown, /*ACI-SPR-17218: ignored*/ | |
477 rt, | |
478 bActiveContext); | |
479 | |
480 } | |
481 | |
482 | |
483 #ifdef REL99 | |
484 /* | |
485 +--------------------------------------------------------------------+ | |
486 | PROJECT : UMTS MODULE : GACI_RET | | |
487 | STATE : code ROUTINE : rCI_PlusCGCMOD | | |
488 +--------------------------------------------------------------------+ | |
489 | |
490 PURPOSE : handles rCI_PlusCGCMOD call back | |
491 | |
492 */ | |
493 GLOBAL void rCI_PlusCGCMOD ( void ) | |
494 { | |
495 UBYTE srcId = srcId_cb; | |
496 T_ATI_SRC_PARAMS *src_params = find_element (ati_src_list, srcId, search_ati_src_id); | |
497 | |
498 TRACE_FUNCTION("rCI_PlusCGCMOD()"); | |
499 | |
500 src_params->curAtCmd = AT_CMD_NONE; | |
501 } | |
502 | |
503 /* | |
504 +--------------------------------------------------------------------+ | |
505 | PROJECT : UMTS MODULE : GACI_RET | | |
506 | STATE : code ROUTINE : rAT_PlusCGCMOD | | |
507 +--------------------------------------------------------------------+ | |
508 | |
509 PURPOSE : handles rAT_PlusCGCMOD call back | |
510 | |
511 */ | |
512 GLOBAL void rAT_PlusCGCMOD ( void ) | |
513 { | |
514 UBYTE srcId = srcId_cb; | |
515 T_ATI_SRC_PARAMS *src_params = find_element (ati_src_list, srcId, search_ati_src_id); | |
516 | |
517 TRACE_FUNCTION("rAT_PlusCGCMOD()"); | |
518 | |
519 src_params->curAtCmd = AT_CMD_NONE; | |
520 } | |
521 | |
522 #endif /*REL99 */ | |
523 | |
524 /* sbh...15/01/02. If MFW defined, then these functions are duplicated */ | |
525 | |
526 #if !defined(MFW) && !defined(FF_MMI_RIV) | |
527 | |
528 /* | |
529 +--------------------------------------------------------------------+ | |
530 | PROJECT : GPRS (8441) MODULE : GACI_RET | | |
531 | STATE : code ROUTINE : rAT_PlusCGACT | | |
532 +--------------------------------------------------------------------+ | |
533 | |
534 PURPOSE : handles rAT_PlusCGACT call back | |
535 | |
536 */ | |
537 GLOBAL void rAT_PlusCGACT ( SHORT link_id ) | |
538 { | |
539 | |
540 TRACE_FUNCTION("rAT_PlusCGACT()"); | |
541 | |
542 | |
543 } | |
544 | |
545 /* | |
546 +--------------------------------------------------------------------+ | |
547 | PROJECT : GPRS (8441) MODULE : GACI_RET | | |
548 | STATE : code ROUTINE : rAT_PlusCGDATA | | |
549 +--------------------------------------------------------------------+ | |
550 | |
551 PURPOSE : handles rAT_PlusCGDATA call back | |
552 | |
553 */ | |
554 GLOBAL void rAT_PlusCGDATA ( SHORT link_id ) | |
555 { | |
556 | |
557 TRACE_FUNCTION("rAT_PlusCGDATA()"); | |
558 | |
559 | |
560 } | |
561 | |
562 /* | |
563 +--------------------------------------------------------------------+ | |
564 | PROJECT : GPRS (8441) MODULE : GACI_RET | | |
565 | STATE : code ROUTINE : rAT_PlusCGANS | | |
566 +--------------------------------------------------------------------+ | |
567 | |
568 PURPOSE : handles rAT_PlusCGANS call back | |
569 | |
570 */ | |
571 GLOBAL void rAT_PlusCGANS ( SHORT link_id ) | |
572 { | |
573 | |
574 TRACE_FUNCTION("rAT_PlusCGANS()"); | |
575 | |
576 | |
577 } | |
578 | |
579 /* | |
580 +--------------------------------------------------------------------+ | |
581 | PROJECT : GPRS (8441) MODULE : GACI_RET | | |
582 | STATE : code ROUTINE : rAT_PlusCGEREP | | |
583 +--------------------------------------------------------------------+ | |
584 | |
585 PURPOSE : handles rAT_PlusCGEREP call back | |
586 | |
587 */ | |
588 GLOBAL void rAT_PlusCGEREP ( T_CGEREP_EVENT event, T_CGEREP_EVENT_REP_PARAM *param ) | |
589 { | |
590 | |
591 TRACE_FUNCTION("rAT_PlusCGEREP()"); | |
592 | |
593 | |
594 } | |
595 | |
596 /* | |
597 +--------------------------------------------------------------------+ | |
598 | PROJECT : GPRS (8441) MODULE : GACI_RET | | |
599 | STATE : code ROUTINE : rAT_PercentCGEV | | |
600 +--------------------------------------------------------------------+ | |
601 | |
602 PURPOSE : handles rAT_PercentCGEV call back | |
603 | |
604 */ | |
605 GLOBAL void rAT_PercentCGEV (T_CGEREP_EVENT event, T_CGEREP_EVENT_REP_PARAM *param ) | |
606 { | |
607 | |
608 TRACE_FUNCTION("rAT_PercentCGEV()"); | |
609 | |
610 } | |
611 /* | |
612 +--------------------------------------------------------------------+ | |
613 | PROJECT : GPRS (8441) MODULE : GACI_RET | | |
614 | STATE : code ROUTINE : rAT_PlusCGREG | | |
615 +--------------------------------------------------------------------+ | |
616 | |
617 PURPOSE : handles rAT_PlusCGREG call back | |
618 | |
619 */ | |
620 GLOBAL void rAT_PlusCGREG ( T_CGREG_STAT stat, USHORT lac, USHORT ci ) | |
621 { | |
622 | |
623 TRACE_FUNCTION("rAT_PlusCGREG()"); | |
624 | |
625 | |
626 } | |
627 /* | |
628 +--------------------------------------------------------------------+ | |
629 | PROJECT : GPRS (8441) MODULE : GACI_RET | | |
630 | STATE : code ROUTINE : rAT_changedQOS | | |
631 +--------------------------------------------------------------------+ | |
632 | |
633 PURPOSE : inform over the network initiated QOS modification | |
634 | |
635 */ | |
636 GLOBAL void rAT_changedQOS( U8 cid, T_PS_qos *qos ) | |
637 { | |
638 | |
639 TRACE_FUNCTION("rAT_changedQOS()"); | |
640 | |
641 | |
642 } | |
643 | |
644 /* | |
645 +--------------------------------------------------------------------+ | |
646 | PROJECT : GPRS (8441) MODULE : GACI_RET | | |
647 | STATE : code ROUTINE : rCI_PercentSNCNT | | |
648 +--------------------------------------------------------------------+ | |
649 | |
650 PURPOSE : handles rCI_PercentSNCNT call back | |
651 | |
652 */ | |
653 GLOBAL void rAT_PercentSNCNT ( UBYTE c_id, | |
654 ULONG octets_uplink, | |
655 ULONG octets_downlink, | |
656 ULONG packets_uplink, | |
657 ULONG packets_downlink ) | |
658 { | |
659 TRACE_FUNCTION("rAT_PercentSNCNT()"); | |
660 | |
661 } | |
662 | |
663 | |
664 /* | |
665 +--------------------------------------------------------------------+ | |
666 | PROJECT : GPRS (8441) MODULE : GACI_RET | | |
667 | STATE : code ROUTINE : rAT_PercentCGREG | | |
668 +--------------------------------------------------------------------+ | |
669 | |
670 PURPOSE : handles rAT_PercentCGREG call back | |
671 | |
672 */ | |
673 GLOBAL void rAT_PercentCGREG ( T_P_CGREG_STAT stat, USHORT lac, USHORT ci, BOOL bActiveContext ) | |
674 { | |
675 | |
676 TRACE_FUNCTION("rAT_PercentCGREG()"); | |
677 | |
678 | |
679 } | |
680 | |
681 | |
682 | |
683 #endif /* MFW || FF_MMI_RIV */ | |
684 | |
685 | |
686 #endif /* GPRS */ |