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
lizhongxiao
OpenXG-RAN
Commits
1c248bcf
Commit
1c248bcf
authored
Aug 31, 2021
by
Melissa Elkadi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Successfully writing to TUN if and removed usleep
parent
24d75a99
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
+12
-5
openair2/RRC/LTE/rrc_UE.c
openair2/RRC/LTE/rrc_UE.c
+0
-2
No files found.
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
View file @
1c248bcf
...
...
@@ -450,14 +450,21 @@ static void deliver_sdu_drb(void *_ue, nr_pdcp_entity_t *entity,
uint8_t
*
gtpu_buffer_p
;
int
rb_id
;
int
i
;
LOG_I
(
PDCP
,
"Melissa Elkadi we got here %s
\n
"
,
__FUNCTION__
);
if
(
IS_SOFTMODEM_NOS1
||
UE_NAS_USE_TUN
)
{
if
(
IS_SOFTMODEM_NOS1
||
UE_NAS_USE_TUN
)
{
LOG_D
(
PDCP
,
"IP packet received, to be sent to TUN interface"
);
len
=
write
(
nas_sock_fd
[
0
],
buf
,
size
);
LOG_D
(
PDCP
,
"Writing %d bytes to tunnel interface
\n
"
,
len
);
/* We are removing the instance ID from the buffer. TUN interfaces
care about the actual data we are sending. If we do not remove
the instance ID from the buffer, it will start with 00, and the
write will fail with errno = 22 (EINVAL) */
char
*
data_buffer
=
buf
+
1
;
int
size_to_write
=
size
-
1
;
len
=
write
(
nas_sock_fd
[
0
],
data_buffer
,
size_to_write
);
LOG_D
(
PDCP
,
"len = %d bytes to tunnel interface %d
\n
"
,
len
,
nas_sock_fd
[
0
]);
if
(
len
!=
size
)
{
LOG_E
(
PDCP
,
"%s:%d:%s: fatal
\n
"
,
__FILE__
,
__LINE__
,
__FUNCTION__
);
LOG_E
(
PDCP
,
"%s:%d:%s: fatal
error %d: %s
\n
"
,
__FILE__
,
__LINE__
,
__FUNCTION__
,
errno
,
strerror
(
errno
)
);
}
}
else
{
...
...
openair2/RRC/LTE/rrc_UE.c
View file @
1c248bcf
...
...
@@ -4627,8 +4627,6 @@ void ue_measurement_report_triggering(protocol_ctxt_t *const ctxt_pP, const uint
if
(
is_state_connected
&&
is_t304_inactive
&&
have_meas_flag
)
{
LOG_I
(
RRC
,
"[UE %d] Frame %d: Triggering generation of Meas Report for NR_r15. count = %d
\n
"
,
ctxt_pP
->
module_id
,
ctxt_pP
->
frame
,
ue
->
subframeCount
);
if
(
!
SOFTMODEM_NOS1_BIT
)
usleep
(
200000
);
//Melissa Elkadi come back for EPC
if
(
ue
->
measReportList
[
i
][
j
]
==
NULL
)
{
ue
->
measReportList
[
i
][
j
]
=
malloc
(
sizeof
(
MEAS_REPORT_LIST
));
}
...
...
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