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
wangjie
OpenXG-RAN
Commits
2c73f724
Commit
2c73f724
authored
Dec 15, 2020
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor nr_write_ce_dlsch_pdu(): contention resolution timer
parent
9b41481e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
+5
-9
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
View file @
2c73f724
...
@@ -68,9 +68,6 @@ int nr_write_ce_dlsch_pdu(module_id_t module_idP,
...
@@ -68,9 +68,6 @@ int nr_write_ce_dlsch_pdu(module_id_t module_idP,
gNB_MAC_INST
*
gNB
=
RC
.
nrmac
[
module_idP
];
gNB_MAC_INST
*
gNB
=
RC
.
nrmac
[
module_idP
];
NR_MAC_SUBHEADER_FIXED
*
mac_pdu_ptr
=
(
NR_MAC_SUBHEADER_FIXED
*
)
mac_pdu
;
NR_MAC_SUBHEADER_FIXED
*
mac_pdu_ptr
=
(
NR_MAC_SUBHEADER_FIXED
*
)
mac_pdu
;
int
mac_ce_size
;
int
mac_ce_size
;
// MAC CEs
uint8_t
mac_header_control_elements
[
16
],
*
ce_ptr
;
ce_ptr
=
&
mac_header_control_elements
[
0
];
// DRX command subheader (MAC CE size 0)
// DRX command subheader (MAC CE size 0)
if
(
drx_cmd
!=
255
)
{
if
(
drx_cmd
!=
255
)
{
...
@@ -104,6 +101,9 @@ int nr_write_ce_dlsch_pdu(module_id_t module_idP,
...
@@ -104,6 +101,9 @@ int nr_write_ce_dlsch_pdu(module_id_t module_idP,
// Contention resolution fixed subheader and MAC CE
// Contention resolution fixed subheader and MAC CE
if
(
ue_cont_res_id
)
{
if
(
ue_cont_res_id
)
{
const
int
mac_ce_size
=
6
;
if
(
size
<
mac_ce_size
+
1
)
return
(
unsigned
char
*
)
mac_pdu_ptr
-
mac_pdu
;
mac_pdu_ptr
->
R
=
0
;
mac_pdu_ptr
->
R
=
0
;
mac_pdu_ptr
->
LCID
=
DL_SCH_LCID_CON_RES_ID
;
mac_pdu_ptr
->
LCID
=
DL_SCH_LCID_CON_RES_ID
;
mac_pdu_ptr
++
;
mac_pdu_ptr
++
;
...
@@ -113,12 +113,8 @@ int nr_write_ce_dlsch_pdu(module_id_t module_idP,
...
@@ -113,12 +113,8 @@ int nr_write_ce_dlsch_pdu(module_id_t module_idP,
LOG_T
(
MAC
,
"[gNB ][RAPROC] Generate contention resolution msg: %x.%x.%x.%x.%x.%x
\n
"
,
LOG_T
(
MAC
,
"[gNB ][RAPROC] Generate contention resolution msg: %x.%x.%x.%x.%x.%x
\n
"
,
ue_cont_res_id
[
0
],
ue_cont_res_id
[
1
],
ue_cont_res_id
[
2
],
ue_cont_res_id
[
0
],
ue_cont_res_id
[
1
],
ue_cont_res_id
[
2
],
ue_cont_res_id
[
3
],
ue_cont_res_id
[
4
],
ue_cont_res_id
[
5
]);
ue_cont_res_id
[
3
],
ue_cont_res_id
[
4
],
ue_cont_res_id
[
5
]);
// Copying bytes (6 octects) to CEs pointer
// Copying bytes (6 octets) to mac pdu pointer
mac_ce_size
=
6
;
memcpy
(
mac_pdu_ptr
,
ue_cont_res_id
,
mac_ce_size
);
memcpy
(
ce_ptr
,
ue_cont_res_id
,
mac_ce_size
);
// Copying bytes for MAC CEs to mac pdu pointer
memcpy
((
void
*
)
mac_pdu_ptr
,
(
void
*
)
ce_ptr
,
mac_ce_size
);
ce_ptr
+=
mac_ce_size
;
mac_pdu_ptr
+=
(
unsigned
char
)
mac_ce_size
;
mac_pdu_ptr
+=
(
unsigned
char
)
mac_ce_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