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
canghaiwuhen
OpenXG-RAN
Commits
a6af1273
Commit
a6af1273
authored
Nov 21, 2020
by
cucengineer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update nas_nrue_task.c
parent
c0f0c02a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
openair3/NAS/NR_UE/nas_nrue_task.c
openair3/NAS/NR_UE/nas_nrue_task.c
+20
-20
No files found.
openair3/NAS/NR_UE/nas_nrue_task.c
View file @
a6af1273
...
@@ -190,34 +190,34 @@ void nr_nas_proc_dl_transfer_ind (MM_msg *msg, Byte_t *data, uint32_t len) { //
...
@@ -190,34 +190,34 @@ void nr_nas_proc_dl_transfer_ind (MM_msg *msg, Byte_t *data, uint32_t len) { //
}
}
}
}
//
#include "nr_nas_msg_sim.h"
#include "nr_nas_msg_sim.h"
//
int mm_msg_decode(MM_msg *mm_msg, uint8_t *buffer, uint32_t len) {
int
mm_msg_decode
(
MM_msg
*
mm_msg
,
uint8_t
*
buffer
,
uint32_t
len
)
{
//
int header_result;
int
header_result
;
//
int decode_result=0;
int
decode_result
=
0
;
//
uint8_t msg_type = mm_msg->header.message_type;
uint8_t
msg_type
=
mm_msg
->
header
.
message_type
;
//
/* First decode the EMM message header */
/* First decode the EMM message header */
//
header_result = _nas_mm_msg_decode_header(&mm_msg->header, buffer, len);
header_result
=
_nas_mm_msg_decode_header
(
&
mm_msg
->
header
,
buffer
,
len
);
//
if (header_result < 0) {
if
(
header_result
<
0
)
{
//
LOG_TRACE(ERROR, "NR_UE - Failed to decode EMM message header "
LOG_TRACE
(
ERROR
,
"NR_UE - Failed to decode EMM message header "
//
"(%d)", header_result);
"(%d)"
,
header_result
);
//
LOG_FUNC_RETURN(header_result);
LOG_FUNC_RETURN
(
header_result
);
//
}
}
//
buffer += header_result;
buffer
+=
header_result
;
//
len -= header_result;
len
-=
header_result
;
//
LOG_TRACE(INFO, "NR_UE - Message Type 0x%02x", msg_type);
LOG_TRACE
(
INFO
,
"NR_UE - Message Type 0x%02x"
,
msg_type
);
//
switch(msg->header.message_type) {
switch
(
msg
->
header
.
message_type
)
{
//
}
}
//
LOG_FUNC_RETURN (header_result + decode_result);
LOG_FUNC_RETURN
(
header_result
+
decode_result
);
//
}
}
// int encodeNasMsg(UENAS_msg *msg, uint8_t *buffer, uint32_t len) { //QUES:UENAS_msg *msg
// int encodeNasMsg(UENAS_msg *msg, uint8_t *buffer, uint32_t len) { //QUES:UENAS_msg *msg
// int header_result;
// int header_result;
...
@@ -248,7 +248,7 @@ void nr_nas_proc_dl_transfer_ind (MM_msg *msg, Byte_t *data, uint32_t len) { //
...
@@ -248,7 +248,7 @@ void nr_nas_proc_dl_transfer_ind (MM_msg *msg, Byte_t *data, uint32_t len) { //
// LOG_FUNC_RETURN (header_result + encode_result);
// LOG_FUNC_RETURN (header_result + encode_result);
// }
// }
static
int
_nas_mm_msg_decode_header
(
mm_msg_header_t
*
header
,
,
static
int
_nas_mm_msg_decode_header
(
mm_msg_header_t
*
header
,
const
uint8_t
*
buffer
,
uint32_t
len
)
{
const
uint8_t
*
buffer
,
uint32_t
len
)
{
int
size
=
0
;
int
size
=
0
;
...
...
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