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
678fada4
Commit
678fada4
authored
Dec 15, 2020
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor nr_write_ce_dlsch_pdu(): SP CSI reporting on PUCCH Activation/Deactivation MAC CE
parent
8ba9e585
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
14 deletions
+10
-14
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
+10
-14
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
View file @
678fada4
...
@@ -136,24 +136,20 @@ int nr_write_ce_dlsch_pdu(module_id_t module_idP,
...
@@ -136,24 +136,20 @@ int nr_write_ce_dlsch_pdu(module_id_t module_idP,
//TS 38.321 Sec 6.1.3.16, SP CSI reporting on PUCCH Activation/Deactivation MAC CE
//TS 38.321 Sec 6.1.3.16, SP CSI reporting on PUCCH Activation/Deactivation MAC CE
if
(
ue_sched_ctl
->
UE_mac_ce_ctrl
.
SP_CSI_reporting_pucch
.
is_scheduled
)
{
if
(
ue_sched_ctl
->
UE_mac_ce_ctrl
.
SP_CSI_reporting_pucch
.
is_scheduled
)
{
const
int
mac_ce_size
=
sizeof
(
NR_PUCCH_CSI_REPORTING
);
if
(
size
<
mac_ce_size
+
1
)
return
(
unsigned
char
*
)
mac_pdu_ptr
-
mac_pdu
;
//filling the subheader
//filling the subheader
mac_pdu_ptr
->
R
=
0
;
mac_pdu_ptr
->
R
=
0
;
mac_pdu_ptr
->
LCID
=
DL_SCH_LCID_SP_CSI_REP_PUCCH_ACT
;
mac_pdu_ptr
->
LCID
=
DL_SCH_LCID_SP_CSI_REP_PUCCH_ACT
;
mac_pdu_ptr
++
;
mac_pdu_ptr
++
;
//creating the instance of CE structure
((
NR_PUCCH_CSI_REPORTING
*
)
mac_pdu_ptr
)
->
BWP_Id
=
(
ue_sched_ctl
->
UE_mac_ce_ctrl
.
SP_CSI_reporting_pucch
.
bwpId
)
&
0x3
;
//extracting LSB 2 bibs
NR_PUCCH_CSI_REPORTING
nr_PUCCH_CSI_reportingActDeact
;
((
NR_PUCCH_CSI_REPORTING
*
)
mac_pdu_ptr
)
->
ServingCellId
=
(
ue_sched_ctl
->
UE_mac_ce_ctrl
.
SP_CSI_reporting_pucch
.
servingCellId
)
&
0x1F
;
//extracting LSB 5 bits
//filling the CE structure
((
NR_PUCCH_CSI_REPORTING
*
)
mac_pdu_ptr
)
->
S0
=
ue_sched_ctl
->
UE_mac_ce_ctrl
.
SP_CSI_reporting_pucch
.
s0tos3_actDeact
[
0
];
nr_PUCCH_CSI_reportingActDeact
.
BWP_Id
=
(
ue_sched_ctl
->
UE_mac_ce_ctrl
.
SP_CSI_reporting_pucch
.
bwpId
)
&
0x3
;
//extracting LSB 2 bibs
((
NR_PUCCH_CSI_REPORTING
*
)
mac_pdu_ptr
)
->
S1
=
ue_sched_ctl
->
UE_mac_ce_ctrl
.
SP_CSI_reporting_pucch
.
s0tos3_actDeact
[
1
];
nr_PUCCH_CSI_reportingActDeact
.
ServingCellId
=
(
ue_sched_ctl
->
UE_mac_ce_ctrl
.
SP_CSI_reporting_pucch
.
servingCellId
)
&
0x1F
;
//extracting LSB 5 bits
((
NR_PUCCH_CSI_REPORTING
*
)
mac_pdu_ptr
)
->
S2
=
ue_sched_ctl
->
UE_mac_ce_ctrl
.
SP_CSI_reporting_pucch
.
s0tos3_actDeact
[
2
];
nr_PUCCH_CSI_reportingActDeact
.
S0
=
ue_sched_ctl
->
UE_mac_ce_ctrl
.
SP_CSI_reporting_pucch
.
s0tos3_actDeact
[
0
];
((
NR_PUCCH_CSI_REPORTING
*
)
mac_pdu_ptr
)
->
S3
=
ue_sched_ctl
->
UE_mac_ce_ctrl
.
SP_CSI_reporting_pucch
.
s0tos3_actDeact
[
3
];
nr_PUCCH_CSI_reportingActDeact
.
S1
=
ue_sched_ctl
->
UE_mac_ce_ctrl
.
SP_CSI_reporting_pucch
.
s0tos3_actDeact
[
1
];
((
NR_PUCCH_CSI_REPORTING
*
)
mac_pdu_ptr
)
->
R2
=
0
;
nr_PUCCH_CSI_reportingActDeact
.
S2
=
ue_sched_ctl
->
UE_mac_ce_ctrl
.
SP_CSI_reporting_pucch
.
s0tos3_actDeact
[
2
];
nr_PUCCH_CSI_reportingActDeact
.
S3
=
ue_sched_ctl
->
UE_mac_ce_ctrl
.
SP_CSI_reporting_pucch
.
s0tos3_actDeact
[
3
];
nr_PUCCH_CSI_reportingActDeact
.
R2
=
0
;
mac_ce_size
=
sizeof
(
NR_PUCCH_CSI_REPORTING
);
// Copying MAC CE data to the mac pdu pointer
memcpy
((
void
*
)
mac_pdu_ptr
,
(
void
*
)
&
nr_PUCCH_CSI_reportingActDeact
,
mac_ce_size
);
//incrementing the PDU pointer
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