comparison src/g23m-gprs/cl/cl_nwrl.c @ 1:fa8dc04885d8

src/g23m-*: import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:25:50 +0000
parents
children
comparison
equal deleted inserted replaced
0:4e78acac3d88 1:fa8dc04885d8
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GPRS (8441)
4 | Module : CL
5 | File : cl_nwrl.c
6 +-----------------------------------------------------------------------------
7 | Copyright 2002 Texas Instruments Berlin, AG
8 | All rights reserved.
9 |
10 | This file is confidential and a trade secret of Texas
11 | Instruments Berlin, AG
12 | The receipt of or possession of this file does not convey
13 | any rights to reproduce or disclose its contents or to
14 | manufacture, use, or sell anything it may describe, in
15 | whole, or in part, without the specific written consent of
16 | Texas Instruments Berlin, AG.
17 +-----------------------------------------------------------------------------
18 | Purpose : This file implements common library functions related to the
19 | network release(in this case, SGSN release) for all entities of
20 | the GPRS protocol stack
21 +-----------------------------------------------------------------------------
22 */
23
24 #ifndef CL_NWRL_C
25 #define CL_NWRL_C
26 #endif
27
28 /*==== INCLUDES =============================================================*/
29
30 #include "typedefs.h" /* to get Condat data types */
31 #include "vsi.h"
32 #include "p_cl.val" /* to get the type of sgsn_rel*/
33 #include "p_8010_152_ps_include.h" /*to get T_PS_qos_rXX*/
34 #include "cl_inline.h"
35
36 LOCAL U8 sgsn_release;
37
38 /*
39 +------------------------------------------------------------------------------
40 | Function : cl_nwrl_set_sgsn_release()
41 +------------------------------------------------------------------------------
42 | Description : The function cl_nwrl_set_sgsn_release() sets the status of SGSN
43 | release as received in SI13, PSI1 and PSI13 messages. This is
44 | called by GRR during initialization after Power On, when
45 | processing SI13, PSI1 and PSI13
46 |
47 | Parameters : U8 sgsn_rel
48 |
49 +------------------------------------------------------------------------------
50 */
51
52 GLOBAL void cl_nwrl_set_sgsn_release(U8 sgsn_rel)
53 {
54 TRACE_FUNCTION( "cl_nwrl_set_sgsn_release()" );
55 sgsn_release = sgsn_rel;
56 }
57
58
59 /*
60 +------------------------------------------------------------------------------
61 | Function : cl_nwrl_get_sgsn_release()
62 +------------------------------------------------------------------------------
63 | Description : The function cl_nwrl_get_sgsn_release() gets the status of SGSN
64 | release. This is called up by entities such as GMM, SM that need
65 | the SGSN release. It is advised to call this function only after
66 | a cell re-selection as the SGSN release value is invalid during
67 | cell re-selection.
68 |
69 | Parameters : Nil
70 |
71 +------------------------------------------------------------------------------
72 */
73
74 GLOBAL U8 cl_nwrl_get_sgsn_release()
75 {
76 TRACE_FUNCTION( "cl_nwrl_get_sgsn_release()" );
77 return sgsn_release;
78 }
79