Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
OpenXG
OpenXG UE
Commits
4f93619e
Commit
4f93619e
authored
Jul 29, 2021
by
cig
Committed by
Thomas Schlichter
Aug 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor MAC UE fixes
- set constant variables to const
parent
c3b7d35d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c
+3
-3
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
+1
-1
No files found.
openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c
View file @
4f93619e
...
@@ -497,8 +497,6 @@ uint8_t nr_ue_get_rach(NR_PRACH_RESOURCES_t *prach_resources,
...
@@ -497,8 +497,6 @@ uint8_t nr_ue_get_rach(NR_PRACH_RESOURCES_t *prach_resources,
NR_UE_MAC_INST_t
*
mac
=
get_mac_inst
(
mod_id
);
NR_UE_MAC_INST_t
*
mac
=
get_mac_inst
(
mod_id
);
RA_config_t
*
ra
=
&
mac
->
ra
;
RA_config_t
*
ra
=
&
mac
->
ra
;
uint8_t
lcid
=
UL_SCH_LCID_CCCH
;
uint8_t
sh_size
=
sizeof
(
NR_MAC_SUBHEADER_SHORT
);
int8_t
size_sdu
=
0
;
int8_t
size_sdu
=
0
;
NR_RACH_ConfigCommon_t
*
setup
;
NR_RACH_ConfigCommon_t
*
setup
;
...
@@ -534,7 +532,9 @@ uint8_t nr_ue_get_rach(NR_PRACH_RESOURCES_t *prach_resources,
...
@@ -534,7 +532,9 @@ uint8_t nr_ue_get_rach(NR_PRACH_RESOURCES_t *prach_resources,
LOG_D
(
NR_MAC
,
"In %s: RA not active. Checking for data to transmit from upper layers...
\n
"
,
__FUNCTION__
);
LOG_D
(
NR_MAC
,
"In %s: RA not active. Checking for data to transmit from upper layers...
\n
"
,
__FUNCTION__
);
uint8_t
TBS_max
=
8
+
2
*
sh_size
;
const
uint8_t
lcid
=
UL_SCH_LCID_CCCH
;
const
uint8_t
sh_size
=
sizeof
(
NR_MAC_SUBHEADER_SHORT
);
const
uint8_t
TBS_max
=
8
+
2
*
sh_size
;
uint8_t
*
pdu
=
(
uint8_t
*
)
mac
->
CCCH_pdu
.
payload
;
uint8_t
*
pdu
=
(
uint8_t
*
)
mac
->
CCCH_pdu
.
payload
;
NR_MAC_SUBHEADER_SHORT
*
header
=
(
NR_MAC_SUBHEADER_SHORT
*
)
pdu
;
NR_MAC_SUBHEADER_SHORT
*
header
=
(
NR_MAC_SUBHEADER_SHORT
*
)
pdu
;
pdu
+=
sh_size
;
pdu
+=
sh_size
;
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
View file @
4f93619e
...
@@ -1990,7 +1990,7 @@ uint8_t nr_ue_get_sdu(module_id_t module_idP,
...
@@ -1990,7 +1990,7 @@ uint8_t nr_ue_get_sdu(module_id_t module_idP,
uint16_t
num_sdus
=
0
;
uint16_t
num_sdus
=
0
;
uint16_t
sdu_length_total
=
0
;
uint16_t
sdu_length_total
=
0
;
NR_UE_MAC_INST_t
*
mac
=
get_mac_inst
(
module_idP
);
NR_UE_MAC_INST_t
*
mac
=
get_mac_inst
(
module_idP
);
uint8_t
sh_size
=
sizeof
(
NR_MAC_SUBHEADER_LONG
);
const
uint8_t
sh_size
=
sizeof
(
NR_MAC_SUBHEADER_LONG
);
// Pointer used to build the MAC PDU by placing the RLC SDUs in the ULSCH buffer
// Pointer used to build the MAC PDU by placing the RLC SDUs in the ULSCH buffer
uint8_t
*
pdu
=
ulsch_buffer
;
uint8_t
*
pdu
=
ulsch_buffer
;
...
...
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