comparison src/aci2/mfw/mfw_cb.c @ 3:93999a60b835

src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 26 Sep 2016 00:29:36 +0000
parents
children
comparison
equal deleted inserted replaced
2:c41a534f33c6 3:93999a60b835
1 /*
2 +--------------------------------------------------------------------+
3 | PROJECT: GSM-MFW (8417) $Workfile:: Mfw_cb.c $|
4 | $Author:: Ak $Revision:: 1 $|
5 | CREATED: 13.10.98 $Modtime:: 10.04.00 15:01 $|
6 | CREATED: 13.10.98 $Modtime:: 20.01.00 14:29 $|
7 | STATE : code |
8 +--------------------------------------------------------------------+
9
10 MODULE : MFW_CB
11
12 PURPOSE : This modul contains the functions for call back.
13
14
15 $History:: Mfw_cb.c $
16
17 * Mar 23, 2006 REF:DR OMAPS00069173 a0393213
18 * Description: GSM - MOC - AT USB - Live Network . Display problem when a MO call is made through AT interface
19 * Solution: misplaced break statement corrected
20
21
22 Feb 15, 2006 ER: OMAPS00065203 x0pleela
23 Description: Cingular Operator Name Prioritization implementation required
24 Solution: Incorporated review comments
25 - Removed global variable gOper_sel_done added earlier
26
27 Feb 09, 2006 ER: OMAPS00065203 x0pleela
28 Description: Cingular Operator Name Prioritization implementation required
29 Solution: Implemented functionality for rAT_PercentCNIV
30 Implemented functionality for rAT_PercentCSTAT
31
32
33 *
34 * Nov 02, 2005 DR OMAPS00052132 xdeepadh
35 * Bug:Not able to access the SMS inbox and also not able to send SMS in Locosto Lite build
36 * Fix: The ATI Enums usage has been put under the FF_ATI flag
37
38 Nov 03, 2005 DR: OMAPS00052032 - xpradipg
39 Description : Locosto: SIMP - integration of issues submitted by solDel on
40 ME Personalization - changes as per the new interfaces
41 Solution : The return value of sAT_PlusCLCK of AT_EXCT is handled and
42 a please wait screen is displayed until the response is recieved
43
44 *
45 * June 01, 2005 REF: CRR 31559 x0021334
46 * Description: TCS2.1.1 SW not buildable without engineering mode
47 * Solution: Engineering Mode specific functions are guarded by 'FF_EM_MODE' flag
48 *
49 * x0018858 24 Mar, 2005 MMI-FIX-11321
50 * Issue Description :- If the inbox is full and a new message is receivd, no indication is received.
51 * Fix: Added support for handling indication when message box is full and
52 * there is a pending message.
53 *
54 * ***************** Version 51 *****************
55 * User: Vo Date: 20.01.00 Time: 14:30
56 * Updated in $/GSM/Condat/MS/SRC/MFW
57 *
58 * ***************** Version 50 *****************
59 * User: Vo Date: 20.01.00 Time: 12:24
60 * Updated in $/GSM/Condat/MS/SRC/MFW
61 *
62 * ***************** Version 49 *****************
63 * User: Vo Date: 14.01.00 Time: 20:02
64 * Updated in $/GSM/Condat/MS/SRC/MFW
65 * New: Save the setting for SMS parameter and cell broadcast
66 * parameter
67 *
68 * ***************** Version 48 *****************
69 * User: Vo Date: 10.01.00 Time: 16:15
70 * Updated in $/GSM/Condat/MS/SRC/MFW
71 *
72 * ***************** Version 47 *****************
73 * User: Ak Date: 5.01.00 Time: 13:27
74 * Updated in $/GSM/Condat/MS/SRC/MFW
75 *
76 * ***************** Version 46 *****************
77 * User: Vo Date: 22.12.99 Time: 15:47
78 * Updated in $/GSM/Condat/MS/SRC/MFW
79 * add "call id" for disconnect
80 *
81 * ***************** Version 45 *****************
82 * User: Sab Date: 2.12.99 Time: 9:25
83 * Updated in $/GSM/Condat/MS/SRC/MFW
84 * Why: Improvement.
85 * What: Implementation of phonebook ready indication.
86 *
87 * ***************** Version 44 *****************
88 * User: Vo Date: 11.11.99 Time: 14:31
89 * Updated in $/GSM/Condat/MS/SRC/MFW
90 * New: DTMF
91 *
92 * ***************** Version 43 *****************
93 * User: Vo Date: 21.10.99 Time: 13:05
94 * Updated in $/GSM/Condat/MS/SRC/MFW
95 * new implemention for command CPOL
96 *
97 * ***************** Version 42 *****************
98 * User: Vo Date: 10.09.99 Time: 19:14
99 * Updated in $/GSM/DEV/MS/SRC/MFW
100 * Add CNUM and USSD
101 *
102 * ***************** Version 41 *****************
103 * User: Vo Date: 30.08.99 Time: 13:25
104 * Updated in $/GSM/DEV/MS/SRC/MFW
105 * AoC
106 * PIN unblock
107 * call held
108 *
109 * ***************** Version 39 *****************
110 * User: Vo Date: 16.07.99 Time: 13:50
111 * Updated in $/GSM/DEV/MS/SRC/MFW
112 *
113 * ***************** Version 38 *****************
114 * User: Es Date: 6.07.99 Time: 12:02
115 * Updated in $/GSM/DEV/MS/SRC/MFW
116 *
117 * ***************** Version 37 *****************
118 * User: Vo Date: 2.07.99 Time: 19:02
119 * Updated in $/GSM/DEV/MS/SRC/MFW
120 *
121 * ***************** Version 36 *****************
122 * User: Vo Date: 2.07.99 Time: 15:25
123 * Updated in $/GSM/DEV/MS/SRC/MFW
124 *
125 * ***************** Version 35 *****************
126 * User: Vo Date: 22.06.99 Time: 12:53
127 * Updated in $/GSM/DEV/MS/SRC/MFW
128 *
129 * ***************** Version 34 *****************
130 * User: Vo Date: 21.06.99 Time: 20:59
131 * Updated in $/GSM/DEV/MS/SRC/MFW
132 *
133 * ***************** Version 32 *****************
134 * User: Vo Date: 14.06.99 Time: 13:56
135 * Updated in $/GSM/DEV/MS/SRC/MFW
136 *
137 * ***************** Version 31 *****************
138 * User: Vo Date: 14.06.99 Time: 10:06
139 * Updated in $/GSM/DEV/MS/SRC/MFW
140 *
141 * ***************** Version 30 *****************
142 * User: Vo Date: 1.06.99 Time: 14:46
143 * Updated in $/GSM/DEV/MS/SRC/MFW
144 *
145 * ***************** Version 29 *****************
146 * User: Vo Date: 20.05.99 Time: 17:26
147 * Updated in $/GSM/DEV/MS/SRC/MFW
148 *
149 * ***************** Version 28 *****************
150 * User: Vo Date: 28.04.99 Time: 16:11
151 * Updated in $/GSM/DEV/MS/SRC/MFW
152 *
153 * ***************** Version 26 *****************
154 * User: Vo Date: 31.03.99 Time: 14:09
155 * Updated in $/GSM/DEV/MS/SRC/MFW
156 *
157 * ***************** Version 24 *****************
158 * User: Vo Date: 15.03.99 Time: 13:40
159 * Updated in $/GSM/DEV/MS/SRC/MFW
160 *
161 * ***************** Version 23 *****************
162 * User: Vo Date: 11.03.99 Time: 18:32
163 * Updated in $/GSM/DEV/MS/SRC/MFW
164 *
165 * ***************** Version 22 *****************
166 * User: Es Date: 20.02.99 Time: 11:55
167 * Updated in $/GSM/DEV/MS/SRC/MFW
168 *
169 * ***************** Version 21 *****************
170 * User: Vo Date: 17.02.99 Time: 19:03
171 * Updated in $/GSM/DEV/MS/SRC/MFW
172 *
173 * ***************** Version 20 *****************
174 * User: Vo Date: 12.02.99 Time: 18:59
175 * Updated in $/GSM/DEV/MS/SRC/MFW
176 *
177 * ***************** Version 19 *****************
178 * User: Vo Date: 9.02.99 Time: 14:54
179 * Updated in $/GSM/DEV/MS/SRC/MFW
180 *
181 * ***************** Version 18 *****************
182 * User: Vo Date: 13.01.99 Time: 11:01
183 * Updated in $/GSM/DEV/MS/SRC/MFW
184 *
185 * ***************** Version 17 *****************
186 * User: Vo Date: 8.01.99 Time: 14:31
187 * Updated in $/GSM/DEV/MS/SRC/MFW
188 *
189 * ***************** Version 16 *****************
190 * User: Es Date: 17.12.98 Time: 17:25
191 * Updated in $/GSM/DEV/MS/SRC/MFW
192 *
193 * ***************** Version 15 *****************
194 * User: Es Date: 9.12.98 Time: 15:12
195 * Updated in $/GSM/DEV/MS/SRC/MFW
196 *
197 * ***************** Version 14 *****************
198 * User: Es Date: 9.12.98 Time: 14:19
199 * Updated in $/GSM/DEV/MS/SRC/MFW
200 * added some needed 'rAT_' functions (as dummies)
201 *
202 * ***************** Version 13 *****************
203 * User: Es Date: 8.12.98 Time: 16:53
204 * Updated in $/GSM/DEV/MS/SRC/MFW
205 *
206 * ***************** Version 11 *****************
207 * User: Vo Date: 27.11.98 Time: 13:19
208 * Updated in $/GSM/DEV/MS/SRC/MFW
209 *
210 * ***************** Version 10 *****************
211 * User: Vo Date: 24.11.98 Time: 21:40
212 * Updated in $/GSM/DEV/MS/SRC/MFW
213 * first successful compilation of MFW
214 *
215 * ***************** Version 9 *****************
216 * User: Vo Date: 13.11.98 Time: 16:21
217 * Updated in $/GSM/DEV/MS/SRC/MFW
218 *
219 * ***************** Version 8 *****************
220 * User: Vo Date: 12.11.98 Time: 13:46
221 * Updated in $/GSM/DEV/MS/SRC/MFW
222 |
223 | ***************** Version 7 *****************
224 | User: Le Date: 11.11.98 Time: 14:47
225 | Updated in $/GSM/DEV/MS/SRC/MFW
226 |
227 | ***************** Version 6 *****************
228 | User: Le Date: 11.11.98 Time: 13:35
229 | Updated in $/GSM/DEV/MS/SRC/MFW
230 |
231 | ***************** Version 5 *****************
232 | User: Le Date: 10.11.98 Time: 16:07
233 | Updated in $/GSM/DEV/MS/SRC/MFW
234 |
235 | ***************** Version 4 *****************
236 | User: Le Date: 10.11.98 Time: 11:08
237 | Updated in $/GSM/DEV/MS/SRC/MFW
238 |
239 | ***************** Version 3 *****************
240 | User: Le Date: 27.10.98 Time: 15:59
241 | Updated in $/GSM/DEV/MS/SRC/MFW
242 |
243 | ***************** Version 2 *****************
244 | User: Le Date: 21.10.98 Time: 16:20
245 | Updated in $/GSM/DEV/MS/SRC/MFW
246 |
247 | ***************** Version 1 *****************
248 | User: Le Date: 21.10.98 Time: 10:33
249 | Created in $/GSM/DEV/MS/SRC/MFW
250 */
251
252 #define ENTITY_MFW
253
254 #include <string.h>
255 #include <stdio.h>
256 #include <stdlib.h>
257
258 #if defined (NEW_FRAME)
259
260 #include "typedefs.h"
261 #include "Vsi.h"
262 #include "PEI.H"
263 #include "custom.h"
264 #include "gsm.h"
265
266 #else
267
268 #include "STDDEFS.H"
269 #include "custom.h"
270 #include "gsm.h"
271 #include "Vsi.h"
272
273 #endif
274
275 #include "mfw_mfw.h"
276 #include "mfw_nm.h"
277 #include "mfw_sim.h"
278 #include "mfw_simi.h"
279 #include "mfw_sima.h"
280 #include "mfw_nmi.h"
281 #include "mfw_phb.h"
282 #include "mfw_phbi.h"
283 #include "mfw_cm.h"
284 #include "mfw_cmi.h"
285 #include "mfw_sms.h"
286 #include "mfw_smsi.h"
287
288 #include "drv_key.h"
289
290
291 #include "ksd.h"
292 #include "psa.h"
293
294 #if defined (FAX_AND_DATA)
295 #include "aci_fd.h"
296 #endif
297
298 #include "cmh.h"
299 #include "phb.h"
300 #include "cmh_phb.h"
301 #include "psa_sim.h"
302
303 #include "mfw_ss.h"
304 #include "mfw_ssi.h"
305
306 // ADDED BY RAVI - 7-10-2005
307 #if (defined(FF_2TO1_PS) || (BOARD == 61))
308 #define GPRS TI_GPRS
309 #endif
310 // END ADDITION BY RAVI - 7-10-2005
311
312 #ifdef GPRS /* kgt 12-05-2001 */
313
314 // ADDED BY RAVI - 7-10-2005
315 #if (defined(FF_2TO1_PS) || (BOARD == 61))
316 #include "aci_cmh.h"
317 #include "aci_all.h"
318 #include "ati_cmd.h"
319 #include "aci_cmd.h"
320 #include "aci.h"
321 #include "dti_conn_mng.h"
322 #include "dti_cntrl_mng.h"
323 #include "gaci.h" /* include types declared in GACI */
324 #endif
325 // END ADDITION - RAVI - 7-10-2005
326
327 #include "gaci_cmh.h" /* include types declared in GACI */
328 #include "mfw_gprs.h"
329 #endif /* GPRS */
330
331 #include "Mfw_band.h" /* SPR919 - SH */
332
333 #ifdef FF_CPHS
334 #include "cphs.h"
335 #endif /* ff_cphs */
336
337 /********* currently not used ***************************************/
338 extern void sate_error(T_ACI_CME_ERR error); // ADDED BY RAVI - 29-11-2005
339 GLOBAL void rAT_PlusCSMS (T_ACI_CSMS_SERV service,
340 T_ACI_CSMS_SUPP mt,
341 T_ACI_CSMS_SUPP mo,
342 T_ACI_CSMS_SUPP bm) {}
343 GLOBAL void rAT_PlusCPIN (T_ACI_CPIN_RSLT code) {}
344 GLOBAL void rAT_PlusCLCK ( T_ACI_CLSSTAT * clsStaLst) {}
345 GLOBAL void rAT_PlusCIMI (CHAR *imsi) {}
346 GLOBAL void rAT_PlusCCFC (T_ACI_CCFC_SET* setting) {}
347 GLOBAL void rAT_PlusCLIR (T_ACI_CLIR_MOD mode, T_ACI_CLIR_STAT stat) {}
348 GLOBAL void rAT_PercentCOLR ( T_ACI_COLR_STAT stat) {}
349 GLOBAL void rAT_PlusCRSM ( SHORT sw1,
350 SHORT sw2,
351 SHORT rspLen,
352 UBYTE *rsp ) {}
353 GLOBAL void rAT_PlusCSIM ( SHORT rspLen,
354 UBYTE *rsp ) {}
355 GLOBAL void rAT_PlusCNUM (T_ACI_CNUM_MSISDN *msisdn, UBYTE num) {}
356 GLOBAL void rAT_PlusCCWV ( T_ACI_CCWV_CHRG charge ) {}
357
358 GLOBAL void rAT_PercentALS(T_ACI_ALS_MOD ALSmode) {} /* has to be implemented in MFW */
359
360 // ADDED BY RAVI - ACI CHANGES - 6-10-2005
361 #if (BOARD == 61)
362 GLOBAL void rAT_PlusCKEV( T_ACI_CKEV_VALUES sCkevValues,
363 T_ACI_CMER_MODE_TYPE mode) {}
364 GLOBAL void rAT_PercentCPKY(CHAR *keys, SHORT time, SHORT pause) {}
365 #endif
366 // END OF ADDITION - 6-10-2005
367
368 /*to be removed
369 #ifndef FF_2TO1_PS
370 GLOBAL void rAT_PercentRDL(T_ACI_CC_REDIAL_STATE state) {}
371 GLOBAL void rAT_PercentRDLB(T_ACI_CC_RDL_BLACKL_STATE state) {}
372 GLOBAL void rAT_PercentCSTAT(T_ACI_STATE_MSG msgType) {}
373 GLOBAL void rAT_PercentCPRSM (T_ACI_CPRSM_MOD mode) {}
374 #else
375 #endif */
376
377
378 /* SPR#1985 - SH - This is now implemented in mfw_cm.c */
379 /*GLOBAL void rAT_PercentCTYI (T_ACI_CTTY_NEG neg,
380 T_ACI_CTTY_TRX trx) {}*/
381
382 /********* current define *******************************************/
383 #ifdef SIM_TOOLKIT
384 extern char mfwSatMoAccepted;
385 #endif
386
387 #ifdef SIM_PERS
388 EXTERN U8 sim_unlock_in_prog;
389 #endif
390
391 //x0018858 24 Mar, 2005 MMI-FIX-11321
392 //Added a global variable and a function to retreive any pending message.
393 //begin - x0018858 24 Mar, 2005 MMI-FIX-11321
394 UBYTE isMessageWaiting = FALSE;
395
396 //x0pleela 09 Feb, 2006 ER: OMAPS00065203
397 EXTERN UBYTE gEons_alloc_active; /* EONS allocation and activation */
398
399 /*
400 +--------------------------------------------------------------------+
401 | PROJECT: GSM-MFW (8417) MODULE: MFW_CB |
402 | STATE : code ROUTINE: sms_check_message_pending
403 +--------------------------------------------------------------------+
404 PURPOSE : To retreive the status from server wrt to any pending message.
405 */
406 UBYTE sms_check_message_pending(void)
407 {
408 TRACE_EVENT_P1(" the message status is -- %d", isMessageWaiting);
409 return isMessageWaiting;
410 }
411
412 ///end - x0018858 24 Mar, 2005 MMI-FIX-11321
413
414 /*
415 +--------------------------------------------------------------------+
416 | PROJECT: GSM-MFW (8417) MODULE: MFW_CB |
417 | STATE : code ROUTINE: rAT_OK |
418 +--------------------------------------------------------------------+
419
420
421 PURPOSE : OK indication from ACI
422
423 */
424
425 GLOBAL void rAT_OK ( T_ACI_AT_CMD cmdId )
426 {
427
428 TRACE_EVENT_P1("rAT_OK %d",cmdId);
429 switch (cmdId)
430 {
431 case AT_CMD_CFUN:
432 sim_ok_cfun ();
433 break;
434
435 case AT_CMD_COPS:
436 nm_ok_cops ();
437 break;
438
439 case AT_CMD_NRG:
440 nm_ok_cops ();
441 break;
442
443 case AT_CMD_PVRF:
444 sim_ok_cpin ();
445 break;
446
447 case AT_CMD_CPIN:
448 sim_ok_cpin ();
449 break;
450
451 case AT_CMD_A:
452 cm_ok_connect();
453 break;
454
455 case AT_CMD_CMGD:
456 /* JVJ SPR1119 apparently not needed since the rAT_PlusCMGD() already handles it */
457 TRACE_EVENT("ACI has deleted SMS!!");
458 sms_ok_delete ();
459 /*Issue 1432: 01/10/2002: Needed as called by ACI instead of rAT_PlusCMGD if concatenated SMS */
460 break;
461
462 case AT_CMD_CMGR:
463 sms_ok_change ();
464 break;
465
466 case AT_CMD_CHUP:
467 cm_ok_disconnect(CMD_SRC_LCL, 0);
468 break;
469
470 case AT_CMD_H:
471 cm_ok_disconnect(CMD_SRC_LCL, 0);
472 break;
473
474 case AT_CMD_ABRT:
475 cm_ok_disconnect(CMD_SRC_LCL, 0);
476 break;
477
478 case AT_CMD_D:
479 cm_ok_connect();
480 break;
481
482 case AT_CMD_CPWD:
483 sim_ok_cpinc();
484 break;
485
486 case AT_CMD_CHLD:
487 cm_result_cmd(CMD_SRC_LCL, Present);
488 break;
489
490 case AT_CMD_CLCK:
491 #ifdef SIM_PERS
492 // Nov 03, 2005 DR: OMAPS00052032 - xpradipg
493 // if the flag is set then SIM Personalization has triggered the CLCK
494 if(sim_unlock_in_prog == TRUE)
495 {
496 mfw_simlock_continue(TRUE);
497 sim_unlock_in_prog = FALSE;
498 }
499 else
500 #endif
501 ss_ok_clck();
502 break;
503
504 case AT_CMD_CCFC:
505 break;
506
507 case AT_CMD_CCWA:
508 break;
509
510 case KSD_CMD_CB:
511 case KSD_CMD_CF:
512 case KSD_CMD_CL:
513 case KSD_CMD_CW:
514 case KSD_CMD_PWD:
515 case KSD_CMD_UBLK:
516 ss_ok_string(cmdId);
517 break;
518
519 case AT_CMD_CPUC:
520 case AT_CMD_CAMM:
521 case AT_CMD_CACM:
522 cm_ok_aoc(cmdId);
523 break;
524
525 case AT_CMD_CUSD:
526 case KSD_CMD_USSD:
527 ss_ok_ussd(cmdId);
528 break;
529 case AT_CMD_CMGL:
530 sms_ok_CMGL();
531 break;
532 case AT_CMD_CPMS:
533 case AT_CMD_CMGW:
534 case AT_CMD_CMSS:
535 case AT_CMD_CMGS:
536 break;
537
538 case AT_CMD_CPOL:
539 nm_ok_pref_plmn();
540 break;
541
542 case AT_CMD_VTS:
543 cm_ok_dtmf();
544 break;
545
546 case AT_CMD_CSAS:
547 sms_ok_csas();
548 break;
549
550 #ifdef GPRS /* KGT 12-05-2001 */
551 case AT_CMD_CGATT:
552 case AT_CMD_CGDCONT:
553 case AT_CMD_CGACT:
554 case AT_CMD_CGQREQ:
555 case AT_CMD_CGQMIN:
556 case AT_CMD_CGDATA:
557 case AT_CMD_CGPADDR:
558 case AT_CMD_CGAUTO:
559 case AT_CMD_CGANS:
560 case AT_CMD_CGCLASS:
561 case AT_CMD_CGEREP:
562 case AT_CMD_CGREG:
563 case AT_CMD_CGSMS:
564 gprs_ok(cmdId);
565 break;
566 #endif /* GPRS */
567
568 /* SPR919 - SH*/
569 case AT_CMD_BAND:
570 nm_ok_band();
571 break;
572 /*MC, SPR 1392, call deflection successful*/
573 case AT_CMD_CTFR:
574 cm_ok_CTFR();
575
576 /* Marcus: CCBS: 14/11/2002: Start */
577 case AT_CMD_CCBS:
578 TRACE_EVENT("AT_CMD_CCBS");
579 cm_ccbs_ok();
580 break;
581 /* Marcus: CCBS: 14/11/2002: Start */
582
583 default:
584 break;
585 }
586 }
587
588
589 /*
590 +--------------------------------------------------------------------+
591 | PROJECT: GSM-MFW (8417) MODULE: MFW_CB |
592 | STATE : code ROUTINE: rAT_PlusCME |
593 +--------------------------------------------------------------------+
594
595
596 PURPOSE : Error indication from ACI
597
598 */
599
600 GLOBAL void rAT_PlusCME ( T_ACI_AT_CMD cmdId, T_ACI_CME_ERR err )
601 {
602 TRACE_EVENT_P2("rAT_PlusCME(cmdId %d, err %d)",cmdId, err);
603
604 switch (cmdId)
605 {
606 case AT_CMD_COPS:
607 nm_error_cops ();
608 break;
609
610 case AT_CMD_NRG:
611 nm_error_cops ();
612 break;
613 case AT_CMD_CFUN:
614 sim_error_cfun ((U8)err);
615 break;
616
617 case AT_CMD_CPIN:
618 sim_error_cpin ((T_ACI_CME_ERR)err);
619 break;
620
621 case AT_CMD_PVRF:
622 sim_error_cpin ((T_ACI_CME_ERR)err);
623 break;
624
625 case AT_CMD_CHLD:
626 cm_result_cmd(CMD_SRC_LCL, NotPresent);
627 break;
628
629 case AT_CMD_CLCK:
630 #ifdef SIM_PERS
631 // Nov 03, 2005 DR: OMAPS00052032 - xpradipg
632 // if the flag is set then SIM Personalization has triggered the CLCK
633 if(sim_unlock_in_prog == TRUE)
634 {
635 sim_unlock_in_prog = FALSE;
636 mfw_simlock_continue(FALSE);
637 }
638 else
639 #endif
640 ss_error_clck();
641 break;
642
643 case AT_CMD_CPWD:
644 sim_error_cpinc();
645 break;
646
647 case KSD_CMD_CB:
648 case KSD_CMD_CF:
649 case KSD_CMD_CL:
650 case KSD_CMD_CW:
651 case KSD_CMD_PWD:
652 case KSD_CMD_UBLK:
653 ss_error_string(cmdId, err);
654 break;
655
656 case AT_CMD_CPUC:
657 case AT_CMD_CAMM:
658 case AT_CMD_CACM:
659 cm_error_aoc(cmdId, err);
660 break;
661
662 case AT_CMD_CNUM:
663 phb_read_upn_eeprom();
664 break;
665
666 case AT_CMD_CUSD:
667 case KSD_CMD_USSD:
668 ss_error_ussd(cmdId, err);
669 break;
670
671 case AT_CMD_CPOL:
672 nm_error_pref_plmn();
673 break;
674
675 case AT_CMD_VTS:
676 cm_error_dtmf();
677 break;
678
679 case AT_CMD_D:
680 cm_error_dial(err);
681 break;
682
683 case AT_CMD_CLAN:
684 #ifdef FF_2TO1_PS
685 sim_read_lp_cnf(CAUSE_SIM_EF_INVALID,NULL);
686 #else
687 sim_read_lp_cnf(SIM_CAUSE_EF_INVALID,NULL);
688 #endif
689 break;
690
691 #ifdef GPRS /* KGT 12-05-2001 */
692 case AT_CMD_CGATT:
693 case AT_CMD_CGDCONT:
694 case AT_CMD_CGACT:
695 case AT_CMD_CGQREQ:
696 case AT_CMD_CGQMIN:
697 case AT_CMD_CGDATA:
698 case AT_CMD_CGPADDR:
699 case AT_CMD_CGAUTO:
700 case AT_CMD_CGANS:
701 case AT_CMD_CGCLASS:
702 case AT_CMD_CGEREP:
703 case AT_CMD_CGREG:
704 case AT_CMD_CGSMS:
705 gprs_error(cmdId, err);
706 break;
707 #endif /* GPRS */
708
709 /* Marcus: CCBS: 14/11/2002: Start */
710 case AT_CMD_CCBS:
711 TRACE_EVENT("AT_CMD_CCBS");
712 cm_ccbs_error();
713 break;
714
715 case AT_CMD_H:
716 cm_error_disconnect();
717 break;
718 /* Marcus: CCBS: 14/11/2002: Start */
719
720 /*MC, SPR 1392, call deflection error*/
721 case AT_CMD_CTFR:
722 cm_error_CTFR();
723 break;
724
725 /*SPR#2321 - DS - Handle SAT errors */
726 case AT_CMD_SATE:
727 sate_error(err);
728 break;
729 }
730 }
731
732
733
734 /*
735 +--------------------------------------------------------------------+
736 | PROJECT: GSM-MFW (8417) MODULE: MFW_CB |
737 | STATE : code ROUTINE: rAT_NO_CARRIER |
738 +--------------------------------------------------------------------+
739
740
741 PURPOSE : No Carrier indication from ACI
742
743 */
744
745 GLOBAL void rAT_NO_CARRIER( T_ACI_AT_CMD cmdId, SHORT cId )
746 {
747 TRACE_FUNCTION ("rAT_NO_CARRIER()");
748 #ifndef GPRS /* kgt 12-05-2001 */
749 cm_error_connect(cId);
750 #else /* GPRS */
751 cm_error_connect(cId);
752 #endif /* GPRS */
753 }
754
755 /*
756 +--------------------------------------------------------------------+
757 | PROJECT: GSM-MFW (8417) MODULE: MFW_CB |
758 | STATE : code ROUTINE: rAT_BUSY |
759 +--------------------------------------------------------------------+
760
761
762 PURPOSE : Connect indication from ACI
763
764 */
765
766 GLOBAL void rAT_BUSY ( T_ACI_AT_CMD cmdId, SHORT cId )
767 {
768 TRACE_FUNCTION ("rAT_BUSY()");
769
770 #ifndef GPRS /* kgt 12-05-2001 */
771 cm_error_connect(cId);
772 #else /* GPRS */
773 cm_error_connect(cId);
774 #endif /* GPRS */
775 }
776
777
778 /*
779 +--------------------------------------------------------------------+
780 | PROJECT: GSM-MFW (8417) MODULE: MFW_CB |
781 | STATE : code ROUTINE: rAT_NO_ANSWER |
782 +--------------------------------------------------------------------+
783
784
785 PURPOSE : Connect indication from ACI
786
787 */
788
789 GLOBAL void rAT_NO_ANSWER ( T_ACI_AT_CMD cmdId, SHORT cId )
790 {
791 TRACE_FUNCTION ("rAT_NO_ANSWER()");
792
793 #ifndef GPRS /* kgt 12-05-2001 */
794 cm_error_connect(cId);
795 #else /* GPRS */
796 cm_error_connect(cId);
797 #endif /* GPRS */
798 }
799
800
801 /*
802 +--------------------------------------------------------------------+
803 | PROJECT: GSM-MFW (8417) MODULE: MFW_CB |
804 | STATE : code ROUTINE: rAT_NO_DIALTONE |
805 +--------------------------------------------------------------------+
806
807
808 PURPOSE : Connect indication from ACI
809
810 */
811
812 GLOBAL void rAT_NO_DIALTONE ( void )
813 {
814 TRACE_FUNCTION ("rAT_NO_DIALTONE()");
815 }
816
817
818 /*
819 +--------------------------------------------------------------------+
820 | PROJECT: GSM-MFW (8417) MODULE: MFW_CB |
821 | STATE : code ROUTINE: rAT_CONNECT |
822 +--------------------------------------------------------------------+
823
824
825 PURPOSE : Connect indication from ACI, only for data call
826
827 */
828
829 GLOBAL void rAT_CONNECT ( T_ACI_AT_CMD cmdId,
830 T_ACI_BS_SPEED speed,
831 SHORT cId )
832 {
833 TRACE_FUNCTION ("rAT_CONNECT()");
834
835 #ifndef GPRS /* kgt 12-05-2001 */
836
837 if (speed==11)
838 cm_wap_data_connected();
839 else
840 cm_data_connect(cId);
841 #else /* GPRS */
842 cm_data_connect(cId);
843 #endif /* GPRS */
844 }
845
846
847 /*
848 +------------------------------------------------------------------+
849 | PROJECT : GSM-MFW (8417) MODULE : MFW_CB |
850 | STATE : code ROUTINE : rAT_PlusCSSI |
851 +------------------------------------------------------------------+
852
853
854 PURPOSE : Supplementary service notifications
855
856 */
857
858 void rAT_PlusCSSI(T_ACI_CSSI_CODE code, SHORT index)
859 {
860 TRACE_FUNCTION("rAT_PlusCSSI()");
861
862 if (code == CSSI_CODE_NotPresent)
863 return;
864
865 ss_notify(ss_cvtCssiCodes(code), index, 0, 0);
866 }
867
868
869 /*
870 +------------------------------------------------------------------+
871 | PROJECT : GSM-MFW (8417) MODULE : MFW_CB |
872 | STATE : code ROUTINE : rAT_PlusCSSU |
873 +------------------------------------------------------------------+
874
875
876 PURPOSE : Supplementary service notifications
877
878 */
879
880 void rAT_PlusCSSU ( T_ACI_CSSU_CODE code,
881 SHORT index,
882 CHAR *number,
883 T_ACI_TOA *type,
884 CHAR *subaddr,
885 T_ACI_TOS *satype)
886 {
887 TRACE_FUNCTION("rAT_PlusCSSU()");
888
889 if (code == CSSU_CODE_NotPresent)
890 return;
891
892 else if ((code == CSSU_CODE_OnHold) OR
893 (code == CSSU_CODE_Retrieved))
894 cm_notify(code, index, (UBYTE *)number);
895
896 else
897 ss_notify(ss_cvtCssuCodes(code),
898 index,
899 (UBYTE *)number,
900 (UBYTE *)subaddr);
901 }
902
903
904 /*
905 +------------------------------------------------------------------+
906 | PROJECT : GSM-MFW (8417) MODULE : MFW_CB |
907 | STATE : code ROUTINE : rAT_PercentRLOG |
908 +------------------------------------------------------------------+
909
910
911 PURPOSE :
912
913 */
914
915 void rAT_PercentRLOG(T_ACI_RLOG *rslt)
916 {
917 T_MFW_CM_CALL_STAT stat;
918 UBYTE ton;
919 UBYTE mode;
920
921 TRACE_FUNCTION("rAT_PercentRLOG()");
922
923
924 TRACE_EVENT_P1("rslt->dest %d",rslt->dest);
925 TRACE_EVENT_P1("rslt->atRslt %d",rslt->atRslt);
926
927
928 if (rslt->dest > CMD_SRC_LCL)
929 {
930 switch (rslt->atRslt)
931 {
932 case RLOG_RSLT_OK:
933 TRACE_EVENT_P1("rslt->rsltPrm.rOK.cmdId %d", rslt->rsltPrm.rOK.cmdId);
934 if (rslt->rsltPrm.rOK.cmdId EQ AT_CMD_A
935 OR rslt->rsltPrm.rOK.cmdId EQ AT_CMD_D)
936 cm_rmt_ok_connect();
937 if (rslt->rsltPrm.rOK.cmdId EQ AT_CMD_H
938 OR rslt->rsltPrm.rOK.cmdId EQ AT_CMD_CHUP)
939 {
940 //NM Berlin / UK integration 21.09.01
941 //Nov 02, 2005 DR OMAPS00052132 xdeepadh
942 //The usage of ATI enum is put under the flag FF_ATI
943 #if defined (FF_ATI) || defined (NEPTUNE_BOARD)
944 cm_ok_disconnect(CMD_SRC_ATI_1, rslt->rsltPrm.rOK.cId);
945 #endif
946 }
947 if (rslt->rsltPrm.rOK.cmdId EQ AT_CMD_ABRT)
948 {
949 if (cm_search_callStat(rslt->rsltPrm.rOK.cId, &stat, &ton, &mode) == CM_OK)
950 {
951 if (stat == CALL_DEACTIVE)
952 {
953 //NM Berlin / UK integration 21.09.01
954 //Nov 02, 2005 DR OMAPS00052132 xdeepadh
955 //The usage of ATI enum is put under the flag FF_ATI
956 #ifdef FF_ATI
957 cm_ok_disconnect(CMD_SRC_ATI_1, rslt->rsltPrm.rOK.cId);
958 #endif //FF_ATI
959 }
960 }
961 }
962 if (rslt->rsltPrm.rOK.cmdId EQ AT_CMD_CHLD)
963 {
964 //NM Berlin / UK integration 21.09.01
965 //Nov 02, 2005 DR OMAPS00052132 xdeepadh
966 //The usage of ATI enum is put under the flag FF_ATI
967 #ifdef FF_ATI
968 cm_result_cmd(CMD_SRC_ATI_1, Present);
969 #endif //FF_ATI
970 }
971
972 #ifdef GPRS /* JVJ 10-10-02 */
973 /* SH - GPRS*/
974 switch(rslt->rsltPrm.rOK.cmdId)
975 {
976 case AT_CMD_CGDCONT:
977 case AT_CMD_CGQREQ:
978 case AT_CMD_CGQMIN:
979 case AT_CMD_CGATT:
980 case AT_CMD_CGACT:
981 case AT_CMD_CGDATA:
982 case AT_CMD_CGPADDR:
983 case AT_CMD_CGAUTO:
984 case AT_CMD_CGANS:
985 case AT_CMD_CGCLASS:
986 case AT_CMD_CGEREP:
987 case AT_CMD_CGREG:
988 case AT_CMD_CGSMS:
989 case AT_CMD_SNCNT:
990 case AT_CMD_P_CGREG:
991 gprs_ok((T_ACI_AT_CMD)rslt->rsltPrm.rOK.cId);
992 break;
993 }
994 /* end SH */
995 #endif
996 //Mar 23, 2006 DR OMAPS00069173 Prabakar R
997 //break was put inside #ifdef GPRS. it has been moved outside
998 break;
999 case RLOG_RSLT_NoCarrier:
1000 #ifdef GPRS /* JVJ 10-10-02 */
1001 /* SH - don't send to CM for GPRS call*/
1002 if (rslt->rsltPrm.rNO_CARRIER.cmdId == AT_CMD_CGDATA)
1003 {
1004 gprs_err_connect(rslt->rsltPrm.rNO_CARRIER.cId);
1005 }
1006 else
1007 #endif
1008 cm_rmt_error_connect(rslt->rsltPrm.rNO_CARRIER.cId);
1009
1010 break;
1011 case RLOG_RSLT_Busy:
1012 /* SH - don't send to CM for GPRS call*/
1013 #ifdef GPRS /* JVJ 10-10-02 */
1014 if (rslt->rsltPrm.rBUSY.cmdId == AT_CMD_CGDATA)
1015 gprs_err_connect(rslt->rsltPrm.rBUSY.cId);
1016 else
1017 #endif
1018 cm_rmt_error_connect(rslt->rsltPrm.rBUSY.cId);
1019 break;
1020
1021 case RLOG_RSLT_NoAnswer:
1022 /* SH - don't send to CM for GPRS call*/
1023 #ifdef GPRS /* JVJ 10-10-02 */
1024 if (rslt->rsltPrm.rNO_ANSWER.cmdId == AT_CMD_CGDATA)
1025 gprs_err_connect(rslt->rsltPrm.rNO_ANSWER.cId);
1026 else
1027 #endif
1028 cm_rmt_error_connect(rslt->rsltPrm.rNO_ANSWER.cId);
1029 break;
1030
1031 case RLOG_RSLT_Connect:
1032 //NM
1033 //merged latest version of MFW from Berlin
1034 //only related with NO_ASCIIZ
1035 //code 1: was replaced by code 2
1036 //keep it still comment out the code 1
1037 //by reason of problem swap the codes
1038
1039 //code 1:
1040 //cm_data_connect(rslt->rsltPrm.rCONNECT.cId);
1041
1042 /* notify MMI of connect by external MMI */
1043 //code 2:
1044
1045 /* SH - don't send to CM for GPRS call*/
1046 #ifdef GPRS /* JVJ 10-10-02 */
1047 if (rslt->rsltPrm.rCONNECT.cmdId == AT_CMD_CGDATA)
1048 gprs_connect(rslt->rsltPrm.rCONNECT.cId);
1049 else
1050 /* SH end */
1051 #endif
1052 cm_rmt_ok_connect(); /* VO ???: to be changed (needs E_CM_CONNECT) */
1053
1054
1055 break;
1056 #ifdef GPRS /* JVJ 10-10-02 */
1057 case RLOG_RSLT_CME:
1058 /* SH - GPRS*/
1059 TRACE_FUNCTION_P1("rslt->rsltPrm.rOK.cmdId=%d",rslt->rsltPrm.rOK.cmdId);
1060 switch(rslt->rsltPrm.rOK.cmdId)
1061 {
1062 case AT_CMD_CGDCONT:
1063 case AT_CMD_CGQREQ:
1064 case AT_CMD_CGQMIN:
1065 case AT_CMD_CGATT:
1066 case AT_CMD_CGACT:
1067 case AT_CMD_CGDATA:
1068 case AT_CMD_CGPADDR:
1069 case AT_CMD_CGAUTO:
1070 case AT_CMD_CGANS:
1071 case AT_CMD_CGCLASS:
1072 case AT_CMD_CGEREP:
1073 case AT_CMD_CGREG:
1074 case AT_CMD_CGSMS:
1075 case AT_CMD_SNCNT:
1076 case AT_CMD_P_CGREG:
1077 gprs_error(rslt->rsltPrm.rCME.cmdId,rslt->rsltPrm.rCME.err);
1078 break;
1079 //CQ-16432 start
1080 case AT_CMD_CPWD:
1081 TRACE_FUNCTION("AT_CMD_CPWD");
1082 ss_sat_passwdReqd(rslt->rsltPrm.rCME.cmdId,rslt->rsltPrm.rCME.err);
1083 break;
1084 //CQ-16432 end
1085 }
1086 /* end SH */
1087 break;
1088 #endif
1089 }
1090 }
1091 }
1092
1093
1094 /*
1095 +------------------------------------------------------------------+
1096 | PROJECT : GSM-MFW (8417) MODULE : MFW_CB |
1097 | STATE : code ROUTINE : rAT_PercentCLOG |
1098 +------------------------------------------------------------------+
1099
1100
1101 PURPOSE :
1102
1103 */
1104
1105 void rAT_PercentCLOG(T_ACI_CLOG *cmd)
1106 {
1107 TRACE_FUNCTION("rAT_PercentCLOG() in mfw");
1108
1109 if (cmd->retCode NEQ AT_CMPL AND cmd->retCode NEQ AT_EXCT)
1110 return;
1111
1112 switch (cmd->cmdType)
1113 {
1114 case CLOG_TYPE_Set:
1115 switch (cmd->atCmd)
1116 {
1117 case AT_CMD_D:
1118 if (cmd->cmdPrm.sD.simCallCtrl NEQ D_SIMCC_ACTIVE_CHECK)
1119 cm_AT_D(cmd);
1120 break;
1121 #ifdef SIM_TOOLKIT
1122 case AT_CMD_A:
1123 if (mfwSatMoAccepted)
1124 { /* ES!! accepted SAT Call */
1125 mfwSatMoAccepted = 0;
1126 cm_AT_D(cmd);
1127 }
1128 break;
1129 #endif
1130
1131 case KSD_CMD_CB:
1132 case KSD_CMD_CF:
1133 case KSD_CMD_CW:
1134 case KSD_CMD_CL:
1135 case KSD_CMD_PWD:
1136 case KSD_CMD_UBLK:
1137 case KSD_CMD_USSD:
1138 case AT_CMD_CUSD:
1139 ss_command_info(cmd);
1140 break;
1141
1142 case AT_CMD_CHLD:
1143 cm_AT_CHLD(cmd);
1144 break;
1145
1146 default:
1147 break;
1148 }
1149 break;
1150
1151 case CLOG_TYPE_Query:
1152 break;
1153
1154 case CLOG_TYPE_Test:
1155 break;
1156 }
1157 }
1158
1159
1160 /*
1161 +--------------------------------------------------------------------+
1162 | PROJECT: GSM-MFW (8417) MODULE: MFW_CB |
1163 | STATE : code ROUTINE: rAT_PercentDRV |
1164 +--------------------------------------------------------------------+
1165
1166
1167 PURPOSE : Driver indication from layer 1
1168
1169 */
1170
1171 GLOBAL void rAT_PercentDRV( T_ACI_DRV_DEV device,
1172 T_ACI_DRV_FCT function,
1173 UBYTE val1,
1174 UBYTE val2)
1175 {
1176 TRACE_FUNCTION ("rAT_PercentDRV()");
1177 //ES!! check device & function !!
1178
1179
1180 drvKeyUpDown(val2,val1); //ES!! val2 korrekt ?
1181 }
1182
1183
1184 /*
1185 +--------------------------------------------------------------------+
1186 | PROJECT: GSM-MFW (8417) MODULE: MFW_CB |
1187 | STATE : code ROUTINE: rAT_PercentCNAP |
1188 +--------------------------------------------------------------------+
1189
1190 PURPOSE : handles rAT_PercentCNAP call back
1191
1192 */
1193
1194 EXTERN void rAT_PercentCNAP ( T_callingName *NameId, T_ACI_CNAP_STATUS status )
1195 {
1196 TRACE_FUNCTION("rAT_PercentCNAP()");
1197 }
1198
1199
1200
1201 /*
1202 +--------------------------------------------------------------------+
1203 | PROJECT : MODULE : MFW_ACI_DUMMY |
1204 | STATE : code ROUTINE : rAT_PlusCLAN |
1205 +--------------------------------------------------------------------+
1206
1207 PURPOSE : handles AT_PlusCLAN call back
1208
1209 */
1210
1211 EXTERN void rAT_PlusCLAN (T_ACI_LAN_SUP *CLang )
1212 {
1213 TRACE_FUNCTION("rAT_PlusCLAN()");
1214
1215 #ifdef FF_2TO1_PS /* kgt 12-05-2001 */
1216 sim_read_lp_cnf(CAUSE_SIM_NO_ERROR,CLang);
1217 #else
1218 sim_read_lp_cnf(SIM_NO_ERROR,CLang);
1219 #endif
1220
1221 }
1222
1223 /*
1224 +--------------------------------------------------------------------+
1225 | PROJECT : MODULE : MFW_ACI_DUMMY |
1226 | STATE : code ROUTINE : rAT_PlusCLAE |
1227 +--------------------------------------------------------------------+
1228
1229 PURPOSE : handles AT_PlusCLAE call back
1230
1231 */
1232
1233 EXTERN void rAT_PlusCLAE (T_ACI_LAN_SUP *CLang )
1234 {
1235 TRACE_FUNCTION("rAT_PlusCLAE()");
1236 }
1237
1238 /*
1239 +--------------------------------------------------------------------+
1240 | PROJECT : ACI/MMI MODULE : ACI_RET |
1241 | STATE : code ROUTINE : rAT_PercentCSQ |
1242 +--------------------------------------------------------------------+
1243
1244 PURPOSE : handles rAT_PercentCSQ call back
1245
1246 Shen,Chao
1247
1248 */
1249
1250 EXTERN void rAT_PercentCSQ(UBYTE rssi, UBYTE ber, UBYTE actlevel)
1251 {
1252 #ifdef NEPTUNE_BOARD
1253 static UBYTE prelevel=0;
1254 #endif
1255
1256 TRACE_FUNCTION("rAT_PercentCSQ()");
1257
1258 #ifdef NEPTUNE_BOARD
1259 if( prelevel != actlevel )
1260 {
1261 globalSignalUpdate(actlevel);
1262 prelevel = actlevel;
1263 }
1264 #endif
1265 }
1266
1267
1268
1269 #ifdef FF_CPHS
1270 /*
1271 +--------------------------------------------------------------------+
1272 | PROJECT : MODULE : MFW_ACI_DUMMY |
1273 | STATE : code ROUTINE : rAT_PercentCPVWI |
1274 +--------------------------------------------------------------------+
1275
1276 PURPOSE : handles AT_PercentCPVWI call back
1277
1278 */
1279
1280 GLOBAL void rAT_PercentCPVWI ( UBYTE flag_set,
1281 USHORT line)
1282 { }
1283
1284 /*
1285 +--------------------------------------------------------------------+
1286 | PROJECT : MODULE : MFW_ACI_DUMMY |
1287 | STATE : code ROUTINE : rAT_PercentCPNUMS |
1288 +--------------------------------------------------------------------+
1289
1290 PURPOSE : handles AT_PercentCPNUMS call back
1291
1292 */
1293 GLOBAL void rAT_PercentCPNUMS(UBYTE element_index,
1294 UBYTE index_level,
1295 CHAR *alpha_tag,
1296 CHAR *number,
1297 BOOL premium_flag,
1298 BOOL network_flag,
1299 UBYTE type_of_address)
1300 {
1301 }
1302
1303
1304 /*
1305 +--------------------------------------------------------------------+
1306 | PROJECT : MODULE : MFW_ACI_DUMMY |
1307 | STATE : code ROUTINE : rAT_PercentCPCFU |
1308 +--------------------------------------------------------------------+
1309
1310 PURPOSE : handles AT_PercentCPCFU call back
1311
1312 */
1313 GLOBAL void rAT_PercentCPCFU(UBYTE flag_set,
1314 T_CPHS_LINES line)
1315 {}
1316
1317
1318 /*
1319 +--------------------------------------------------------------------+
1320 | PROJECT : MODULE : MFW_ACI_DUMMY |
1321 | STATE : code ROUTINE : rAT_PercentCPROAM |
1322 +--------------------------------------------------------------------+
1323
1324 PURPOSE : handles AT_PercentCPROAM call back
1325
1326 */
1327 GLOBAL void rAT_PercentCPROAM(UBYTE roam_status)
1328 {}
1329
1330 #endif /* FF_CPHS */
1331
1332 /*
1333 +--------------------------------------------------------------------+
1334 | PROJECT : MODULE : MFW_ACI_DUMMY |
1335 | STATE : code ROUTINE : rAT_PlusCIEV |
1336 +--------------------------------------------------------------------+
1337
1338 PURPOSE : dummy for +CIEV unsolicited message
1339
1340 */
1341 GLOBAL void rAT_PlusCIEV( T_ACI_MM_CIND_VAL_TYPE sCindValues,
1342 T_ACI_MM_CMER_VAL_TYPE sCmerSettings )
1343 {
1344 TRACE_FUNCTION("rAT_PlusCIEV()");
1345
1346 //x0018858 24 Mar, 2005 MMI-FIX-11321
1347 //Added a switch statement to handle the indication received.
1348 //begin - x0018858 24 Mar, 2005 MMI-FIX-11321
1349
1350 switch(sCmerSettings.sCmerIndParam)
1351 {
1352 case CMER_INDICATOR_INVALID:
1353 case CMER_INDICATOR_0:
1354 case CMER_INDICATOR_1:
1355 break;
1356 case CMER_INDICATOR_2:
1357 switch(sCindValues.sCindSmsFullParam)
1358 {
1359 case CIND_SMSFULL_INDICATOR_INVALID:
1360 break;
1361 case CIND_SMSFULL_INDICATOR_MEMFULL:
1362 TRACE_FUNCTION("CIND_SMSFULL_INDICATOR_MEMFULL");
1363 isMessageWaiting = TRUE;
1364 break;
1365 case CIND_SMSFULL_INDICATOR_MEMAVAIL:
1366 TRACE_FUNCTION("CIND_SMSFULL_INDICATOR_MEMAVAIL");
1367 isMessageWaiting = FALSE;
1368 break;
1369 case CIND_SMSFULL_INDICATOR_MAX:
1370 default:
1371 break;
1372 }
1373 case CMER_INDICATOR_TYPE_MAX:
1374 default:
1375 break;
1376 }
1377 //end - x0018858 24 Mar, 2005 MMI-FIX-11321
1378
1379 }
1380
1381 #ifndef FF_2TO1_PS/*
1382 +--------------------------------------------------------------------+
1383 | PROJECT : MODULE : MFW_ACI_DUMMY |
1384 | STATE : code ROUTINE : rAT_PercentCNIV |
1385 +--------------------------------------------------------------------+
1386
1387 PURPOSE : dummy for %CNIV unsolicited message
1388
1389 */
1390 //x0pleela 09 Feb, 2006 ER:OMAPS00065203
1391 GLOBAL void rAT_PercentCNIV (T_MMR_INFO_IND *mmr_info_ind)
1392 {
1393 T_MFW_NETWORK_STRUCT plmn_netw_data;
1394 SHORT mcc = 0;
1395 SHORT mnc = 0;
1396
1397 TRACE_FUNCTION("rAT_PercentCNIV()");
1398
1399 //copy plmn info into plmn_netw_data from mmr_info_ind
1400 memset(&plmn_netw_data, 0, sizeof(T_MFW_NETWORK_STRUCT) );
1401
1402 if (mmr_info_ind->plmn.v_plmn)
1403 {
1404 cmhMM_CnvrtPLMN2INT( mmr_info_ind->plmn.mcc,
1405 mmr_info_ind->plmn.mnc,
1406 &mcc, &mnc );
1407 }
1408 /* build numeric plmn representation */
1409 if ((mnc & 0x000F) EQ 0x000F)
1410 {
1411 sprintf ((char*)&plmn_netw_data.network_numeric, "%d%d",
1412 mcc, (mnc & 0x0FF0) >> 4);
1413 }
1414 else
1415 {
1416 sprintf ((char*)&plmn_netw_data.network_numeric, "%d%d", mcc, mnc);
1417 }
1418
1419 if (mmr_info_ind->short_name.v_name AND /* short name only */
1420 !mmr_info_ind->full_name.v_name)
1421 {
1422 #ifdef NO_ASCIIZ
1423 memcpy( plmn_netw_data.network_short.data,
1424 mmr_info_ind->short_name.text,
1425 mmr_info_ind->short_name.c_text);
1426 #else
1427 strcpy( plmn_netw_data.network_short, (char*)mmr_info_ind->short_name.text);
1428 #endif
1429 }
1430 else if (!mmr_info_ind->short_name.v_name AND
1431 mmr_info_ind->full_name.v_name) /* full name only */
1432 {
1433 #ifdef NO_ASCIIZ
1434 memcpy( plmn_netw_data.network_long.data,
1435 mmr_info_ind->full_name.text,
1436 mmr_info_ind->full_name.c_text);
1437 #else
1438 strcpy( plmn_netw_data.network_long, (char*)mmr_info_ind->full_name.text );
1439 #endif
1440 }
1441 else
1442 {
1443 #ifdef NO_ASCIIZ
1444 memcpy( plmn_netw_data.network_long.data,
1445 mmr_info_ind->full_name.text,
1446 mmr_info_ind->full_name.c_text);
1447 memcpy( plmn_netw_data.network_short.data,
1448 mmr_info_ind->short_name.text,
1449 mmr_info_ind->short_name.c_text);
1450 #else
1451 strcpy( plmn_netw_data.network_long, (char*)mmr_info_ind->full_name.text );
1452 strcpy( plmn_netw_data.network_short, (char*)mmr_info_ind->short_name.text);
1453 #endif
1454 }
1455
1456 plmn_netw_data.opn_read_from = NM_NITZ;
1457
1458 set_opn_sel_done(TRUE);
1459 nm_get_network_data(&plmn_netw_data);
1460 }
1461
1462 #endif
1463 /*
1464 +--------------------------------------------------------------------+
1465 | PROJECT : MODULE : MFW_ACI_DUMMY |
1466 | STATE : code ROUTINE : rAT_PercentCCCN |
1467 +--------------------------------------------------------------------+
1468
1469 PURPOSE :
1470 */
1471 GLOBAL void rAT_PercentCCCN ( T_ACI_FAC_DIR tDirection,
1472 SHORT cId,
1473 #ifdef FF_2TO1_PS
1474 T_NAS_fac_inf *acFie )
1475 #else
1476 T_fac_inf *acFie )
1477 #endif
1478 {
1479 TRACE_FUNCTION ("rAT_PercentCCCN ()");
1480 }
1481
1482 /*
1483 +--------------------------------------------------------------------+
1484 | PROJECT : MODULE : MFW_ACI_DUMMY |
1485 | STATE : code ROUTINE : rAT_PercentCSSN |
1486 +--------------------------------------------------------------------+
1487
1488 PURPOSE :
1489 */
1490 GLOBAL void rAT_PercentCSSN ( T_ACI_FAC_DIR tDirection,
1491 T_ACI_FAC_TRANS_TYPE tType,
1492 #ifdef FF_2TO1_PS
1493 T_NAS_fac_inf *acFie )
1494 #else
1495 T_fac_inf *acFie )
1496 #endif
1497 {
1498 TRACE_FUNCTION ("rAT_PercentCSSN ()");
1499 }
1500
1501
1502 #ifdef FF_2TO1_PS
1503
1504 /*
1505 +--------------------------------------------------------------------+
1506 | PROJECT : MODULE : MFW_ACI_DUMMY |
1507 | STATE : code ROUTINE : rAT_PercentCMGRS |
1508 +--------------------------------------------------------------------+
1509
1510 PURPOSE :
1511 */
1512 GLOBAL void rAT_PercentCMGRS ( T_ACI_CMGRS_MODE mode,
1513 UBYTE tp_mr,
1514 UBYTE resend_count,
1515 UBYTE max_retrans )
1516 {
1517 TRACE_FUNCTION ("rAT_PercentCMGRS ()");
1518 }
1519
1520 #endif
1521 /*
1522 +--------------------------------------------------------------------+
1523 | PROJECT : MODULE : MFW_ACI_DUMMY |
1524 | STATE : code ROUTINE : rAT_PercentRDLB |
1525 +--------------------------------------------------------------------+
1526
1527 PURPOSE :
1528 */
1529 GLOBAL void rAT_PercentRDLB ( T_ACI_CC_RDL_BLACKL_STATE state )
1530 {
1531 TRACE_FUNCTION ("rAT_PercentRDLB ()");
1532 }
1533 /*
1534 +--------------------------------------------------------------------+
1535 | PROJECT : MODULE : MFW_ACI_DUMMY |
1536 | STATE : code ROUTINE : rAT_PercentCPRSM |
1537 +--------------------------------------------------------------------+
1538
1539 PURPOSE :
1540 */
1541
1542 GLOBAL void rAT_PercentCPRSM ( T_ACI_CPRSM_MOD mode )
1543 {
1544 TRACE_FUNCTION ("rAT_PercentCPRSM ()");
1545 }
1546
1547 /*
1548 +--------------------------------------------------------------------+
1549 | PROJECT : MODULE : MFW_ACI_DUMMY |
1550 | STATE : code ROUTINE : rAT_PercentCSTAT |
1551 +--------------------------------------------------------------------+
1552
1553 PURPOSE :
1554 */
1555
1556 //x0pleela 13 Feb, 2006
1557 //Querying for EONS data when %CSTAT returns EONS ready
1558
1559 GLOBAL void rAT_PercentCSTAT ( T_ACI_STATE_MSG msgType )
1560 {
1561 #ifndef NEPTUNE_BOARD
1562 T_MFW_NETWORK_STRUCT plmn_eons_data;
1563 #endif
1564
1565 TRACE_FUNCTION ("rAT_PercentCSTAT ()");
1566 #ifndef NEPTUNE_BOARD
1567 memset(&plmn_eons_data, 0, sizeof(T_MFW_NETWORK_STRUCT) );
1568 if( (msgType.entityId EQ STATE_MSG_EONS ) AND
1569 (msgType.entityState EQ ENTITY_STATUS_Ready) )
1570 {
1571 gEons_alloc_active = TRUE;
1572 plmn_eons_data.opn_read_from = NM_EONS;
1573 nm_get_COPN(&plmn_eons_data);
1574
1575 //send E_NM_OPN event
1576 nm_get_network_data(&plmn_eons_data);
1577 }
1578 else
1579 gEons_alloc_active = FALSE;
1580 #endif
1581 }
1582
1583
1584 /*
1585 +--------------------------------------------------------------------+
1586 | PROJECT : MODULE : MFW_ACI_DUMMY |
1587 | STATE : code ROUTINE : rAT_PercentRDL |
1588 +--------------------------------------------------------------------+
1589
1590 PURPOSE :
1591 */
1592
1593 GLOBAL void rAT_PercentRDL ( T_ACI_CC_REDIAL_STATE state )
1594 {
1595 TRACE_FUNCTION ("rAT_PercentRDL ()");
1596 }
1597
1598 #ifndef FF_2TO1_PS
1599 /*
1600 +--------------------------------------------------------------------+
1601 | PROJECT : MODULE : MFW_ACI_DUMMY |
1602 | STATE : code ROUTINE : rAT_PercentCMGR |
1603 +--------------------------------------------------------------------+
1604
1605 PURPOSE :
1606 */
1607
1608 GLOBAL void rAT_PercentCMGR ( T_ACI_CMGL_SM* sm,
1609 T_ACI_CMGR_CBM * cbm)
1610 {
1611 TRACE_FUNCTION ("rAT_PercentCMGR ()");
1612 }
1613
1614 /*
1615 +--------------------------------------------------------------------+
1616 | PROJECT : MODULE : MFW_ACI_DUMMY |
1617 | STATE : code ROUTINE : rAT_PercentCMGL |
1618 +--------------------------------------------------------------------+
1619
1620 PURPOSE :
1621 */
1622
1623 GLOBAL void rAT_PercentCMGL ( T_ACI_CMGL_SM * smLst)
1624 {
1625 TRACE_FUNCTION ("rAT_PercentCMGL ()");
1626 }
1627
1628
1629 /*
1630 +--------------------------------------------------------------------+
1631 | PROJECT : MODULE : MFW_ACI_DUMMY |
1632 | STATE : code ROUTINE : rAT_* |
1633 +--------------------------------------------------------------------+
1634
1635 PURPOSE : Following functions MOved from ATI. (ati_ret.c)
1636 */
1637
1638
1639 GLOBAL void rAT_PercentCREG ( T_ACI_CREG_STAT status,
1640 USHORT lac,
1641 USHORT cid,
1642 T_ACI_P_CREG_GPRS_IND gprs_ind)
1643 {
1644 TRACE_FUNCTION("rAT_PercentCREG()");
1645 }
1646
1647 #if defined (MFW) || defined (SMI)
1648 #ifdef FF_TIMEZONE
1649 GLOBAL void rAT_PlusCTZV ( S32 timezone )
1650 {
1651 TRACE_FUNCTION("rAT_PlusCTZV()");
1652 }
1653 #else
1654 GLOBAL void rAT_PlusCTZV ( UBYTE* timezone )
1655 {
1656 TRACE_FUNCTION("rAT_PlusCTZV()");
1657 }
1658 #endif
1659 #endif
1660
1661 #if defined (MFW) || defined (SMI)
1662 GLOBAL void rAT_PercentCTZV (T_MMR_INFO_IND *mmr_info_ind, S32 timezone )
1663 {
1664 TRACE_FUNCTION("rAT_PercentCTZV()");
1665 }
1666 #endif
1667
1668 /*
1669 +--------------------------------------------------------------------+
1670 | PROJECT : GSM-PS (6147) MODULE : |
1671 | STATE : code ROUTINE : |
1672 +--------------------------------------------------------------------+
1673
1674 PURPOSE : dummy function, needs not to be used.
1675 */
1676 GLOBAL void rAT_Z ( void ){}
1677
1678 /*
1679 +--------------------------------------------------------------------+
1680 | PROJECT : MODULE : MFW_ACI_DUMMY |
1681 | STATE : code ROUTINE : rAT_* |
1682 +--------------------------------------------------------------------+
1683
1684 PURPOSE : Following functions MOved from ACI. (ati_em_ret.c)
1685 */
1686
1687 // June 01, 2005 REF: CRR 31559 x0021334
1688 // Description: TCS2.1.1 SW not buildable without engineering mode
1689 // Solution: Engineering Mode specific functions are guarded by 'FF_EM_MODE' flag
1690
1691 #ifdef FF_EM_MODE
1692 GLOBAL void rAT_PercentEM ( /*UBYTE srcId,*/ T_EM_VAL *val_tmp )
1693 {
1694 }
1695
1696 GLOBAL void rAT_PercentEMET ( /*UBYTE srcId,*/ T_EM_VAL val_tmp )
1697 {
1698
1699 }
1700
1701 GLOBAL void rAT_PercentEMETS ( UBYTE entity )
1702 {
1703 }
1704 #endif /*FF_EM_MODE*/
1705
1706 /*
1707 +--------------------------------------------------------------------+
1708 | PROJECT : MODULE : MFW_ACI_DUMMY |
1709 | STATE : code ROUTINE : rAT_* |
1710 +--------------------------------------------------------------------+
1711
1712 PURPOSE : Following functions MOved from ACI. (ati_cphs.c)
1713 */
1714
1715
1716
1717 #ifndef MFW
1718 #ifndef FF_MMI_RIV
1719 /* dummy in case of SMI */
1720 GLOBAL void rAT_PercentCPNUMS(UBYTE element_index,
1721 UBYTE index_level,
1722 CHAR *alpha_tag,
1723 CHAR *number,
1724 BOOL premium_flag,
1725 BOOL network_flag,
1726 UBYTE type_of_address)
1727 {
1728 }
1729 #endif /*ndef FF_MMI_RIV */
1730 #endif /* ndef MFW */
1731
1732 #ifndef MFW
1733 #ifndef FF_MMI_RIV
1734 /* dummy in case of SMI */
1735 GLOBAL void rAT_PercentCPROAM(UBYTE roam_status)
1736 {}
1737 #endif /* ndef FF_MMI_RIV */
1738 #endif /* ndef MFW */
1739
1740 #ifndef MFW
1741 #ifndef FF_MMI_RIV
1742 /* dummy in case of SMI */
1743 GLOBAL void rAT_PercentCPVWI ( UBYTE flag_set,
1744 USHORT line)
1745 { }
1746 #endif /* FF_MMI_RIV */
1747 #endif /* MFW */
1748 #endif /*FF_2TO1_PS*/
1749
1750
1751
1752 /*
1753 +--------------------------------------------------------------------+
1754 | PROJECT : GSM-F&D (8411) MODULE : MFW_ACI_DUMMY |
1755 | STATE : code ROUTINE : rAT_PlusCLVL |
1756 +--------------------------------------------------------------------+
1757
1758 PURPOSE : handles callback for +CLVL querying the volume
1759 */
1760
1761 GLOBAL void rAT_PlusCLVL(U8 drvVol)
1762 {
1763 TRACE_FUNCTION ("rAT_PlusCLVL()");
1764
1765 return;
1766 }
1767
1768 /*
1769 +--------------------------------------------------------------------+
1770 | PROJECT : GSM-F&D (8411) MODULE : MFW_ACI_DUMMY |
1771 | STATE : code ROUTINE : rAT_PlusCRSL |
1772 +--------------------------------------------------------------------+
1773
1774 PURPOSE : handles callback for +CRSL querying the volume
1775 */
1776
1777 GLOBAL void rAT_PlusCRSL(U8 drvVol)
1778 {
1779 TRACE_FUNCTION ("rAT_PlusCRSL()");
1780
1781 return;
1782 }
1783
1784 /*
1785 +--------------------------------------------------------------------+
1786 | PROJECT : GSM-F&D (8411) MODULE : MFW_ACI_DUMMY |
1787 | STATE : code ROUTINE : rAT_PlusCMUT |
1788 +--------------------------------------------------------------------+
1789
1790 PURPOSE : handles callback for +CMUT querying the volume
1791 */
1792
1793 GLOBAL void rAT_PlusCMUT(U8 drvMute)
1794 {
1795 TRACE_FUNCTION ("rAT_PlusCMUT()");
1796
1797 return;
1798 }
1799
1800 /* Mar 14, 2006 REF:ER OMAPS00070811 */
1801 #ifdef NEPTUNE_BOARD
1802 /*
1803 +--------------------------------------------------------------------+
1804 | PROJECT : GSM-F&D (8411) MODULE : MFW_ACI_DUMMY |
1805 | STATE : code ROUTINE : rAT_PercentCMGR |
1806 +--------------------------------------------------------------------+
1807
1808 */
1809 GLOBAL void rAT_PercentCMGR ( T_ACI_CMGL_SM* sm,
1810 T_ACI_CMGR_CBM* cbm )
1811 {
1812 TRACE_FUNCTION ("rAT_PercentCMGR()");
1813 }
1814
1815 /*
1816 +--------------------------------------------------------------------+
1817 | PROJECT : GSM-F&D (8411) MODULE : MFW_ACI_DUMMY |
1818 | STATE : code ROUTINE : rAT_PercentCMGL |
1819 +--------------------------------------------------------------------+
1820
1821 PURPOSE :
1822 */
1823 GLOBAL void rAT_PercentCMGL ( T_ACI_CMGL_SM * smLst )
1824 {
1825 TRACE_FUNCTION ("rAT_PercentCMGL()");
1826 }
1827
1828 #endif
1829
1830 #if defined(TI_UMTS) && defined(TI_PS_3GPP_R5)
1831 /*
1832 +--------------------------------------------------------------------+
1833 | PROJECT : GSM-F&D (8411) MODULE : MFW_ACI_DUMMY |
1834 | STATE : code ROUTINE : rAT_PercentMMCI |
1835 +--------------------------------------------------------------------+
1836
1837 PURPOSE : handles callback for %MMCC indication cc service change
1838 fallback case ( SCUDIF)
1839 */
1840
1841 GLOBAL void rAT_PercentMMCI ( T_ACI_MMCI_STAT state)
1842 {
1843 TRACE_FUNCTION("rAT_PercentMMCI()");
1844
1845 return;
1846 }
1847
1848 #endif /* TI_UMTS && TI_PS_3GPP_R5 */
1849
1850 #ifdef TI_PS_FF_EM
1851
1852 GLOBAL void rAT_PercentEINFO (U16 offset, U16 length, T_ENG_INFO_REQ *eng_info_req)
1853 {
1854 TRACE_FUNCTION("rAT_PercentEINFO()");
1855 }
1856
1857 GLOBAL void rAT_PercentESINFO (U16 offset, U16 length, T_ENG_INFO_STATIC_REQ *eng_info_static_req)
1858 {
1859 TRACE_FUNCTION("rAT_PercentESINFO()");
1860 }
1861
1862 #endif /* TI_PS_FF_EM */
1863
1864
1865 /* EOF */