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
zzha zzha
OpenXG-RAN
Commits
9155befa
Commit
9155befa
authored
Oct 18, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add error messages if a TBS cannot be decoded
parent
1c7576bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
+9
-3
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
View file @
9155befa
...
@@ -179,8 +179,10 @@ int nr_process_mac_pdu(instance_t module_idP,
...
@@ -179,8 +179,10 @@ int nr_process_mac_pdu(instance_t module_idP,
to be a partial PDU at the end of this buffer, so here
to be a partial PDU at the end of this buffer, so here
we gracefully ignore that by returning 0. See:
we gracefully ignore that by returning 0. See:
https://gitlab.eurecom.fr/oai/openairinterface5g/-/issues/534 */
https://gitlab.eurecom.fr/oai/openairinterface5g/-/issues/534 */
if
(
!
get_mac_len
(
pduP
,
pdu_len
,
&
mac_len
,
&
mac_subheader_len
))
if
(
!
get_mac_len
(
pduP
,
pdu_len
,
&
mac_len
,
&
mac_subheader_len
))
{
LOG_E
(
NR_MAC
,
"pdu_len %d is invalid (shorter than MAC PDU header)
\n
"
,
pdu_len
);
return
0
;
return
0
;
}
/* Extract long BSR value */
/* Extract long BSR value */
ce_ptr
=
&
pduP
[
mac_subheader_len
];
ce_ptr
=
&
pduP
[
mac_subheader_len
];
NR_BSR_LONG
*
bsr_l
=
(
NR_BSR_LONG
*
)
ce_ptr
;
NR_BSR_LONG
*
bsr_l
=
(
NR_BSR_LONG
*
)
ce_ptr
;
...
@@ -287,8 +289,10 @@ int nr_process_mac_pdu(instance_t module_idP,
...
@@ -287,8 +289,10 @@ int nr_process_mac_pdu(instance_t module_idP,
case
UL_SCH_LCID_SRB1
:
case
UL_SCH_LCID_SRB1
:
case
UL_SCH_LCID_SRB2
:
case
UL_SCH_LCID_SRB2
:
if
(
!
get_mac_len
(
pduP
,
pdu_len
,
&
mac_len
,
&
mac_subheader_len
))
if
(
!
get_mac_len
(
pduP
,
pdu_len
,
&
mac_len
,
&
mac_subheader_len
))
{
LOG_E
(
NR_MAC
,
"pdu_len %d is invalid (shorter than MAC PDU header)
\n
"
,
pdu_len
);
return
0
;
return
0
;
}
rnti_t
crnti
=
UE
->
rnti
;
rnti_t
crnti
=
UE
->
rnti
;
NR_UE_info_t
*
UE_idx
=
UE
;
NR_UE_info_t
*
UE_idx
=
UE
;
...
@@ -364,8 +368,10 @@ int nr_process_mac_pdu(instance_t module_idP,
...
@@ -364,8 +368,10 @@ int nr_process_mac_pdu(instance_t module_idP,
case
UL_SCH_LCID_DTCH
...
(
UL_SCH_LCID_DTCH
+
28
):
case
UL_SCH_LCID_DTCH
...
(
UL_SCH_LCID_DTCH
+
28
):
// check if LCID is valid at current time.
// check if LCID is valid at current time.
if
(
!
get_mac_len
(
pduP
,
pdu_len
,
&
mac_len
,
&
mac_subheader_len
))
if
(
!
get_mac_len
(
pduP
,
pdu_len
,
&
mac_len
,
&
mac_subheader_len
))
{
LOG_E
(
NR_MAC
,
"pdu_len %d is invalid (shorter than MAC PDU header)
\n
"
,
pdu_len
);
return
0
;
return
0
;
}
LOG_D
(
NR_MAC
,
"[UE %04x] %d.%d : ULSCH -> UL-%s %d (gNB %ld, %d bytes)
\n
"
,
LOG_D
(
NR_MAC
,
"[UE %04x] %d.%d : ULSCH -> UL-%s %d (gNB %ld, %d bytes)
\n
"
,
UE
->
rnti
,
UE
->
rnti
,
...
...
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