Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangjie
OpenXG-RAN
Commits
576bbd25
Commit
576bbd25
authored
Jul 13, 2016
by
Frédéric Leroy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UE/EMM: move _usim_data to nas_user_t
parent
7340b5e0
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
64 additions
and
70 deletions
+64
-70
openair3/NAS/UE/EMM/emm_main.c
openair3/NAS/UE/EMM/emm_main.c
+57
-65
openair3/NAS/UE/EMM/emm_main.h
openair3/NAS/UE/EMM/emm_main.h
+1
-1
openair3/NAS/UE/nas_proc.c
openair3/NAS/UE/nas_proc.c
+2
-2
openair3/NAS/UE/nas_proc.h
openair3/NAS/UE/nas_proc.h
+1
-1
openair3/NAS/UE/nas_user.c
openair3/NAS/UE/nas_user.c
+1
-1
openair3/NAS/UE/user_defs.h
openair3/NAS/UE/user_defs.h
+2
-0
No files found.
openair3/NAS/UE/EMM/emm_main.c
View file @
576bbd25
This diff is collapsed.
Click to expand it.
openair3/NAS/UE/EMM/emm_main.h
View file @
576bbd25
...
@@ -77,7 +77,7 @@ void emm_main_cleanup(emm_data_t *emm_data);
...
@@ -77,7 +77,7 @@ void emm_main_cleanup(emm_data_t *emm_data);
const
imsi_t
*
emm_main_get_imsi
(
emm_data_t
*
emm_data
);
const
imsi_t
*
emm_main_get_imsi
(
emm_data_t
*
emm_data
);
/* User's getter of the subscriber dialing number */
/* User's getter of the subscriber dialing number */
const
msisdn_t
*
emm_main_get_msisdn
(
void
);
const
msisdn_t
*
emm_main_get_msisdn
(
nas_user_t
*
user
);
/* User's getter/setter for network selection */
/* User's getter/setter for network selection */
int
emm_main_set_plmn_selection_mode
(
nas_user_t
*
user
,
int
mode
,
int
format
,
int
emm_main_set_plmn_selection_mode
(
nas_user_t
*
user
,
int
mode
,
int
format
,
...
...
openair3/NAS/UE/nas_proc.c
View file @
576bbd25
...
@@ -299,11 +299,11 @@ int nas_proc_get_imsi(emm_data_t *emm_data, char *imsi_str)
...
@@ -299,11 +299,11 @@ int nas_proc_get_imsi(emm_data_t *emm_data, char *imsi_str)
** Others: None **
** Others: None **
** **
** **
***************************************************************************/
***************************************************************************/
int
nas_proc_get_msisdn
(
char
*
msisdn_str
,
int
*
ton_npi
)
int
nas_proc_get_msisdn
(
nas_user_t
*
user
,
char
*
msisdn_str
,
int
*
ton_npi
)
{
{
LOG_FUNC_IN
;
LOG_FUNC_IN
;
const
msisdn_t
*
msisdn
=
emm_main_get_msisdn
();
const
msisdn_t
*
msisdn
=
emm_main_get_msisdn
(
user
);
if
(
msisdn
!=
NULL
)
{
if
(
msisdn
!=
NULL
)
{
union
{
union
{
...
...
openair3/NAS/UE/nas_proc.h
View file @
576bbd25
...
@@ -77,7 +77,7 @@ int nas_proc_disable_s1_mode(nas_user_t *user);
...
@@ -77,7 +77,7 @@ int nas_proc_disable_s1_mode(nas_user_t *user);
int
nas_proc_get_eps
(
nas_user_t
*
user
,
int
*
stat
);
int
nas_proc_get_eps
(
nas_user_t
*
user
,
int
*
stat
);
int
nas_proc_get_imsi
(
emm_data_t
*
emm_data
,
char
*
imsi_str
);
int
nas_proc_get_imsi
(
emm_data_t
*
emm_data
,
char
*
imsi_str
);
int
nas_proc_get_msisdn
(
char
*
msisdn_str
,
int
*
ton_npi
);
int
nas_proc_get_msisdn
(
nas_user_t
*
user
,
char
*
msisdn_str
,
int
*
ton_npi
);
int
nas_proc_get_signal_quality
(
nas_user_t
*
user
,
int
*
rsrq
,
int
*
rsrp
);
int
nas_proc_get_signal_quality
(
nas_user_t
*
user
,
int
*
rsrq
,
int
*
rsrp
);
...
...
openair3/NAS/UE/nas_user.c
View file @
576bbd25
...
@@ -2587,7 +2587,7 @@ static int _nas_user_proc_cnum(nas_user_t *user, const at_command_t *data)
...
@@ -2587,7 +2587,7 @@ static int _nas_user_proc_cnum(nas_user_t *user, const at_command_t *data)
}
}
/* Get the International Mobile Subscriber Identity (IMSI) */
/* Get the International Mobile Subscriber Identity (IMSI) */
ret_code
=
nas_proc_get_msisdn
(
cnum
->
number
,
&
cnum
->
type
);
ret_code
=
nas_proc_get_msisdn
(
user
,
cnum
->
number
,
&
cnum
->
type
);
if
(
ret_code
!=
RETURNok
)
{
if
(
ret_code
!=
RETURNok
)
{
LOG_TRACE
(
ERROR
,
"USR-MAIN - Failed to get MS dialing number"
);
LOG_TRACE
(
ERROR
,
"USR-MAIN - Failed to get MS dialing number"
);
...
...
openair3/NAS/UE/user_defs.h
View file @
576bbd25
...
@@ -51,6 +51,7 @@ Description NAS type definition to manage a user equipment
...
@@ -51,6 +51,7 @@ Description NAS type definition to manage a user equipment
#include "EMM/emm_fsm_defs.h"
#include "EMM/emm_fsm_defs.h"
#include "EMM/emmData.h"
#include "EMM/emmData.h"
#include "EMM/IdleMode_defs.h"
#include "EMM/IdleMode_defs.h"
#include "API/USIM/usim_api.h"
typedef
struct
{
typedef
struct
{
int
fd
;
int
fd
;
...
@@ -61,6 +62,7 @@ typedef struct {
...
@@ -61,6 +62,7 @@ typedef struct {
emm_fsm_state_t
emm_fsm_status
;
// Current EPS Mobility Management status
emm_fsm_state_t
emm_fsm_status
;
// Current EPS Mobility Management status
emm_data_t
*
emm_data
;
// EPS mobility management data
emm_data_t
*
emm_data
;
// EPS mobility management data
emm_plmn_list_t
*
emm_plmn_list
;
// list of PLMN identities
emm_plmn_list_t
*
emm_plmn_list
;
// list of PLMN identities
usim_data_t
usim_data
;
// USIM application data
}
nas_user_t
;
}
nas_user_t
;
#endif
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment