Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
1ead49cb
Commit
1ead49cb
authored
Jul 26, 2016
by
Frédéric Leroy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UE: move nvram data filename to nas_user_t
parent
689a27e6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
11 deletions
+10
-11
openair3/NAS/UE/nas_ue_task.c
openair3/NAS/UE/nas_ue_task.c
+7
-0
openair3/NAS/UE/nas_user.c
openair3/NAS/UE/nas_user.c
+2
-11
openair3/NAS/UE/user_defs.h
openair3/NAS/UE/user_defs.h
+1
-0
No files found.
openair3/NAS/UE/nas_ue_task.c
View file @
1ead49cb
...
...
@@ -102,6 +102,13 @@ void *nas_ue_task(void *args_p)
exit
(
EXIT_FAILURE
);
}
/* Get UE's data pathname */
user
->
user_nvdata_store
=
memory_get_path
(
USER_NVRAM_DIRNAME
,
USER_NVRAM_FILENAME
);
if
(
user
->
user_nvdata_store
==
NULL
)
{
LOG_E
(
NAS
,
"[UE %d] - Failed to get USIM data application filename"
,
user
->
ueid
);
exit
(
EXIT_FAILURE
);
}
/* Initialize user interface (to exchange AT commands with user process) */
nas_user_api_id_initialize
(
user
);
user
->
user_at_commands
=
calloc_or_fail
(
sizeof
(
user_at_commands_t
));
...
...
openair3/NAS/UE/nas_user.c
View file @
1ead49cb
...
...
@@ -161,20 +161,11 @@ void nas_user_initialize(nas_user_t *user, emm_indication_callback_t emm_cb,
user
->
nas_user_nvdata
=
calloc_or_fail
(
sizeof
(
user_nvdata_t
));
/* Get UE's data pathname */
char
*
path
=
memory_get_path
(
USER_NVRAM_DIRNAME
,
USER_NVRAM_FILENAME
);
if
(
path
==
NULL
)
{
LOG_TRACE
(
ERROR
,
"USR-MAIN - Failed to get UE's data pathname"
);
exit
(
EXIT_FAILURE
);
}
/* Get UE data stored in the non-volatile memory device */
int
rc
=
memory_read
(
path
,
user
->
nas_user_nvdata
,
sizeof
(
user_nvdata_t
));
int
rc
=
memory_read
(
user
->
usim_data_store
,
user
->
nas_user_nvdata
,
sizeof
(
user_nvdata_t
));
if
(
rc
!=
RETURNok
)
{
LOG_TRACE
(
ERROR
,
"USR-MAIN - Failed to read %s"
,
path
);
LOG_TRACE
(
ERROR
,
"USR-MAIN - Failed to read %s"
,
user
->
nas_user_nvdata
);
}
free
(
path
);
user
->
nas_user_context
=
calloc_or_fail
(
sizeof
(
nas_user_context_t
));
_nas_user_context_initialize
(
user
->
nas_user_context
,
version
);
...
...
openair3/NAS/UE/user_defs.h
View file @
1ead49cb
...
...
@@ -77,6 +77,7 @@ typedef struct {
usim_data_t
usim_data
;
// USIM application data
const
char
*
usim_data_store
;
// USIM application data filename
user_nvdata_t
*
nas_user_nvdata
;
//UE parameters stored in the UE's non-volatile memory device
const
char
*
user_nvdata_store
;
//UE parameters stored in the UE's non-volatile memory device
//
nas_user_context_t
*
nas_user_context
;
at_response_t
*
at_response
;
// data structure returned to the user as the result of NAS procedure function call
...
...
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