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
Michael Black
OpenXG-RAN
Commits
02012e77
Commit
02012e77
authored
3 years ago
by
cig
Committed by
Thomas Schlichter
3 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor MAC UE fixes
- set constant variables to const
parent
021788c7
Changes
2
Hide 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 @
02012e77
...
...
@@ -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
);
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
;
NR_RACH_ConfigCommon_t
*
setup
;
...
...
@@ -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__
);
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
;
NR_MAC_SUBHEADER_SHORT
*
header
=
(
NR_MAC_SUBHEADER_SHORT
*
)
pdu
;
pdu
+=
sh_size
;
...
...
This diff is collapsed.
Click to expand it.
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
View file @
02012e77
...
...
@@ -1990,7 +1990,7 @@ uint8_t nr_ue_get_sdu(module_id_t module_idP,
uint16_t
num_sdus
=
0
;
uint16_t
sdu_length_total
=
0
;
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
uint8_t
*
pdu
=
ulsch_buffer
;
...
...
This diff is collapsed.
Click to expand it.
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