comparison src/ui/mfw/mfw_cb.c @ 188:92abb46dc1ba

src/ui/mfw/*.[ch]: rm trailing white space
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 19 Jan 2021 06:10:27 +0000
parents 67bfe9f274f6
children
comparison
equal deleted inserted replaced
187:a33dd8a5dcc9 188:92abb46dc1ba
14 14
15 $History:: Mfw_cb.c $ 15 $History:: Mfw_cb.c $
16 Aug 07, 2007 DR:OMAPS00137726 x0066814(Geetha) 16 Aug 07, 2007 DR:OMAPS00137726 x0066814(Geetha)
17 Description:HPLMN Manual Selection at power on -unable to perform manual selection at power ON 17 Description:HPLMN Manual Selection at power on -unable to perform manual selection at power ON
18 Solution: In rAT_PlusCME, under case AT_CMD_NRG, added the code to list PLMN if Manual is the 18 Solution: In rAT_PlusCME, under case AT_CMD_NRG, added the code to list PLMN if Manual is the
19 network regieteration mode during bootup. 19 network regieteration mode during bootup.
20 20
21 May 31, 2007 DR: OMAPS00133201 x0pleela 21 May 31, 2007 DR: OMAPS00133201 x0pleela
22 Description: MS keeps searching networks and doesn't list available PLMNs after 22 Description: MS keeps searching networks and doesn't list available PLMNs after
23 performing manual selection 23 performing manual selection
24 Solution : In function rAT_PlusCME(), for commands AT_CMD_COPS and 24 Solution : In function rAT_PlusCME(), for commands AT_CMD_COPS and
25 AT_CMD_NRG, passing the error code as parameter to function 25 AT_CMD_NRG, passing the error code as parameter to function
26 nm_error_cops() 26 nm_error_cops()
27 27
28 June 05, 2007 DR:OMAPS00133241 x0061560(sateeshg) 28 June 05, 2007 DR:OMAPS00133241 x0061560(sateeshg)
29 Description:ASTEC29607,SIM:The sim card should not return 9240 still. 29 Description:ASTEC29607,SIM:The sim card should not return 9240 still.
30 Solution :Error indication from Aci E_PHB_ERROR sent to mmi. 30 Solution :Error indication from Aci E_PHB_ERROR sent to mmi.
31 31
32 32
33 May 10 2007 DR:OMAPS00127983 x066814 33 May 10 2007 DR:OMAPS00127983 x066814
34 Description: PSTN caller name not displayed on MS 34 Description: PSTN caller name not displayed on MS
35 Solution: Added the following functions: 35 Solution: Added the following functions:
36 1. set_cnap_name() 36 1. set_cnap_name()
37 2. get_cnap_name() 37 2. get_cnap_name()
38 3. send_cnap_name_information_mmi() 38 3. send_cnap_name_information_mmi()
39 Using these functions, added the code for rAT_PercentCNAP. 39 Using these functions, added the code for rAT_PercentCNAP.
40 40
41 Oct 05, 2006 ER: OMAPS00094496 x0061088(Prachi) 41 Oct 05, 2006 ER: OMAPS00094496 x0061088(Prachi)
42 Description:Enhance RSSI to 3 parameters: Strength, quality, min-access-level 42 Description:Enhance RSSI to 3 parameters: Strength, quality, min-access-level
43 Solution:To solve the ER OMAPS0094496, rAT_PercentCSQ() is now receving four 43 Solution:To solve the ER OMAPS0094496, rAT_PercentCSQ() is now receving four
44 parameters i.e. RSSI,Bit Error rate, Actual level, Minimum access level and also 44 parameters i.e. RSSI,Bit Error rate, Actual level, Minimum access level and also
45 rAT_PercentCSQ() is checking if actual level is less than minimum level and then 45 rAT_PercentCSQ() is checking if actual level is less than minimum level and then
46 calls globalSignalUpdate() to show the signal strength. 46 calls globalSignalUpdate() to show the signal strength.
47 47
48 48
49 Aug 01, 2006 DR: OMAPS00082374 x0pleela 49 Aug 01, 2006 DR: OMAPS00082374 x0pleela
50 Description: EONS Failures - unexpected output from the MMI: 2 carriers; on the top always T-Mobile 50 Description: EONS Failures - unexpected output from the MMI: 2 carriers; on the top always T-Mobile
51 Solution: a) Added the functionality which was removed before for rat_%CSTAT 51 Solution: a) Added the functionality which was removed before for rat_%CSTAT
52 52
53 Jun 23, 2006 DR: OMAPS00082374 x0pleela 53 Jun 23, 2006 DR: OMAPS00082374 x0pleela
54 Description: EONS Failures - unexpected output from the MMI: 2 carriers; on the top always T-Mobile 54 Description: EONS Failures - unexpected output from the MMI: 2 carriers; on the top always T-Mobile
55 Solution: a) Removed the usage of global variable gEons_alloc_active 55 Solution: a) Removed the usage of global variable gEons_alloc_active
56 b) Removed the call to function set_opn_sel_done(TRUE); in func rat_%CNIV 56 b) Removed the call to function set_opn_sel_done(TRUE); in func rat_%CNIV
57 c) Removed the functionality added before for rat_%CSTAT 57 c) Removed the functionality added before for rat_%CSTAT
58 58
59 July 17, 2006 DR: OMAPS00082792 x0039928 59 July 17, 2006 DR: OMAPS00082792 x0039928
60 Description:Changes to be done in MMI for Move all entries from SIM to FFS (Defect 76492) 60 Description:Changes to be done in MMI for Move all entries from SIM to FFS (Defect 76492)
61 Solution: Ready signal is sent to MMI when rAT_Ok is called by ACI for CPBW command 61 Solution: Ready signal is sent to MMI when rAT_Ok is called by ACI for CPBW command
62 62
63 June 02, 2006 DR: OMAPS00078005 x0021334 63 June 02, 2006 DR: OMAPS00078005 x0021334
64 Descripton: Test for NITZ (Network Identity and Timezone) support - No New time was displayed 64 Descripton: Test for NITZ (Network Identity and Timezone) support - No New time was displayed
65 Solution: New Time/Date received from network is sent to MFW by lower layer by invoking 'rAT_PercentCTZV' 65 Solution: New Time/Date received from network is sent to MFW by lower layer by invoking 'rAT_PercentCTZV'
66 function. This function has now been implemented to pass on the received values to MMI 66 function. This function has now been implemented to pass on the received values to MMI
67 for user confirmation and RTC updation. 67 for user confirmation and RTC updation.
68 68
69 May 18, 2006 DR: OMAPS00070657 x0pleela 69 May 18, 2006 DR: OMAPS00070657 x0pleela
70 Description: CPHS feature on Locosto-Lite 70 Description: CPHS feature on Locosto-Lite
71 Solution: Function "sendCPWIEvt" is called in rAT_PercentCPVWI to handle voice mail indication 71 Solution: Function "sendCPWIEvt" is called in rAT_PercentCPVWI to handle voice mail indication
72 72
73 xrashmic 1 Jul, 2006 OMAPS00075784 73 xrashmic 1 Jul, 2006 OMAPS00075784
74 Changed U8 to T_ACI_CME_ERR in rAT_PlusCME 74 Changed U8 to T_ACI_CME_ERR in rAT_PlusCME
75 75
76 June 15, 2006 OMAPS00079492 x0043642 76 June 15, 2006 OMAPS00079492 x0043642
77 Description : FT TMO (wk20/06) TC 9.1, 9.2 Multi Party, MS fails to return to idle mode 77 Description : FT TMO (wk20/06) TC 9.1, 9.2 Multi Party, MS fails to return to idle mode
78 Solution : call set_cmdHold() to assign MFW_CM_DISCONNECT_ALL to variable cmd_hold 78 Solution : call set_cmdHold() to assign MFW_CM_DISCONNECT_ALL to variable cmd_hold
79 when ATH command is entered. 79 when ATH command is entered.
80 80
81 May 15, 2006 DVT: OMAPS00077751 x0043642 81 May 15, 2006 DVT: OMAPS00077751 x0043642
82 Description: MFW needs to implement rAT_PercentSATT needed for SAT class E 82 Description: MFW needs to implement rAT_PercentSATT needed for SAT class E
83 Solution: Define a function rAT_PercentSATT() 83 Solution: Define a function rAT_PercentSATT()
84 May 15, 2006 DR: OMAPS00067919 x0pleela 84 May 15, 2006 DR: OMAPS00067919 x0pleela
85 Description: SIMP:On repeat Depersonalisation with invalid password MEPD unblock key should 85 Description: SIMP:On repeat Depersonalisation with invalid password MEPD unblock key should
86 be asked not Puk1. 86 be asked not Puk1.
87 Solution:Made the following changes 87 Solution:Made the following changes
88 1. Added functionality for rAT_PlusCPIN 88 1. Added functionality for rAT_PlusCPIN
89 2. Made code changss in rat_plusCME for SIMP 89 2. Made code changss in rat_plusCME for SIMP
90 90
91 May 10, 2006 REF: DRT OMAPS00075829 xdeepadh 91 May 10, 2006 REF: DRT OMAPS00075829 xdeepadh
92 Description: Submission of ACI and SAP changes for Imaging ERs 92 Description: Submission of ACI and SAP changes for Imaging ERs
93 Solution: Using the mechanism where MFW can receive primitives without 93 Solution: Using the mechanism where MFW can receive primitives without
94 ACI to know about it. 94 ACI to know about it.
95 95
96 96
97 Apr 24, 2006 ERT: OMAPS00067603 x0043642 97 Apr 24, 2006 ERT: OMAPS00067603 x0043642
98 Description: Engineering mode 98 Description: Engineering mode
99 Solution: Handle the response from ACI (through rAT_percentEINFO). 99 Solution: Handle the response from ACI (through rAT_percentEINFO).
100 100
101 101
102 Mar 15, 2006 ER: OMAPS00067709 x0pleela 102 Mar 15, 2006 ER: OMAPS00067709 x0pleela
103 Description: Voice Buffering implementation on C+ for PTT via PCM API 103 Description: Voice Buffering implementation on C+ for PTT via PCM API
104 Solution: Functions rAT_NO_CARRIER, rAT_NO_ANSWER 104 Solution: Functions rAT_NO_CARRIER, rAT_NO_ANSWER
105 Changes: update the reason for calling record_stop 105 Changes: update the reason for calling record_stop
106 106
107 * Mar 23, 2006 REF:DR OMAPS00069173 a0393213 107 * Mar 23, 2006 REF:DR OMAPS00069173 a0393213
108 * Description: GSM - MOC - AT USB - Live Network . Display problem when a MO call is made through AT interface 108 * Description: GSM - MOC - AT USB - Live Network . Display problem when a MO call is made through AT interface
109 * Solution: misplaced break statement corrected 109 * Solution: misplaced break statement corrected
110 110
111 111
112 Feb 15, 2006 ER: OMAPS00065203 x0pleela 112 Feb 15, 2006 ER: OMAPS00065203 x0pleela
113 Description: Cingular Operator Name Prioritization implementation required 113 Description: Cingular Operator Name Prioritization implementation required
114 Solution: Incorporated review comments 114 Solution: Incorporated review comments
115 - Removed global variable gOper_sel_done added earlier 115 - Removed global variable gOper_sel_done added earlier
116 116
117 Feb 09, 2006 ER: OMAPS00065203 x0pleela 117 Feb 09, 2006 ER: OMAPS00065203 x0pleela
118 Description: Cingular Operator Name Prioritization implementation required 118 Description: Cingular Operator Name Prioritization implementation required
119 Solution: Implemented functionality for rAT_PercentCNIV 119 Solution: Implemented functionality for rAT_PercentCNIV
120 Implemented functionality for rAT_PercentCSTAT 120 Implemented functionality for rAT_PercentCSTAT
121 121
122 122
123 * 123 *
124 * Nov 02, 2005 DR OMAPS00052132 xdeepadh 124 * Nov 02, 2005 DR OMAPS00052132 xdeepadh
125 * Bug:Not able to access the SMS inbox and also not able to send SMS in Locosto Lite build 125 * Bug:Not able to access the SMS inbox and also not able to send SMS in Locosto Lite build
126 * Fix: The ATI Enums usage has been put under the FF_ATI flag 126 * Fix: The ATI Enums usage has been put under the FF_ATI flag
127 127
128 Nov 03, 2005 DR: OMAPS00052032 - xpradipg 128 Nov 03, 2005 DR: OMAPS00052032 - xpradipg
129 Description : Locosto: SIMP - integration of issues submitted by solDel on 129 Description : Locosto: SIMP - integration of issues submitted by solDel on
130 ME Personalization - changes as per the new interfaces 130 ME Personalization - changes as per the new interfaces
131 Solution : The return value of sAT_PlusCLCK of AT_EXCT is handled and 131 Solution : The return value of sAT_PlusCLCK of AT_EXCT is handled and
132 a please wait screen is displayed until the response is recieved 132 a please wait screen is displayed until the response is recieved
133 133
134 * 134 *
135 * June 01, 2005 REF: CRR 31559 x0021334 135 * June 01, 2005 REF: CRR 31559 x0021334
136 * Description: TCS2.1.1 SW not buildable without engineering mode 136 * Description: TCS2.1.1 SW not buildable without engineering mode
137 * Solution: Engineering Mode specific functions are guarded by 'FF_EM_MODE' flag 137 * Solution: Engineering Mode specific functions are guarded by 'FF_EM_MODE' flag
138 * 138 *
139 * x0018858 24 Mar, 2005 MMI-FIX-11321 139 * x0018858 24 Mar, 2005 MMI-FIX-11321
140 * Issue Description :- If the inbox is full and a new message is receivd, no indication is received. 140 * Issue Description :- If the inbox is full and a new message is receivd, no indication is received.
141 * Fix: Added support for handling indication when message box is full and 141 * Fix: Added support for handling indication when message box is full and
142 * there is a pending message. 142 * there is a pending message.
143 143
144 * x0047685, May 22 2006 144 * x0047685, May 22 2006
145 * Added R99 CC Interface changes. 145 * Added R99 CC Interface changes.
146 * rAT_PercentCMGRS moved under REL99 flag. 146 * rAT_PercentCMGRS moved under REL99 flag.
147 * 147 *
461 //May 10, 2006 REF: DRT OMAPS00075829 xdeepadh 461 //May 10, 2006 REF: DRT OMAPS00075829 xdeepadh
462 #include "mfw_cb.h" 462 #include "mfw_cb.h"
463 463
464 464
465 LOCAL void mfw_format_plmn_name(UBYTE dcs,UBYTE *in, UBYTE in_length, 465 LOCAL void mfw_format_plmn_name(UBYTE dcs,UBYTE *in, UBYTE in_length,
466 UBYTE *out, UBYTE max_out_length); 466 UBYTE *out, UBYTE max_out_length);
467 467
468 468
469 /*May 10,2007 DR:OMAP00127983 x0066814(Geetha)-begin*/ 469 /*May 10,2007 DR:OMAP00127983 x0066814(Geetha)-begin*/
470 /*size of the name when converted from 7bit to 8bit alphabet*/ 470 /*size of the name when converted from 7bit to 8bit alphabet*/
471 #define CNAP_EXPANDED_SIZE (((sizeof(BUF_nameString)+1)*8)/7) 471 #define CNAP_EXPANDED_SIZE (((sizeof(BUF_nameString)+1)*8)/7)
472 //function to get the name from rAT_PercentCNAP 472 //function to get the name from rAT_PercentCNAP
473 void set_cnap_name(T_namePresentationAllowed *cnap_name_info ); 473 void set_cnap_name(T_namePresentationAllowed *cnap_name_info );
474 //function to give the name from set_cnap_name to MMI 474 //function to give the name from set_cnap_name to MMI
475 GLOBAL T_MFW_PHB_TEXT *get_cnap_name(); 475 GLOBAL T_MFW_PHB_TEXT *get_cnap_name();
476 GLOBAL T_MFW_PHB_TEXT cnap_name; 476 GLOBAL T_MFW_PHB_TEXT cnap_name;
477 477
495 T_ACI_CSMS_SUPP mo, 495 T_ACI_CSMS_SUPP mo,
496 T_ACI_CSMS_SUPP bm) {} 496 T_ACI_CSMS_SUPP bm) {}
497 497
498 //x0pleela 21 Apr, 2006 DR: OMAPS00067919 498 //x0pleela 21 Apr, 2006 DR: OMAPS00067919
499 //Requesting for any of the SIMP category pin if enabled based on the "code" 499 //Requesting for any of the SIMP category pin if enabled based on the "code"
500 GLOBAL void rAT_PlusCPIN (T_ACI_CPIN_RSLT code) 500 GLOBAL void rAT_PlusCPIN (T_ACI_CPIN_RSLT code)
501 { 501 {
502 #ifdef SIM_PERS 502 #ifdef SIM_PERS
503 TRACE_FUNCTION("rAT_PlusCPIN()"); 503 TRACE_FUNCTION("rAT_PlusCPIN()");
504 sim_simlock_cpin_code(code ); 504 sim_simlock_cpin_code(code );
505 #endif 505 #endif
506 } 506 }
507 507
508 GLOBAL void rAT_PlusCLCK ( T_ACI_CLSSTAT * clsStaLst) {} 508 GLOBAL void rAT_PlusCLCK ( T_ACI_CLSSTAT * clsStaLst) {}
509 GLOBAL void rAT_PlusCIMI (CHAR *imsi) {} 509 GLOBAL void rAT_PlusCIMI (CHAR *imsi) {}
515 SHORT rspLen, 515 SHORT rspLen,
516 UBYTE *rsp ) {} 516 UBYTE *rsp ) {}
517 GLOBAL void rAT_PlusCSIM ( SHORT rspLen, 517 GLOBAL void rAT_PlusCSIM ( SHORT rspLen,
518 UBYTE *rsp ) {} 518 UBYTE *rsp ) {}
519 519
520 GLOBAL void rAT_PlusCNUM (T_ACI_CNUM_MSISDN *msisdn, UBYTE num) 520 GLOBAL void rAT_PlusCNUM (T_ACI_CNUM_MSISDN *msisdn, UBYTE num)
521 { 521 {
522 #ifdef FF_CPHS_REL4 522 #ifdef FF_CPHS_REL4
523 static UBYTE count = 0; 523 static UBYTE count = 0;
524 UBYTE i; 524 UBYTE i;
525 525
557 /******************************************************************************* 557 /*******************************************************************************
558 558
559 $Function: rAT_PercentSATT 559 $Function: rAT_PercentSATT
560 560
561 $Description:CallBack function, needed for target builds with SAT class E enabled 561 $Description:CallBack function, needed for target builds with SAT class E enabled
562 562
563 $Returns: void 563 $Returns: void
564 564
565 $Arguments: T_ACI_CMD_SRC srcId 565 $Arguments: T_ACI_CMD_SRC srcId
566 T_ACI_SATT_CS cause 566 T_ACI_SATT_CS cause
567 567
568 *******************************************************************************/ 568 *******************************************************************************/
569 569
570 GLOBAL void rAT_PercentSATT( T_ACI_CMD_SRC srcId, T_ACI_SATT_CS cause ) 570 GLOBAL void rAT_PercentSATT( T_ACI_CMD_SRC srcId, T_ACI_SATT_CS cause )
571 { 571 {
572 TRACE_FUNCTION("rAT_PercentSATT"); 572 TRACE_FUNCTION("rAT_PercentSATT");
573 } 573 }
574 #endif 574 #endif
575 575
644 case AT_CMD_CFUN: 644 case AT_CMD_CFUN:
645 sim_ok_cfun (); 645 sim_ok_cfun ();
646 break; 646 break;
647 647
648 case AT_CMD_CPBW: 648 case AT_CMD_CPBW:
649 // July 17, 2006 DR: OMAPS00082792 x0039928 649 // July 17, 2006 DR: OMAPS00082792 x0039928
650 phb_signal(E_PHB_READY, 0); 650 phb_signal(E_PHB_READY, 0);
651 break; 651 break;
652 652
653 case AT_CMD_COPS: 653 case AT_CMD_COPS:
654 nm_ok_cops (); 654 nm_ok_cops ();
655 break; 655 break;
656 656
657 case AT_CMD_NRG: 657 case AT_CMD_NRG:
704 case AT_CMD_CHLD: 704 case AT_CMD_CHLD:
705 cm_result_cmd(CMD_SRC_LCL, Present); 705 cm_result_cmd(CMD_SRC_LCL, Present);
706 break; 706 break;
707 707
708 case AT_CMD_CLCK: 708 case AT_CMD_CLCK:
709 #ifdef SIM_PERS 709 #ifdef SIM_PERS
710 // Nov 03, 2005 DR: OMAPS00052032 - xpradipg 710 // Nov 03, 2005 DR: OMAPS00052032 - xpradipg
711 // if the flag is set then SIM Personalization has triggered the CLCK 711 // if the flag is set then SIM Personalization has triggered the CLCK
712 if( (sim_unlock_in_prog EQ SIMP_BOOTUP) OR 712 if( (sim_unlock_in_prog EQ SIMP_BOOTUP) OR
713 (sim_unlock_in_prog EQ SIMP_MENU ) ) 713 (sim_unlock_in_prog EQ SIMP_MENU ) )
714 { 714 {
715 mfw_simlock_continue(TRUE); 715 mfw_simlock_continue(TRUE);
716 sim_unlock_in_prog = SIMP_NONE; 716 sim_unlock_in_prog = SIMP_NONE;
717 } 717 }
718 else 718 else
719 #endif 719 #endif
720 ss_ok_clck(); 720 ss_ok_clck();
721 break; 721 break;
722 722
723 case AT_CMD_CCFC: 723 case AT_CMD_CCFC:
724 break; 724 break;
827 { 827 {
828 TRACE_EVENT_P2("rAT_PlusCME(cmdId %d, err %d)",cmdId, err); 828 TRACE_EVENT_P2("rAT_PlusCME(cmdId %d, err %d)",cmdId, err);
829 829
830 switch ((int)cmdId) /*a0393213 lint warnings removal - typecasting done*/ 830 switch ((int)cmdId) /*a0393213 lint warnings removal - typecasting done*/
831 { 831 {
832 //x0061560 Date May16,07 (sateeshg) OMAPS00133241 832 //x0061560 Date May16,07 (sateeshg) OMAPS00133241
833 case AT_CMD_CPBW: 833 case AT_CMD_CPBW:
834 phb_signal(E_PHB_ERROR, 0); 834 phb_signal(E_PHB_ERROR, 0);
835 break; 835 break;
836 case AT_CMD_COPS: 836 case AT_CMD_COPS:
837 //x0pleela 30 May, 2007 DR: OMAPS00133201 837 //x0pleela 30 May, 2007 DR: OMAPS00133201
838 //Passing the error code 838 //Passing the error code
839 nm_error_cops ((T_ACI_CME_ERR)err); 839 nm_error_cops ((T_ACI_CME_ERR)err);
840 break; 840 break;
854 nm_error_cops ((T_ACI_CME_ERR)err); 854 nm_error_cops ((T_ACI_CME_ERR)err);
855 } 855 }
856 break; 856 break;
857 case AT_CMD_CFUN: 857 case AT_CMD_CFUN:
858 /* OMAPS00075177 - 17,Apr-2006 */ 858 /* OMAPS00075177 - 17,Apr-2006 */
859 /* Signature of the function has been changed from U8 to T_ACI_CME_ERR. 859 /* Signature of the function has been changed from U8 to T_ACI_CME_ERR.
860 because, when calling this function, it is converting from T_ACI_CME_ERR to U8. 860 because, when calling this function, it is converting from T_ACI_CME_ERR to U8.
861 It is loosing the negative values( the enum T_ACI_CME_ERR has negative values ) 861 It is loosing the negative values( the enum T_ACI_CME_ERR has negative values )
862 */ 862 */
863 sim_error_cfun ((T_ACI_CME_ERR)err); 863 sim_error_cfun ((T_ACI_CME_ERR)err);
864 break; 864 break;
865 865
874 case AT_CMD_CHLD: 874 case AT_CMD_CHLD:
875 cm_result_cmd(CMD_SRC_LCL, NotPresent); 875 cm_result_cmd(CMD_SRC_LCL, NotPresent);
876 break; 876 break;
877 877
878 case AT_CMD_CLCK: 878 case AT_CMD_CLCK:
879 #ifdef SIM_PERS 879 #ifdef SIM_PERS
880 //x0pleela 27 Apr, 2006 DR: OMAPS00067919 880 //x0pleela 27 Apr, 2006 DR: OMAPS00067919
881 if(sim_unlock_in_prog EQ SIMP_BOOTUP) 881 if(sim_unlock_in_prog EQ SIMP_BOOTUP)
882 { 882 {
883 //xrashmic 1 Jul, 2006 OMAPS00075784 883 //xrashmic 1 Jul, 2006 OMAPS00075784
884 //Changed U8 to T_ACI_CME_ERR 884 //Changed U8 to T_ACI_CME_ERR
885 sim_error_cfun ((T_ACI_CME_ERR)err); 885 sim_error_cfun ((T_ACI_CME_ERR)err);
886 } 886 }
887 887
888 // Nov 03, 2005 DR: OMAPS00052032 - xpradipg 888 // Nov 03, 2005 DR: OMAPS00052032 - xpradipg
889 // if the flag is set then SIM Personalization has triggered the CLCK 889 // if the flag is set then SIM Personalization has triggered the CLCK
890 else if(sim_unlock_in_prog EQ SIMP_MENU) 890 else if(sim_unlock_in_prog EQ SIMP_MENU)
891 { 891 {
892 sim_unlock_in_prog = SIMP_NONE; /*a0393213 compiler warnings removal - FALSE changed to SIMP_NONE*/ 892 sim_unlock_in_prog = SIMP_NONE; /*a0393213 compiler warnings removal - FALSE changed to SIMP_NONE*/
893 mfw_simlock_continue(SIMP_NONE); 893 mfw_simlock_continue(SIMP_NONE);
894 } 894 }
895 else 895 else
896 #endif 896 #endif
897 ss_error_clck(); 897 ss_error_clck();
898 break; 898 break;
899 899
900 case AT_CMD_CPWD: 900 case AT_CMD_CPWD:
901 sim_error_cpinc(); 901 sim_error_cpinc();
1208 cm_rmt_ok_connect(); 1208 cm_rmt_ok_connect();
1209 if (rslt->rsltPrm.rOK.cmdId EQ AT_CMD_H 1209 if (rslt->rsltPrm.rOK.cmdId EQ AT_CMD_H
1210 OR rslt->rsltPrm.rOK.cmdId EQ AT_CMD_CHUP) 1210 OR rslt->rsltPrm.rOK.cmdId EQ AT_CMD_CHUP)
1211 { 1211 {
1212 //NM Berlin / UK integration 21.09.01 1212 //NM Berlin / UK integration 21.09.01
1213 //Nov 02, 2005 DR OMAPS00052132 xdeepadh 1213 //Nov 02, 2005 DR OMAPS00052132 xdeepadh
1214 //The usage of ATI enum is put under the flag FF_ATI 1214 //The usage of ATI enum is put under the flag FF_ATI
1215 #if defined (FF_ATI) || defined (NEPTUNE_BOARD) 1215 #if defined (FF_ATI) || defined (NEPTUNE_BOARD)
1216 /*June 15, 2006 DR:OMAPS00079492 x0043642 */ 1216 /*June 15, 2006 DR:OMAPS00079492 x0043642 */
1217 /* Set cmd_hold variable to MFW_CM_DISCONNECT_ALL to end all calls*/ 1217 /* Set cmd_hold variable to MFW_CM_DISCONNECT_ALL to end all calls*/
1218 set_cmdHold(MFW_CM_DISCONNECT_ALL); 1218 set_cmdHold(MFW_CM_DISCONNECT_ALL);
1226 if (stat == CALL_DEACTIVE) 1226 if (stat == CALL_DEACTIVE)
1227 { 1227 {
1228 //NM Berlin / UK integration 21.09.01 1228 //NM Berlin / UK integration 21.09.01
1229 //Nov 02, 2005 DR OMAPS00052132 xdeepadh 1229 //Nov 02, 2005 DR OMAPS00052132 xdeepadh
1230 //The usage of ATI enum is put under the flag FF_ATI 1230 //The usage of ATI enum is put under the flag FF_ATI
1231 #ifdef FF_ATI 1231 #ifdef FF_ATI
1232 cm_ok_disconnect(CMD_SRC_ATI_1, rslt->rsltPrm.rOK.cId); 1232 cm_ok_disconnect(CMD_SRC_ATI_1, rslt->rsltPrm.rOK.cId);
1233 #endif //FF_ATI 1233 #endif //FF_ATI
1234 } 1234 }
1235 } 1235 }
1236 } 1236 }
1237 if (rslt->rsltPrm.rOK.cmdId EQ AT_CMD_CHLD) 1237 if (rslt->rsltPrm.rOK.cmdId EQ AT_CMD_CHLD)
1238 { 1238 {
1239 //NM Berlin / UK integration 21.09.01 1239 //NM Berlin / UK integration 21.09.01
1240 //Nov 02, 2005 DR OMAPS00052132 xdeepadh 1240 //Nov 02, 2005 DR OMAPS00052132 xdeepadh
1241 //The usage of ATI enum is put under the flag FF_ATI 1241 //The usage of ATI enum is put under the flag FF_ATI
1242 #ifdef FF_ATI 1242 #ifdef FF_ATI
1243 cm_result_cmd(CMD_SRC_ATI_1, Present); 1243 cm_result_cmd(CMD_SRC_ATI_1, Present);
1244 #endif //FF_ATI 1244 #endif //FF_ATI
1245 } 1245 }
1246 1246
1247 #ifdef GPRS /* JVJ 10-10-02 */ 1247 #ifdef GPRS /* JVJ 10-10-02 */
1248 /* SH - GPRS*/ 1248 /* SH - GPRS*/
1249 switch(rslt->rsltPrm.rOK.cmdId) 1249 switch(rslt->rsltPrm.rOK.cmdId)
1460 | PROJECT: GSM-MFW (8417) MODULE: MFW_CB | 1460 | PROJECT: GSM-MFW (8417) MODULE: MFW_CB |
1461 | STATE : code ROUTINE: send_cnap_name_information_mmi | 1461 | STATE : code ROUTINE: send_cnap_name_information_mmi |
1462 +--------------------------------------------------------------------+ 1462 +--------------------------------------------------------------------+
1463 1463
1464 1464
1465 PURPOSE : Function to process the data sent from rAT_PercentCNAP based on presentation mode for CNAP 1465 PURPOSE : Function to process the data sent from rAT_PercentCNAP based on presentation mode for CNAP
1466 1466
1467 */ 1467 */
1468 /*May 10,2007 DR:OMAP00127983 x0066814(Geetha)-begin*/ 1468 /*May 10,2007 DR:OMAP00127983 x0066814(Geetha)-begin*/
1469 LOCAL void send_cnap_name_information_mmi(T_ATI_CNAP_PRESENTATION pres_mode, 1469 LOCAL void send_cnap_name_information_mmi(T_ATI_CNAP_PRESENTATION pres_mode,
1470 T_callingName *NameId) 1470 T_callingName *NameId)
1471 { 1471 {
1472 T_namePresentationAllowed *cnap_name_info = NULL; 1472 T_namePresentationAllowed *cnap_name_info = NULL;
1473 1473
1474 TRACE_FUNCTION("send_cnap_name_information()"); 1474 TRACE_FUNCTION("send_cnap_name_information()");
1475 1475
1476 switch(pres_mode) 1476 switch(pres_mode)
1477 { 1477 {
1478 case(CNAP_PRES_ALLOWED): 1478 case(CNAP_PRES_ALLOWED):
1521 UBYTE *cnap_name_expanded = NULL; 1521 UBYTE *cnap_name_expanded = NULL;
1522 UBYTE dcs; 1522 UBYTE dcs;
1523 TRACE_FUNCTION("All values present"); 1523 TRACE_FUNCTION("All values present");
1524 cnap_name_expanded=mfwAlloc(CNAP_EXPANDED_SIZE+1); 1524 cnap_name_expanded=mfwAlloc(CNAP_EXPANDED_SIZE+1);
1525 dcs =(UBYTE)cnap_name_info->dataCodingScheme; 1525 dcs =(UBYTE)cnap_name_info->dataCodingScheme;
1526 1526
1527 if( cmh_getAlphabetCb( (UBYTE)dcs ) EQ 0 ) /* 7bit alphabet */ 1527 if( cmh_getAlphabetCb( (UBYTE)dcs ) EQ 0 ) /* 7bit alphabet */
1528 { 1528 {
1529 TRACE_FUNCTION("/* 7bit alphabet */"); 1529 TRACE_FUNCTION("/* 7bit alphabet */");
1530 expanded_len = 1530 expanded_len =
1531 utl_cvt7To8((UBYTE *)cnap_name_info->nameString.b_nameString, 1531 utl_cvt7To8((UBYTE *)cnap_name_info->nameString.b_nameString,
1532 (UBYTE)cnap_name_info->lengthInCharacters, 1532 (UBYTE)cnap_name_info->lengthInCharacters,
1533 cnap_name_expanded, 1533 cnap_name_expanded,
1534 0 ); 1534 0 );
1535 } 1535 }
1536 else 1536 else
1537 { 1537 {
1538 TRACE_FUNCTION("/* 8bit alphabet */"); 1538 TRACE_FUNCTION("/* 8bit alphabet */");
1539 memcpy( cnap_name_expanded, 1539 memcpy( cnap_name_expanded,
1540 (UBYTE *)cnap_name_info->nameString.b_nameString, 1540 (UBYTE *)cnap_name_info->nameString.b_nameString,
1541 (UBYTE)cnap_name_info->lengthInCharacters ); 1541 (UBYTE)cnap_name_info->lengthInCharacters );
1542 expanded_len = (UBYTE)cnap_name_info->lengthInCharacters; 1542 expanded_len = (UBYTE)cnap_name_info->lengthInCharacters;
1543 } 1543 }
1544 cnap_name.len= (UBYTE)expanded_len; 1544 cnap_name.len= (UBYTE)expanded_len;
1545 #ifdef NO_ASCIIZ 1545 #ifdef NO_ASCIIZ
1546 memcpy(cnap_name.data,cnap_name_expanded,sizeof(cnap_name.data)); 1546 memcpy(cnap_name.data,cnap_name_expanded,sizeof(cnap_name.data));
1547 #else 1547 #else
1548 strcpy(cnap_name.data,cnap_name_expanded); 1548 strcpy(cnap_name.data,cnap_name_expanded);
1549 #endif 1549 #endif
1550 TRACE_EVENT_P1("cnap_name.data: %s",cnap_name.data); 1550 TRACE_EVENT_P1("cnap_name.data: %s",cnap_name.data);
1558 | PROJECT: GSM-MFW (8417) MODULE: MFW_CB | 1558 | PROJECT: GSM-MFW (8417) MODULE: MFW_CB |
1559 | STATE : code ROUTINE: get_cnap_name | 1559 | STATE : code ROUTINE: get_cnap_name |
1560 +--------------------------------------------------------------------+ 1560 +--------------------------------------------------------------------+
1561 1561
1562 1562
1563 PURPOSE : function to give the name from set_cnap_name to MMI 1563 PURPOSE : function to give the name from set_cnap_name to MMI
1564 1564
1565 */ 1565 */
1566 GLOBAL T_MFW_PHB_TEXT * get_cnap_name() 1566 GLOBAL T_MFW_PHB_TEXT * get_cnap_name()
1567 { 1567 {
1568 TRACE_FUNCTION("get_cnap_name"); 1568 TRACE_FUNCTION("get_cnap_name");
1680 if((min_access_level NEQ MMI_MIN_RXLEV_FAULT) AND (rssi < min_access_level )) 1680 if((min_access_level NEQ MMI_MIN_RXLEV_FAULT) AND (rssi < min_access_level ))
1681 { 1681 {
1682 globalSignalUpdate(0); 1682 globalSignalUpdate(0);
1683 prelevel = 0; 1683 prelevel = 0;
1684 } 1684 }
1685 else 1685 else
1686 #endif 1686 #endif
1687 if( prelevel != actlevel ) 1687 if( prelevel != actlevel )
1688 { 1688 {
1689 globalSignalUpdate(actlevel); 1689 globalSignalUpdate(actlevel);
1690 prelevel = actlevel; 1690 prelevel = actlevel;
1691 } 1691 }
1705 1705
1706 */ 1706 */
1707 1707
1708 GLOBAL void rAT_PercentCPVWI ( UBYTE flag_set, 1708 GLOBAL void rAT_PercentCPVWI ( UBYTE flag_set,
1709 USHORT line) 1709 USHORT line)
1710 { 1710 {
1711 TRACE_FUNCTION("rAT_PercentCPVWI()"); 1711 TRACE_FUNCTION("rAT_PercentCPVWI()");
1712 //18 May, 2006 DR: OMAPS00070657 x0pleela 1712 //18 May, 2006 DR: OMAPS00070657 x0pleela
1713 //Send this event when there is any voice mail 1713 //Send this event when there is any voice mail
1714 sendCPWIEvt(flag_set, line); 1714 sendCPWIEvt(flag_set, line);
1715 } 1715 }
1716 1716
1717 /* 1717 /*
1718 +--------------------------------------------------------------------+ 1718 +--------------------------------------------------------------------+
1719 | PROJECT : MODULE : MFW_ACI_DUMMY | 1719 | PROJECT : MODULE : MFW_ACI_DUMMY |
1795 case CIND_SMSFULL_INDICATOR_MEMFULL: 1795 case CIND_SMSFULL_INDICATOR_MEMFULL:
1796 TRACE_FUNCTION("CIND_SMSFULL_INDICATOR_MEMFULL"); 1796 TRACE_FUNCTION("CIND_SMSFULL_INDICATOR_MEMFULL");
1797 isMessageWaiting = TRUE; 1797 isMessageWaiting = TRUE;
1798 break; 1798 break;
1799 case CIND_SMSFULL_INDICATOR_MEMAVAIL: 1799 case CIND_SMSFULL_INDICATOR_MEMAVAIL:
1800 TRACE_FUNCTION("CIND_SMSFULL_INDICATOR_MEMAVAIL"); 1800 TRACE_FUNCTION("CIND_SMSFULL_INDICATOR_MEMAVAIL");
1801 isMessageWaiting = FALSE; 1801 isMessageWaiting = FALSE;
1802 break; 1802 break;
1803 case CIND_SMSFULL_INDICATOR_MAX: 1803 case CIND_SMSFULL_INDICATOR_MAX:
1804 default: 1804 default:
1805 break; 1805 break;
1818 +--------------------------------------------------------------------+ 1818 +--------------------------------------------------------------------+
1819 | PROJECT : GSM-F&D (8411) MODULE : MFW_CB | 1819 | PROJECT : GSM-F&D (8411) MODULE : MFW_CB |
1820 | STATE : code ROUTINE : mfw_format_plmn_name | 1820 | STATE : code ROUTINE : mfw_format_plmn_name |
1821 +--------------------------------------------------------------------+ 1821 +--------------------------------------------------------------------+
1822 1822
1823 PURPOSE : Decodes PLMN name to remote source format 1823 PURPOSE : Decodes PLMN name to remote source format
1824 1824
1825 */ 1825 */
1826 1826
1827 void mfw_format_plmn_name(UBYTE dcs,UBYTE *in, UBYTE in_length, UBYTE *out, UBYTE max_out_length) 1827 void mfw_format_plmn_name(UBYTE dcs,UBYTE *in, UBYTE in_length, UBYTE *out, UBYTE max_out_length)
1828 { 1828 {
1829 USHORT size_of_plmn_name; 1829 USHORT size_of_plmn_name;
1830 UBYTE dest_len=0; 1830 UBYTE dest_len=0;
1831 UBYTE buf[33]; 1831 UBYTE buf[33];
1832 1832
1833 memset(buf,33,0); 1833 memset(buf,33,0);
1834 if(dcs ==0) /*GSM default */ 1834 if(dcs ==0) /*GSM default */
1835 { 1835 {
1836 dest_len = utl_cvt7To8(in,in_length,buf,0); 1836 dest_len = utl_cvt7To8(in,in_length,buf,0);
1837 utl_chsetFromGsm(buf,dest_len,out,max_out_length,&size_of_plmn_name,GSM_ALPHA_Def); 1837 utl_chsetFromGsm(buf,dest_len,out,max_out_length,&size_of_plmn_name,GSM_ALPHA_Def);
1838 memset(buf, 0, 33); 1838 memset(buf, 0, 33);
1839 } 1839 }
1840 else if(dcs ==1) /*UCS2 */ 1840 else if(dcs ==1) /*UCS2 */
1841 { 1841 {
1842 utl_hexFromGsm(in,in_length,out,max_out_length,&size_of_plmn_name,GSM_ALPHA_Def,CSCS_ALPHA_7_Bit); 1842 utl_hexFromGsm(in,in_length,out,max_out_length,&size_of_plmn_name,GSM_ALPHA_Def,CSCS_ALPHA_7_Bit);
1843 1843
1844 } 1844 }
1845 } 1845 }
1846 1846
1847 1847
1848 1848
1849 #ifndef FF_2TO1_PS/* 1849 #ifndef FF_2TO1_PS/*
1850 +--------------------------------------------------------------------+ 1850 +--------------------------------------------------------------------+
1857 */ 1857 */
1858 //x0pleela 09 Feb, 2006 ER:OMAPS00065203 1858 //x0pleela 09 Feb, 2006 ER:OMAPS00065203
1859 GLOBAL void rAT_PercentCNIV (T_MMR_INFO_IND *mmr_info_ind) 1859 GLOBAL void rAT_PercentCNIV (T_MMR_INFO_IND *mmr_info_ind)
1860 { 1860 {
1861 T_MFW_NETWORK_STRUCT plmn_netw_data; 1861 T_MFW_NETWORK_STRUCT plmn_netw_data;
1862 SHORT mcc = 0; 1862 SHORT mcc = 0;
1863 SHORT mnc = 0; 1863 SHORT mnc = 0;
1864 1864
1865 TRACE_FUNCTION("rAT_PercentCNIV()"); 1865 TRACE_FUNCTION("rAT_PercentCNIV()");
1866 1866
1867 //copy plmn info into plmn_netw_data from mmr_info_ind 1867 //copy plmn info into plmn_netw_data from mmr_info_ind
1868 memset(&plmn_netw_data, 0, sizeof(T_MFW_NETWORK_STRUCT) ); 1868 memset(&plmn_netw_data, 0, sizeof(T_MFW_NETWORK_STRUCT) );
1869 1869
1880 mcc, (mnc & 0x0FF0) >> 4); 1880 mcc, (mnc & 0x0FF0) >> 4);
1881 } 1881 }
1882 else 1882 else
1883 { 1883 {
1884 sprintf((char*)&plmn_netw_data.network_numeric, "%d%d", mcc, mnc); 1884 sprintf((char*)&plmn_netw_data.network_numeric, "%d%d", mcc, mnc);
1885 } 1885 }
1886 //Apr 13, 2007 DRT:OMAPS00122739 x0066814(Geetha) 1886 //Apr 13, 2007 DRT:OMAPS00122739 x0066814(Geetha)
1887 if (mmr_info_ind->short_name.v_name) /* short name */ 1887 if (mmr_info_ind->short_name.v_name) /* short name */
1888 { 1888 {
1889 TRACE_FUNCTION(" SHORT NAME "); 1889 TRACE_FUNCTION(" SHORT NAME ");
1890 mfw_format_plmn_name(mmr_info_ind->short_name.dcs,(UBYTE*)mmr_info_ind->short_name.text, 1890 mfw_format_plmn_name(mmr_info_ind->short_name.dcs,(UBYTE*)mmr_info_ind->short_name.text,
1891 mmr_info_ind->short_name.c_text, (UBYTE *)plmn_netw_data.network_short.data, 33); 1891 mmr_info_ind->short_name.c_text, (UBYTE *)plmn_netw_data.network_short.data, 33);
1892 } 1892 }
1893 1893
1894 if (mmr_info_ind->full_name.v_name) /* full name */ 1894 if (mmr_info_ind->full_name.v_name) /* full name */
1895 { 1895 {
1896 TRACE_FUNCTION(" Long NAME "); 1896 TRACE_FUNCTION(" Long NAME ");
1897 mfw_format_plmn_name(mmr_info_ind->full_name.dcs,(UBYTE*)mmr_info_ind->full_name.text, 1897 mfw_format_plmn_name(mmr_info_ind->full_name.dcs,(UBYTE*)mmr_info_ind->full_name.text,
1898 mmr_info_ind->full_name.c_text, (UBYTE *)plmn_netw_data.network_long.data, 33); 1898 mmr_info_ind->full_name.c_text, (UBYTE *)plmn_netw_data.network_long.data, 33);
1899 } 1899 }
1900 1900
1901 plmn_netw_data.opn_read_from = NM_NITZ; 1901 plmn_netw_data.opn_read_from = NM_NITZ;
1902 1902
1903 nm_get_network_data(&plmn_netw_data); 1903 nm_get_network_data(&plmn_netw_data);
1904 } 1904 }
1905 1905
1906 #else 1906 #else
1907 /* DMPS MMREG SAP */ 1907 /* DMPS MMREG SAP */
1908 GLOBAL void rAT_PercentCNIV (T_MMREG_INFO_IND *mmr_info_ind) 1908 GLOBAL void rAT_PercentCNIV (T_MMREG_INFO_IND *mmr_info_ind)
1909 { 1909 {
1910 T_MFW_NETWORK_STRUCT plmn_netw_data; 1910 T_MFW_NETWORK_STRUCT plmn_netw_data;
1911 SHORT mcc = 0; 1911 SHORT mcc = 0;
1912 SHORT mnc = 0; 1912 SHORT mnc = 0;
1913 1913
1914 TRACE_FUNCTION("rAT_PercentCNIV()"); 1914 TRACE_FUNCTION("rAT_PercentCNIV()");
1915 1915
1916 /* copy plmn info into plmn_netw_data from mmr_info_ind */ 1916 /* copy plmn info into plmn_netw_data from mmr_info_ind */
1917 memset(&plmn_netw_data, 0, sizeof(T_MFW_NETWORK_STRUCT)); 1917 memset(&plmn_netw_data, 0, sizeof(T_MFW_NETWORK_STRUCT));
1918 1918
1923 /* build numeric plmn representation */ 1923 /* build numeric plmn representation */
1924 if ((mnc & 0x000F) EQ 0x000F) 1924 if ((mnc & 0x000F) EQ 0x000F)
1925 { 1925 {
1926 sprintf((char*)&plmn_netw_data.network_numeric, "%d%d", 1926 sprintf((char*)&plmn_netw_data.network_numeric, "%d%d",
1927 mcc, (mnc & 0x0FF0) >> 4); 1927 mcc, (mnc & 0x0FF0) >> 4);
1928 1928
1929 } 1929 }
1930 else 1930 else
1931 { 1931 {
1932 sprintf((char*)&plmn_netw_data.network_numeric, "%d%d", mcc, mnc); 1932 sprintf((char*)&plmn_netw_data.network_numeric, "%d%d", mcc, mnc);
1933 1933
1934 } 1934 }
1935 1935
1936 if (mmr_info_ind->v_short_net_name AND /* short name only */ 1936 if (mmr_info_ind->v_short_net_name AND /* short name only */
1937 !mmr_info_ind->v_full_net_name) 1937 !mmr_info_ind->v_full_net_name)
1938 { 1938 {
1939 TRACE_FUNCTION(" SHORT NAME "); 1939 TRACE_FUNCTION(" SHORT NAME ");
1940 #ifdef NO_ASCIIZ 1940 #ifdef NO_ASCIIZ
1941 memcpy(plmn_netw_data.network_short.data, 1941 memcpy(plmn_netw_data.network_short.data,
1942 mmr_info_ind->short_net_name.text, 1942 mmr_info_ind->short_net_name.text,
1943 mmr_info_ind->short_net_name.c_text); 1943 mmr_info_ind->short_net_name.c_text);
1944 #else 1944 #else
1945 strcpy(plmn_netw_data.network_short, (char*)mmr_info_ind->short_net_name.text); 1945 strcpy(plmn_netw_data.network_short, (char*)mmr_info_ind->short_net_name.text);
1946 #endif 1946 #endif
1947 } 1947 }
1948 else if (!mmr_info_ind->v_short_net_name AND 1948 else if (!mmr_info_ind->v_short_net_name AND
1949 mmr_info_ind->v_full_net_name) /* full name only */ 1949 mmr_info_ind->v_full_net_name) /* full name only */
1950 { 1950 {
1951 TRACE_FUNCTION(" LONG NAME "); 1951 TRACE_FUNCTION(" LONG NAME ");
1952 #ifdef NO_ASCIIZ 1952 #ifdef NO_ASCIIZ
1953 memcpy( plmn_netw_data.network_long.data, 1953 memcpy( plmn_netw_data.network_long.data,
1954 mmr_info_ind->full_net_name.text, 1954 mmr_info_ind->full_net_name.text,
1955 mmr_info_ind->full_net_name.c_text); 1955 mmr_info_ind->full_net_name.c_text);
1956 #else 1956 #else
1957 strcpy( plmn_netw_data.network_long, (char*)mmr_info_ind->full_net_name.text ); 1957 strcpy( plmn_netw_data.network_long, (char*)mmr_info_ind->full_net_name.text );
1958 #endif 1958 #endif
1959 } 1959 }
1960 else if (mmr_info_ind->v_short_net_name AND 1960 else if (mmr_info_ind->v_short_net_name AND
1961 mmr_info_ind->v_full_net_name) 1961 mmr_info_ind->v_full_net_name)
1962 { 1962 {
1963 TRACE_FUNCTION(" LONG AND SHORT "); 1963 TRACE_FUNCTION(" LONG AND SHORT ");
1964 #ifdef NO_ASCIIZ 1964 #ifdef NO_ASCIIZ
1965 memcpy( plmn_netw_data.network_long.data, 1965 memcpy( plmn_netw_data.network_long.data,
1966 mmr_info_ind->full_net_name.text, 1966 mmr_info_ind->full_net_name.text,
1967 mmr_info_ind->full_net_name.c_text); 1967 mmr_info_ind->full_net_name.c_text);
1968 memcpy( plmn_netw_data.network_short.data, 1968 memcpy( plmn_netw_data.network_short.data,
1969 mmr_info_ind->short_net_name.text, 1969 mmr_info_ind->short_net_name.text,
1970 mmr_info_ind->short_net_name.c_text); 1970 mmr_info_ind->short_net_name.c_text);
1971 #else 1971 #else
1972 strcpy( plmn_netw_data.network_long, (char*)mmr_info_ind->full_net_name.text ); 1972 strcpy( plmn_netw_data.network_long, (char*)mmr_info_ind->full_net_name.text );
1973 strcpy( plmn_netw_data.network_short, (char*)mmr_info_ind->short_net_name.text); 1973 strcpy( plmn_netw_data.network_short, (char*)mmr_info_ind->short_net_name.text);
1974 #endif 1974 #endif
1975 } 1975 }
1976 else 1976 else
1977 { 1977 {
1978 TRACE_EVENT("No name found"); 1978 TRACE_EVENT("No name found");
1979 } 1979 }
2083 GLOBAL void rAT_PercentCSTAT ( T_ACI_STATE_MSG msgType ) 2083 GLOBAL void rAT_PercentCSTAT ( T_ACI_STATE_MSG msgType )
2084 { 2084 {
2085 #ifndef NEPTUNE_BOARD 2085 #ifndef NEPTUNE_BOARD
2086 T_MFW_NETWORK_STRUCT plmn_eons_data; 2086 T_MFW_NETWORK_STRUCT plmn_eons_data;
2087 #endif 2087 #endif
2088 2088
2089 TRACE_FUNCTION ("rAT_PercentCSTAT ()"); 2089 TRACE_FUNCTION ("rAT_PercentCSTAT ()");
2090 #ifndef NEPTUNE_BOARD 2090 #ifndef NEPTUNE_BOARD
2091 memset(&plmn_eons_data, 0, sizeof(T_MFW_NETWORK_STRUCT) ); 2091 memset(&plmn_eons_data, 0, sizeof(T_MFW_NETWORK_STRUCT) );
2092 if( (msgType.entityId EQ STATE_MSG_EONS ) AND 2092 if( (msgType.entityId EQ STATE_MSG_EONS ) AND
2093 (msgType.entityState EQ ENTITY_STATUS_Ready) ) 2093 (msgType.entityState EQ ENTITY_STATUS_Ready) )
2094 { 2094 {
2095 nm_get_COPN(&plmn_eons_data); 2095 nm_get_COPN(&plmn_eons_data);
2096 2096
2097 //send E_NM_OPN event 2097 //send E_NM_OPN event
2098 nm_get_network_data(&plmn_eons_data); 2098 nm_get_network_data(&plmn_eons_data);
2099 } 2099 }
2100 #endif 2100 #endif
2101 2101
2102 } 2102 }
2163 T_ACI_P_CREG_GPRS_IND gprs_ind) 2163 T_ACI_P_CREG_GPRS_IND gprs_ind)
2164 { 2164 {
2165 TRACE_FUNCTION("rAT_PercentCREG()"); 2165 TRACE_FUNCTION("rAT_PercentCREG()");
2166 } 2166 }
2167 2167
2168 #if defined (MFW) || defined (SMI) 2168 #if defined (MFW) || defined (SMI)
2169 #ifdef FF_TIMEZONE 2169 #ifdef FF_TIMEZONE
2170 GLOBAL void rAT_PlusCTZV ( S32 timezone ) 2170 GLOBAL void rAT_PlusCTZV ( S32 timezone )
2171 { 2171 {
2172 TRACE_FUNCTION("rAT_PlusCTZV()"); 2172 TRACE_FUNCTION("rAT_PlusCTZV()");
2173 } 2173 }
2191 | STATE : code ROUTINE : rAT_PercentCTZV | 2191 | STATE : code ROUTINE : rAT_PercentCTZV |
2192 +--------------------------------------------------------------------+ 2192 +--------------------------------------------------------------------+
2193 2193
2194 PURPOSE : 2194 PURPOSE :
2195 */ 2195 */
2196 #if defined (MFW) || defined (SMI) 2196 #if defined (MFW) || defined (SMI)
2197 GLOBAL void rAT_PercentCTZV (T_MMR_INFO_IND *mmr_info_ind, S32 timezone ) 2197 GLOBAL void rAT_PercentCTZV (T_MMR_INFO_IND *mmr_info_ind, S32 timezone )
2198 { 2198 {
2199 #ifdef FF_TIMEZONE 2199 #ifdef FF_TIMEZONE
2200 T_MFW_TIME_IND currclock; 2200 T_MFW_TIME_IND currclock;
2201 #endif 2201 #endif
2202 2202
2203 TRACE_FUNCTION("rAT_PercentCTZV()"); 2203 TRACE_FUNCTION("rAT_PercentCTZV()");
2204 2204
2205 #ifdef FF_TIMEZONE 2205 #ifdef FF_TIMEZONE
2206 // Copy time related data received from network to 'currclock' 2206 // Copy time related data received from network to 'currclock'
2207 // to be passed to MMI. 2207 // to be passed to MMI.
2208 2208
2209 currclock.hour = mmr_info_ind->time.hour; 2209 currclock.hour = mmr_info_ind->time.hour;
2210 currclock.minute = mmr_info_ind->time.minute; 2210 currclock.minute = mmr_info_ind->time.minute;
2211 currclock.second = mmr_info_ind->time.second; 2211 currclock.second = mmr_info_ind->time.second;
2212 2212
2213 // Copy date related data received from network to 'currclock' 2213 // Copy date related data received from network to 'currclock'
2214 // to be passed to MMI. 2214 // to be passed to MMI.
2215 currclock.day = mmr_info_ind->time.day; 2215 currclock.day = mmr_info_ind->time.day;
2216 currclock.month = mmr_info_ind->time.month; 2216 currclock.month = mmr_info_ind->time.month;
2217 currclock.year = mmr_info_ind->time.year; 2217 currclock.year = mmr_info_ind->time.year;
2218 2218
2219 // Pass time and date info to MMI 2219 // Pass time and date info to MMI
2220 nm_set_network_time(&currclock); 2220 nm_set_network_time(&currclock);
2221 #endif 2221 #endif
2222 } 2222 }
2223 #endif 2223 #endif
2224 2224
2225 /* 2225 /*
2226 +--------------------------------------------------------------------+ 2226 +--------------------------------------------------------------------+
2258 2258
2259 GLOBAL void rAT_PercentEMETS ( UBYTE entity ) 2259 GLOBAL void rAT_PercentEMETS ( UBYTE entity )
2260 { 2260 {
2261 } 2261 }
2262 #endif 2262 #endif
2263 #else 2263 #else
2264 #ifdef TI_PS_FF_EM 2264 #ifdef TI_PS_FF_EM
2265 GLOBAL void rAT_PercentEM ( /*UBYTE srcId,*/ T_EM_VAL *val_tmp ) 2265 GLOBAL void rAT_PercentEM ( /*UBYTE srcId,*/ T_EM_VAL *val_tmp )
2266 { 2266 {
2267 } 2267 }
2268 2268
2312 #endif /* ndef MFW */ 2312 #endif /* ndef MFW */
2313 2313
2314 #ifndef MFW 2314 #ifndef MFW
2315 #ifndef FF_MMI_RIV 2315 #ifndef FF_MMI_RIV
2316 /* dummy in case of SMI */ 2316 /* dummy in case of SMI */
2317 GLOBAL void rAT_PercentCPVWI ( UBYTE flag_set, 2317 GLOBAL void rAT_PercentCPVWI ( UBYTE flag_set,
2318 USHORT line) 2318 USHORT line)
2319 { } 2319 { }
2320 #endif /* FF_MMI_RIV */ 2320 #endif /* FF_MMI_RIV */
2321 #endif /* MFW */ 2321 #endif /* MFW */
2322 #endif /*FF_2TO1_PS*/ 2322 #endif /*FF_2TO1_PS*/
2336 mfw_mbi.voice=mbi->mbdn_id_voice; 2336 mfw_mbi.voice=mbi->mbdn_id_voice;
2337 mfw_mbi.fax=mbi->mbdn_id_fax; 2337 mfw_mbi.fax=mbi->mbdn_id_fax;
2338 mfw_mbi.electronic=mbi->mbdn_id_email; 2338 mfw_mbi.electronic=mbi->mbdn_id_email;
2339 mfw_mbi.other=mbi->mbdn_id_other; 2339 mfw_mbi.other=mbi->mbdn_id_other;
2340 mfw_mbi.valid=1; /*1 means valid*/ 2340 mfw_mbi.valid=1; /*1 means valid*/
2341 2341
2342 /*need to send MBI signal to BMI*/ 2342 /*need to send MBI signal to BMI*/
2343 sendCPHSSignal(E_CPHS_REL4_GET_MBI, &mfw_mbi); 2343 sendCPHSSignal(E_CPHS_REL4_GET_MBI, &mfw_mbi);
2344 } 2344 }
2345 2345
2346 /* 2346 /*
2347 +--------------------------------------------------------------------+ 2347 +--------------------------------------------------------------------+
2348 | PROJECT : GSM-F&D (8411) MODULE : MFW_ACI_DUMMY | 2348 | PROJECT : GSM-F&D (8411) MODULE : MFW_ACI_DUMMY |
2366 | PROJECT : GSM-F&D (8411) MODULE : MFW_ACI_DUMMY | 2366 | PROJECT : GSM-F&D (8411) MODULE : MFW_ACI_DUMMY |
2367 | STATE : code ROUTINE : rAT_PercentMWIS| 2367 | STATE : code ROUTINE : rAT_PercentMWIS|
2368 +--------------------------------------------------------------------+ 2368 +--------------------------------------------------------------------+
2369 2369
2370 PURPOSE : handles callback for %MWIS, which queries the message waiting status*/ 2370 PURPOSE : handles callback for %MWIS, which queries the message waiting status*/
2371 2371
2372 GLOBAL void rAT_PercentMWIS(T_ACI_MWIS_MWI* mwis) 2372 GLOBAL void rAT_PercentMWIS(T_ACI_MWIS_MWI* mwis)
2373 { 2373 {
2374 /*send MBDN signal to BMI*/ 2374 /*send MBDN signal to BMI*/
2375 int profile; 2375 int profile;
2376 static UBYTE count = 1; 2376 static UBYTE count = 1;
2403 mwis_stat[msp_id - 1].mwisStat = mwis->mwiStat; 2403 mwis_stat[msp_id - 1].mwisStat = mwis->mwiStat;
2404 mwis_stat[msp_id - 1].voicemail = mwis->mwis_count_voice; 2404 mwis_stat[msp_id - 1].voicemail = mwis->mwis_count_voice;
2405 mwis_stat[msp_id - 1].fax = mwis->mwis_count_fax; 2405 mwis_stat[msp_id - 1].fax = mwis->mwis_count_fax;
2406 mwis_stat[msp_id - 1].electronic = mwis->mwis_count_email; 2406 mwis_stat[msp_id - 1].electronic = mwis->mwis_count_email;
2407 mwis_stat[msp_id - 1].other = mwis->mwis_count_other; 2407 mwis_stat[msp_id - 1].other = mwis->mwis_count_other;
2408 2408
2409 sendCPHSSignal(E_CPHS_GET_VC_STAT,0); 2409 sendCPHSSignal(E_CPHS_GET_VC_STAT,0);
2410 } 2410 }
2411 2411
2412 #endif 2412 #endif
2413 2413
2473 GLOBAL void rAT_PercentCMGR ( T_ACI_CMGL_SM* sm, 2473 GLOBAL void rAT_PercentCMGR ( T_ACI_CMGL_SM* sm,
2474 T_ACI_CMGR_CBM* cbm ) 2474 T_ACI_CMGR_CBM* cbm )
2475 { 2475 {
2476 TRACE_FUNCTION ("rAT_PercentCMGR()"); 2476 TRACE_FUNCTION ("rAT_PercentCMGR()");
2477 } 2477 }
2478 2478
2479 /* 2479 /*
2480 +--------------------------------------------------------------------+ 2480 +--------------------------------------------------------------------+
2481 | PROJECT : GSM-F&D (8411) MODULE : MFW_ACI_DUMMY | 2481 | PROJECT : GSM-F&D (8411) MODULE : MFW_ACI_DUMMY |
2482 | STATE : code ROUTINE : rAT_PercentCMGL | 2482 | STATE : code ROUTINE : rAT_PercentCMGL |
2483 +--------------------------------------------------------------------+ 2483 +--------------------------------------------------------------------+
2484 2484
2485 PURPOSE : 2485 PURPOSE :
2486 */ 2486 */
2487 GLOBAL void rAT_PercentCMGL ( T_ACI_CMGL_SM * smLst ) 2487 GLOBAL void rAT_PercentCMGL ( T_ACI_CMGL_SM * smLst )
2488 { 2488 {
2489 TRACE_FUNCTION ("rAT_PercentCMGL()"); 2489 TRACE_FUNCTION ("rAT_PercentCMGL()");
2490 } 2490 }
2533 /* 2533 /*
2534 +--------------------------------------------------------------------+ 2534 +--------------------------------------------------------------------+
2535 | PROJECT : GSM-F&D (8411) MODULE : ACI_RET | 2535 | PROJECT : GSM-F&D (8411) MODULE : ACI_RET |
2536 | STATE : code ROUTINE : rAT_PercentCFIS | 2536 | STATE : code ROUTINE : rAT_PercentCFIS |
2537 +--------------------------------------------------------------------+ 2537 +--------------------------------------------------------------------+
2538 2538
2539 PURPOSE : handles rAT_PercentCFIS call back 2539 PURPOSE : handles rAT_PercentCFIS call back
2540 PARAMETERS : cfis - Call forward indication status 2540 PARAMETERS : cfis - Call forward indication status
2541 */ 2541 */
2542 #ifdef FF_CPHS_REL4 2542 #ifdef FF_CPHS_REL4
2543 GLOBAL void rAT_PercentCFIS ( T_ACI_CFIS_CFU *cfis ) 2543 GLOBAL void rAT_PercentCFIS ( T_ACI_CFIS_CFU *cfis )
2544 { 2544 {
2545 T_MFW_CPHS_REL4_DV_STAT divert_status; 2545 T_MFW_CPHS_REL4_DV_STAT divert_status;
2546 TRACE_FUNCTION("rAT_PercentCFIS()"); 2546 TRACE_FUNCTION("rAT_PercentCFIS()");
2547 2547
2548 if(cfis->cfuStat & 0x01) /*first bit corresponds to voice*/ 2548 if(cfis->cfuStat & 0x01) /*first bit corresponds to voice*/
2549 divert_status.voice=MFW_CFLAG_SET; 2549 divert_status.voice=MFW_CFLAG_SET;
2557 2557
2558 if(cfis->cfuStat & 0x04) /*third bit corresponds to data*/ 2558 if(cfis->cfuStat & 0x04) /*third bit corresponds to data*/
2559 divert_status.data=MFW_CFLAG_SET; 2559 divert_status.data=MFW_CFLAG_SET;
2560 else 2560 else
2561 divert_status.data=MFW_CFLAG_NOTSet; 2561 divert_status.data=MFW_CFLAG_NOTSet;
2562 2562
2563 memcpy(divert_status.voice_dialling_number,cfis->number,PHB_MAX_LEN); 2563 memcpy(divert_status.voice_dialling_number,cfis->number,PHB_MAX_LEN);
2564 2564
2565 TRACE_EVENT_P4("voice %x, fax %x, data %x, number %s", 2565 TRACE_EVENT_P4("voice %x, fax %x, data %x, number %s",
2566 divert_status.voice,divert_status.fax,divert_status.data, 2566 divert_status.voice,divert_status.fax,divert_status.data,
2567 divert_status.voice_dialling_number); 2567 divert_status.voice_dialling_number);
2568 2568
2569 sendCPHSSignal(E_CPHS_GET_DV_STAT,&divert_status); 2569 sendCPHSSignal(E_CPHS_GET_DV_STAT,&divert_status);
2570 } 2570 }
2571 #endif /* FF_CPHS_REL4 */ 2571 #endif /* FF_CPHS_REL4 */
2572 2572
2573 2573
2598 Mslil_msl_mmi_ind((T_MSL_MMI_IND*)data); 2598 Mslil_msl_mmi_ind((T_MSL_MMI_IND*)data);
2599 return TRUE; 2599 return TRUE;
2600 } 2600 }
2601 2601
2602 return FALSE; 2602 return FALSE;
2603 2603
2604 } 2604 }
2605 2605
2606 /* 2606 /*
2607 +------------------------------------------------------------------------------ 2607 +------------------------------------------------------------------------------
2608 | Function : Mslil_msl_mmi_ind 2608 | Function : Mslil_msl_mmi_ind
2618 GLOBAL void Mslil_msl_mmi_ind ( T_MSL_MMI_IND *msl_mmi_ind) 2618 GLOBAL void Mslil_msl_mmi_ind ( T_MSL_MMI_IND *msl_mmi_ind)
2619 { 2619 {
2620 2620
2621 U32 ucp=msl_mmi_ind->ucp; 2621 U32 ucp=msl_mmi_ind->ucp;
2622 /*a0393213 compiler warnings removal - removed variable status*/ 2622 /*a0393213 compiler warnings removal - removed variable status*/
2623 2623
2624 TRACE_FUNCTION ("Mslil_msl_mmi_ind"); 2624 TRACE_FUNCTION ("Mslil_msl_mmi_ind");
2625 2625
2626 switch(ucp) 2626 switch(ucp)
2627 { 2627 {
2628 #ifdef FF_MMI_CAMERA_APP 2628 #ifdef FF_MMI_CAMERA_APP
2629 case MSL_UCP_IMGCAP:/*MSL_UCP_IMGCAP*/ 2629 case MSL_UCP_IMGCAP:/*MSL_UCP_IMGCAP*/
2630 mfw_msl_cam_cb(msl_mmi_ind->message, msl_mmi_ind->appData); 2630 mfw_msl_cam_cb(msl_mmi_ind->message, msl_mmi_ind->appData);
2631 break; 2631 break;
2632 #endif 2632 #endif
2633 #ifdef FF_MMI_FILEMANAGER 2633 #ifdef FF_MMI_FILEMANAGER
2634 case MSL_UCP_IMGTHMB:/*MSL_UCP_IMGTHMB*/ 2634 case MSL_UCP_IMGTHMB:/*MSL_UCP_IMGTHMB*/
2635 //Call the mmi cb for imagethumbnail. 2635 //Call the mmi cb for imagethumbnail.
2636 mfw_fm_thmb_mslcb(msl_mmi_ind->message, msl_mmi_ind->appData); 2636 mfw_fm_thmb_mslcb(msl_mmi_ind->message, msl_mmi_ind->appData);
2637 break; 2637 break;
2638 case MSL_UCP_IMGVIEW:/*MSL_UCP_IMGPREVIEW*/ 2638 case MSL_UCP_IMGVIEW:/*MSL_UCP_IMGPREVIEW*/
2639 //Call the mmi cb for magepreview. 2639 //Call the mmi cb for magepreview.
2640 mfw_fm_view_mslcb(msl_mmi_ind->message, msl_mmi_ind->appData); 2640 mfw_fm_view_mslcb(msl_mmi_ind->message, msl_mmi_ind->appData);
2641 break; 2641 break;
2642 #endif 2642 #endif
2643 } 2643 }
2644 2644
2645 PFREE(msl_mmi_ind); 2645 PFREE(msl_mmi_ind);
2646 } 2646 }
2647 2647
2655 | ucp_type - Use case pipeline type 2655 | ucp_type - Use case pipeline type
2656 | appData - application specific data 2656 | appData - application specific data
2657 | message - status message 2657 | message - status message
2658 | 2658 |
2659 | Return : void 2659 | Return : void
2660 | 2660 |
2661 +------------------------------------------------------------------------------ 2661 +------------------------------------------------------------------------------
2662 */ 2662 */
2663 2663
2664 void Msl_mslil_Callback(void* handle, U32 ucp_type, U32 tCMd, U32 tStatus) 2664 void Msl_mslil_Callback(void* handle, U32 ucp_type, U32 tCMd, U32 tStatus)
2665 { 2665 {