Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dyyu
openairinterface5G
Commits
fcf2444e
Commit
fcf2444e
authored
8 years ago
by
FredericLeroy
Browse files
Options
Downloads
Patches
Plain Diff
UE/EMM: remove redondant ueid in prototypes
parent
64e296ed
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
openair3/NAS/UE/EMM/EmmStatusHdl.c
+2
-2
2 additions, 2 deletions
openair3/NAS/UE/EMM/EmmStatusHdl.c
openair3/NAS/UE/EMM/SAP/emm_as.c
+5
-8
5 additions, 8 deletions
openair3/NAS/UE/EMM/SAP/emm_as.c
openair3/NAS/UE/EMM/emm_proc.h
+1
-1
1 addition, 1 deletion
openair3/NAS/UE/EMM/emm_proc.h
with
8 additions
and
11 deletions
openair3/NAS/UE/EMM/EmmStatusHdl.c
+
2
−
2
View file @
fcf2444e
...
...
@@ -115,7 +115,7 @@ int emm_proc_status_ind(unsigned int ueid, int emm_cause)
** Others: None **
** **
***************************************************************************/
int
emm_proc_status
(
nas_user_t
*
user
,
unsigned
int
ueid
,
int
emm_cause
)
int
emm_proc_status
(
nas_user_t
*
user
,
int
emm_cause
)
{
LOG_FUNC_IN
;
...
...
@@ -132,7 +132,7 @@ int emm_proc_status(nas_user_t *user, unsigned int ueid, int emm_cause)
*/
emm_sap
.
primitive
=
EMMAS_STATUS_IND
;
emm_sap
.
u
.
emm_as
.
u
.
status
.
emm_cause
=
emm_cause
;
emm_sap
.
u
.
emm_as
.
u
.
status
.
ueid
=
ueid
;
emm_sap
.
u
.
emm_as
.
u
.
status
.
ueid
=
user
->
ueid
;
emm_sap
.
u
.
emm_as
.
u
.
status
.
guti
=
user
->
emm_data
->
guti
;
sctx
=
user
->
emm_data
->
security
;
...
...
This diff is collapsed.
Click to expand it.
openair3/NAS/UE/EMM/SAP/emm_as.c
+
5
−
8
View file @
fcf2444e
...
...
@@ -97,7 +97,7 @@ static const char *_emm_as_primitive_str[] = {
* Functions executed to process EMM procedures upon receiving
* data from the network
*/
static
int
_emm_as_recv
(
nas_user_t
*
user
,
unsigned
int
ueid
,
const
char
*
msg
,
int
len
,
static
int
_emm_as_recv
(
nas_user_t
*
user
,
const
char
*
msg
,
int
len
,
int
*
emm_cause
);
static
int
_emm_as_establish_cnf
(
nas_user_t
*
user
,
const
emm_as_establish_t
*
msg
,
int
*
emm_cause
);
...
...
@@ -194,15 +194,12 @@ int emm_as_send(nas_user_t *user, const emm_as_t *msg)
int
emm_cause
=
EMM_CAUSE_SUCCESS
;
emm_as_primitive_t
primitive
=
msg
->
primitive
;
uint32_t
ueid
=
user
->
ueid
;
LOG_TRACE
(
INFO
,
"EMMAS-SAP - Received primitive %s (%d)"
,
_emm_as_primitive_str
[
primitive
-
_EMMAS_START
-
1
],
primitive
);
switch
(
primitive
)
{
case
_EMMAS_DATA_IND
:
rc
=
_emm_as_data_ind
(
user
,
&
msg
->
u
.
data
,
&
emm_cause
);
ueid
=
msg
->
u
.
data
.
ueid
;
break
;
...
...
@@ -264,7 +261,7 @@ int emm_as_send(nas_user_t *user, const emm_as_t *msg)
LOG_TRACE
(
WARNING
,
"EMMAS-SAP - Received EMM message is not valid "
"(cause=%d)"
,
emm_cause
);
/* Return an EMM status message */
rc
=
emm_proc_status
(
user
,
ueid
,
emm_cause
);
rc
=
emm_proc_status
(
user
,
emm_cause
);
}
if
(
rc
!=
RETURNok
)
{
...
...
@@ -304,7 +301,7 @@ int emm_as_send(nas_user_t *user, const emm_as_t *msg)
** Others: None **
** **
***************************************************************************/
static
int
_emm_as_recv
(
nas_user_t
*
user
,
unsigned
int
ueid
,
const
char
*
msg
,
int
len
,
static
int
_emm_as_recv
(
nas_user_t
*
user
,
const
char
*
msg
,
int
len
,
int
*
emm_cause
)
{
LOG_FUNC_IN
;
...
...
@@ -336,7 +333,7 @@ static int _emm_as_recv(nas_user_t *user, unsigned int ueid, const char *msg, in
switch
(
emm_msg
->
header
.
message_type
)
{
case
EMM_STATUS
:
rc
=
emm_recv_status
(
ueid
,
&
emm_msg
->
emm_status
,
emm_cause
);
rc
=
emm_recv_status
(
user
->
ueid
,
&
emm_msg
->
emm_status
,
emm_cause
);
break
;
case
IDENTITY_REQUEST
:
...
...
@@ -441,7 +438,7 @@ static int _emm_as_data_ind(nas_user_t *user, const emm_as_data_t *msg, int *emm
}
else
if
(
header
.
protocol_discriminator
==
EPS_MOBILITY_MANAGEMENT_MESSAGE
)
{
/* Process EMM data */
rc
=
_emm_as_recv
(
user
,
msg
->
ueid
,
plain_msg
,
bytes
,
emm_cause
);
rc
=
_emm_as_recv
(
user
,
plain_msg
,
bytes
,
emm_cause
);
}
else
if
(
header
.
protocol_discriminator
==
EPS_SESSION_MANAGEMENT_MESSAGE
)
{
const
OctetString
data
=
{
bytes
,
(
uint8_t
*
)
plain_msg
};
...
...
This diff is collapsed.
Click to expand it.
openair3/NAS/UE/EMM/emm_proc.h
+
1
−
1
View file @
fcf2444e
...
...
@@ -66,7 +66,7 @@ Description Defines the EPS Mobility Management procedures executed at
*---------------------------------------------------------------------------
*/
int
emm_proc_status_ind
(
unsigned
int
ueid
,
int
emm_cause
);
int
emm_proc_status
(
nas_user_t
*
user
,
unsigned
int
ueid
,
int
emm_cause
);
int
emm_proc_status
(
nas_user_t
*
user
,
int
emm_cause
);
/*
*---------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment