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
fcf2444e
Commit
fcf2444e
authored
Jul 22, 2016
by
Frédéric Leroy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UE/EMM: remove redondant ueid in prototypes
parent
64e296ed
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
11 deletions
+8
-11
openair3/NAS/UE/EMM/EmmStatusHdl.c
openair3/NAS/UE/EMM/EmmStatusHdl.c
+2
-2
openair3/NAS/UE/EMM/SAP/emm_as.c
openair3/NAS/UE/EMM/SAP/emm_as.c
+5
-8
openair3/NAS/UE/EMM/emm_proc.h
openair3/NAS/UE/EMM/emm_proc.h
+1
-1
No files found.
openair3/NAS/UE/EMM/EmmStatusHdl.c
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
=
u
ser
->
u
eid
;
emm_sap
.
u
.
emm_as
.
u
.
status
.
guti
=
user
->
emm_data
->
guti
;
sctx
=
user
->
emm_data
->
security
;
...
...
openair3/NAS/UE/EMM/SAP/emm_as.c
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
(
u
ser
->
u
eid
,
&
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
};
...
...
openair3/NAS/UE/EMM/emm_proc.h
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
);
/*
*---------------------------------------------------------------------------
...
...
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