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
20cd6d95
Commit
20cd6d95
authored
Dec 13, 2023
by
francescomani
Committed by
Laurent THOMAS
Jan 25, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MR2496 discard pdu if TBS is null
parent
9671eef8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+10
-0
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
+7
-0
No files found.
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
20cd6d95
...
...
@@ -715,6 +715,11 @@ static int nr_ue_process_dci_dl_10(module_id_t module_id,
dlsch_pdu
->
ldpcBaseGraph
=
get_BG
(
dlsch_pdu
->
TBS
,
dlsch_pdu
->
targetCodeRate
);
if
(
dlsch_pdu
->
TBS
==
0
)
{
LOG_E
(
MAC
,
"Invalid TBS = 0. Probably caused by missed detection of DCI
\n
"
);
return
-
1
;
}
int
bw_tbslbrm
=
current_DL_BWP
?
mac
->
sc_info
.
dl_bw_tbslbrm
:
dlsch_pdu
->
BWPSize
;
dlsch_pdu
->
tbslbrm
=
nr_compute_tbslbrm
(
dlsch_pdu
->
mcs_table
,
bw_tbslbrm
,
1
);
...
...
@@ -1146,6 +1151,11 @@ static int nr_ue_process_dci_dl_11(module_id_t module_id,
dlsch_pdu
->
ldpcBaseGraph
=
get_BG
(
dlsch_pdu
->
TBS
,
dlsch_pdu
->
targetCodeRate
);
if
(
dlsch_pdu
->
TBS
==
0
)
{
LOG_E
(
MAC
,
"Invalid TBS = 0. Probably caused by missed detection of DCI
\n
"
);
return
-
1
;
}
// TBS_LBRM according to section 5.4.2.1 of 38.212
AssertFatal
(
sc_info
->
maxMIMO_Layers_PDSCH
!=
NULL
,
"Option with max MIMO layers not configured is not supported
\n
"
);
int
nl_tbslbrm
=
*
sc_info
->
maxMIMO_Layers_PDSCH
<
4
?
*
sc_info
->
maxMIMO_Layers_PDSCH
:
4
;
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
View file @
20cd6d95
...
...
@@ -763,7 +763,14 @@ int nr_config_pusch_pdu(NR_UE_MAC_INST_t *mac,
pusch_config_pdu
->
target_code_rate
=
mac
->
ul_harq_info
[
pid
].
R
;
pusch_config_pdu
->
pusch_data
.
tb_size
=
mac
->
ul_harq_info
[
pid
].
TBS
;
}
pusch_config_pdu
->
ldpcBaseGraph
=
get_BG
(
pusch_config_pdu
->
pusch_data
.
tb_size
<<
3
,
pusch_config_pdu
->
target_code_rate
);
if
(
pusch_config_pdu
->
pusch_data
.
tb_size
==
0
)
{
LOG_E
(
MAC
,
"Invalid TBS = 0. Probably caused by missed detection of DCI
\n
"
);
return
-
1
;
}
return
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