blob: 4aff6e3d24186ce31463af40b8d6a85ae8798a36 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001/*****************************************************************************
2* Copyright Statement:
3* --------------------
4* This software is protected by Copyright and the information contained
5* herein is confidential. The software may not be copied and the information
6* contained herein may not be used or disclosed except with the written
7* permission of MediaTek Inc. (C) 2005
8*
9* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
10* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
11* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
12* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
13* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
14* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
15* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
16* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
17* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
18* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
19* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
20* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
21*
22* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
23* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
24* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
25* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
26* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
27*
28* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
29* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
30* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
31* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
32* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
33*
34*****************************************************************************/
35
36#ifndef EMM_PUBLIC_STRUCT_H
37#define EMM_PUBLIC_STRUCT_H
38
39#include "kal_public_api.h"
40#include "ps_public_struct.h"
41#include "mcd_vgmm_gen_peer.h"
42#include "l3_inc_local.h"
43
44
45/********************************************
46 * MACROS *
47 ********************************************/
48
49
50/********************************************
51 * TYPE DEFINITIONS & ENUMS *
52 ********************************************/
53#define D_EMM_INTEGRITY_TAU_MAX_LEN 30 //*< TAU NAS message (Mandatory IE only) for N1 mode only + Security header
54
55typedef struct
56{
57 /* key set id and selected security algorithms */
58 kal_bool eksi_present;
59 nas_ksi_struct eksi;
60 kal_uint8 selected_alg;
61
62 /* the uplink NAS count */
63 kal_bool nas_count_present;
64 kal_uint32 nas_count;
65
66 /* make mapped GUTI*/
67 kal_bool guti_present;
68 guti_struct guti;
69
70 /* for interworking E2V */
71 kal_bool kasme_present;
72 kal_uint8 kasme[KASME_NUM];
73} emm_public_context_struct;
74
75typedef struct
76{
77
78 /* TAU for VGMM NAS Message Container IE, only valid in HO procedure (between RAT_CHANGE_START->FINISH) */
79 kal_bool tau_msg_present;
80 kal_uint16 tau_msgl;
81 kal_uint8 tau_msg[D_EMM_INTEGRITY_TAU_MAX_LEN];
82
83 /* errc irat nas transparent containert, store errc irat containert sharing for VGMM until 4G5 procedure finish */
84 irat_container_errc_to_emm_struct irat_container;
85} emm_public_irat_context_struct;
86
87
88typedef struct
89{
90
91 /* Generic EMM public context */
92 emm_public_context_struct emm_public_ctxt;
93
94 /* irat related EMM public context, highly dependency with IRAT/Interworking procedure and reset when EMM received FINISH_IND */
95 emm_public_irat_context_struct emm_public_irat_ctxt;
96
97} emm_public_context_pool_struct;
98
99
100/********************************************
101 * VARIABLES *
102 ********************************************/
103
104/********************************************
105 * FUNCTION DECLARATIONS *
106 ********************************************/
107
108#endif /* EMM_PUBLIC_STRUCT_H */