annotate src/g23m-aci/aci/psa_mms.c @ 550:a1da09e02973

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