annotate gsm-fw/g23m-aci/aci/psa_mms.c @ 940:0fb9b7f2ef87

gsm-fw/services/ffs/drv.c: Intel single bank flash driver hooked in
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Sat, 31 Oct 2015 23:39:41 +0000
parents d93ecff8544b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
823
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
1 /*
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
2 +-----------------------------------------------------------------------------
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
3 | Project : GSM-PS (6147)
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
4 | Modul : PSA_MM
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
5 +-----------------------------------------------------------------------------
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
6 | Copyright 2002 Texas Instruments Berlin, AG
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
7 | All rights reserved.
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
8 |
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
9 | This file is confidential and a trade secret of Texas
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
10 | Instruments Berlin, AG
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
11 | The receipt of or possession of this file does not convey
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
12 | any rights to reproduce or disclose its contents or to
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
13 | manufacture, use, or sell anything it may describe, in
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
14 | whole, or in part, without the specific written consent of
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
15 | Texas Instruments Berlin, AG.
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
16 +-----------------------------------------------------------------------------
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
17 | Purpose : This module defines the signalling functions of the
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
18 | protocol stack adapter for the registration part of
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
19 | mobility management.
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
20 +-----------------------------------------------------------------------------
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
21 */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
22
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
23 #include "config.h"
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
24 #include "fixedconf.h"
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
25 #include "condat-features.h"
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
26 #include "aci_conf.h"
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
27
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
28 #if !defined (DTI) || !defined(GPRS)
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
29
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
30 #ifndef PSA_MMS_C
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
31 #define PSA_MMS_C
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
32 #endif
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
33
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
34 #include "aci_all.h"
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
35 #ifdef DTI
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
36 #include "dti.h"
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
37 #include "dti_conn_mng.h"
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
38 #endif
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
39 /*==== INCLUDES ===================================================*/
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
40 #include "aci_cmh.h"
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
41 #include "ati_cmd.h"
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
42 #include "aci_cmd.h"
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
43 #include "aci.h"
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
44 #include "psa.h"
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
45 #include "psa_mm.h"
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
46
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
47 #include "aci_ext_pers.h"
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
48 #include "aci_slock.h"
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
49 #include "cmh.h"
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
50 #include "psa_sim.h"
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
51 #include "cmh_sim.h"
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
52
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
53 /*==== CONSTANTS ==================================================*/
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
54
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
55 /*==== TYPES ======================================================*/
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
56
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
57
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
58 /*==== EXPORT =====================================================*/
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
59
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
60
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
61 /*==== VARIABLES ==================================================*/
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
62 LOCAL BOOL frstFlg = TRUE; /* flags first attempt */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
63
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
64 /*==== FUNCTIONS ==================================================*/
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
65
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
66
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
67 /*
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
68 +-------------------------------------------------------------------+
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
69 | PROJECT : GSM-PS (6147) MODULE : PSA_MMS |
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
70 | ROUTINE : psaMM_Registrate |
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
71 +-------------------------------------------------------------------+
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
72
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
73 PURPOSE : start network registration
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
74
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
75 */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
76
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
77 GLOBAL SHORT psaMM_Registrate ( void )
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
78 {
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
79 TRACE_FUNCTION ("psaMM_Registrate()");
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
80
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
81
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
82 /*
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
83 *-------------------------------------------------------------------
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
84 * check owner id
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
85 *-------------------------------------------------------------------
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
86 */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
87 if(!psa_IsVldOwnId(mmShrdPrm.owner))
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
88
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
89 return( -1 );
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
90
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
91 /*
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
92 * Set automatic registration mode in MM
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
93 */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
94 psaMM_SetRegMode ( MODE_AUTO );
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
95
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
96 /*
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
97 *-------------------------------------------------------------------
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
98 * create and send primitive for network registration
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
99 *-------------------------------------------------------------------
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
100 */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
101 {
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
102 PALLOC (mmr_reg_req, MMR_REG_REQ);
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
103 /* mmr_reg_req->service_mode = SERVICE_MODE_FULL; */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
104 /* OVK Set proper service mode dependent on Sim lock state */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
105 #ifdef SIM_PERS
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
106 if (AciSLockShrd.blocked EQ TRUE)
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
107 {
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
108 mmr_reg_req->service_mode = SERVICE_MODE_LIMITED;
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
109 }
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
110 else
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
111 #endif
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
112 if (simShrdPrm.imei_blocked EQ TRUE)
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
113 {
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
114 mmr_reg_req->service_mode = SERVICE_MODE_LIMITED;
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
115 }
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
116 else
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
117 {
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
118 mmr_reg_req->service_mode = SERVICE_MODE_FULL;
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
119 }
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
120
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
121
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
122
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
123 PSENDX (MM, mmr_reg_req);
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
124 }
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
125
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
126 frstFlg = FALSE;
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
127 return 0;
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
128 }
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
129
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
130 /*
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
131 +-------------------------------------------------------------------+
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
132 | PROJECT : GSM-PS (6147) MODULE : PSA_MMS |
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
133 | ROUTINE : psaMM_DeRegistrate |
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
134 +-------------------------------------------------------------------+
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
135
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
136 PURPOSE : start network de-registration
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
137
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
138 */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
139
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
140 GLOBAL SHORT psaMM_DeRegistrate ( void )
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
141 {
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
142
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
143 TRACE_FUNCTION ("psaMM_DeRegistrate()");
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
144
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
145 /*
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
146 *-------------------------------------------------------------------
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
147 * create and send primitive for deregistration
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
148 *-------------------------------------------------------------------
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
149 */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
150 {
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
151 PALLOC (mmr_nreg_req, MMR_NREG_REQ); /* T_MMR_NREG_REQ */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
152
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
153 mmr_nreg_req->detach_cause = mmShrdPrm.nrgCs;
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
154
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
155 PSENDX (MM, mmr_nreg_req);
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
156 }
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
157
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
158 frstFlg = TRUE;
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
159 return 0;
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
160 }
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
161
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
162 /*
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
163 +-------------------------------------------------------------------+
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
164 | PROJECT : GSM-PS (6147) MODULE : PSA_MMS |
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
165 | ROUTINE : psaMM_NetSrch |
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
166 +-------------------------------------------------------------------+
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
167
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
168 PURPOSE : request network search
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
169
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
170 */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
171
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
172 GLOBAL SHORT psaMM_NetSrch ( void )
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
173 {
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
174 TRACE_FUNCTION ("psaMM_NetSrch()");
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
175
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
176 /*
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
177 *-------------------------------------------------------------------
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
178 * check owner id
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
179 *-------------------------------------------------------------------
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
180 */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
181 if(!psa_IsVldOwnId(mmShrdPrm.owner))
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
182
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
183 return( -1 );
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
184
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
185 /*
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
186 * set manual registration mode in MM
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
187 */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
188 psaMM_SetRegMode ( MODE_MAN );
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
189
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
190 /*
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
191 *-------------------------------------------------------------------
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
192 * create and send primitive for network search
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
193 *-------------------------------------------------------------------
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
194 */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
195 if( frstFlg EQ TRUE
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
196 #ifdef FF_DUAL_SIM
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
197 AND CFUNfun EQ CFUN_FUN_Full
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
198 #endif /*FF_DUAL_SIM*/
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
199 )
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
200 {
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
201 PALLOC (mmr_reg_req, MMR_REG_REQ);
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
202 mmr_reg_req->service_mode = SERVICE_MODE_FULL;
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
203 PSENDX (MM, mmr_reg_req);
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
204 frstFlg = FALSE;
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
205 }
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
206 else
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
207 {
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
208 PALLOC (mmr_net_req, MMR_NET_REQ);
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
209 PSENDX (MM, mmr_net_req);
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
210 frstFlg = FALSE;
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
211 }
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
212
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
213 return 0;
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
214 }
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
215
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
216 /*
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
217 +-------------------------------------------------------------------+
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
218 | PROJECT : GSM-PS (6147) MODULE : PSA_MMS |
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
219 | ROUTINE : psaMM_NetSel |
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
220 +-------------------------------------------------------------------+
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
221
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
222 PURPOSE : select a network
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
223
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
224 */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
225
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
226 GLOBAL SHORT psaMM_NetSel ( void )
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
227 {
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
228 TRACE_FUNCTION ("psaMM_NetSel()");
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
229
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
230 /*
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
231 *-------------------------------------------------------------------
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
232 * check owner id
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
233 *-------------------------------------------------------------------
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
234 */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
235 if(!psa_IsVldOwnId(mmShrdPrm.owner))
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
236
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
237 return( -1 );
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
238
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
239 /*
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
240 * set manual registration mode in MM
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
241 */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
242 psaMM_SetRegMode ( MODE_MAN );
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
243
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
244 /*
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
245 *-------------------------------------------------------------------
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
246 * create and send primitive for network select
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
247 *-------------------------------------------------------------------
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
248 */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
249 {
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
250 PALLOC (mmr_plmn_res, MMR_PLMN_RES);
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
251
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
252 /* fill in primitive parameter: selected PLMN */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
253 mmr_plmn_res -> plmn = mmShrdPrm.slctPLMN;
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
254
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
255 PSENDX (MM, mmr_plmn_res);
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
256 }
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
257
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
258 frstFlg = FALSE;
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
259
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
260 return 0;
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
261 }
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
262
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
263 /*
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
264 +-------------------------------------------------------------------+
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
265 | PROJECT : GSM-PS (6147) MODULE : PSA_MMS |
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
266 | ROUTINE : psaMM_SetRegMode |
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
267 +-------------------------------------------------------------------+
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
268
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
269 PURPOSE : set the registration mode
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
270
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
271 */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
272
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
273 GLOBAL SHORT psaMM_SetRegMode ( UBYTE mode )
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
274 {
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
275 TRACE_FUNCTION ("psaMM_SetRegMode()");
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
276
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
277 /*
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
278 *-------------------------------------------------------------------
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
279 * create and send primitive for registration mode
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
280 *-------------------------------------------------------------------
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
281 */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
282 {
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
283 PALLOC (mmr_plmn_mode_req, MMR_PLMN_MODE_REQ); /* T_MMR_PLMN_MODE_REQ */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
284 mmr_plmn_mode_req -> mode = mode;
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
285 PSENDX (MM, mmr_plmn_mode_req);
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
286 }
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
287
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
288 return 0;
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
289 }
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
290 #endif /* DTI */
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
291
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
292 /*==== EOF ========================================================*/
d93ecff8544b aci: psa_mms.c imported from TCS211 version
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
293