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
4a763d14
Commit
4a763d14
authored
Jan 18, 2021
by
Melissa Elkadi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Utilizing local pdu_size variable
parent
d0e380da
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
openair2/PHY_INTERFACE/phy_stub_UE.c
openair2/PHY_INTERFACE/phy_stub_UE.c
+4
-3
No files found.
openair2/PHY_INTERFACE/phy_stub_UE.c
View file @
4a763d14
...
...
@@ -1942,7 +1942,8 @@ char *nfapi_ul_config_req_to_string(nfapi_ul_config_request_t *req)
bool
check_drop_tb
(
int
sf
,
uint16_t
rnti
)
{
if
(
sf_rnti_mcs
[
sf
].
pdu_size
<=
0
)
int
pdu_size
=
sf_rnti_mcs
[
sf
].
pdu_size
;
if
(
pdu_size
<=
0
)
{
LOG_E
(
MAC
,
"%s: sf_rnti_mcs[%d].pdu_size = 0
\n
"
,
__FUNCTION__
,
sf
);
abort
();
...
...
@@ -1964,16 +1965,16 @@ char *nfapi_ul_config_req_to_string(nfapi_ul_config_request_t *req)
bool
drop_tb
(
int
sf
,
uint16_t
rnti
)
{
int
pdu_size
=
sf_rnti_mcs
[
sf
].
pdu_size
;
assert
(
sf
<
10
&&
sf
>=
0
);
if
(
sf_rnti_mcs
[
sf
].
pdu_size
<=
0
)
if
(
pdu_size
<=
0
)
{
LOG_E
(
MAC
,
"%s: sf_rnti_mcs[%d].pdu_size = 0
\n
"
,
__FUNCTION__
,
sf
);
}
uint8_t
mcs
=
99
;
int
n
=
0
;
int
pdu_size
=
sf_rnti_mcs
[
sf
].
pdu_size
;
CHECK_INDEX
(
sf_rnti_mcs
[
sf
].
rnti
,
pdu_size
);
CHECK_INDEX
(
sf_rnti_mcs
[
sf
].
mcs
,
pdu_size
);
CHECK_INDEX
(
sf_rnti_mcs
[
sf
].
drop_flag
,
pdu_size
);
...
...
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