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
8ba9e585
Commit
8ba9e585
authored
Dec 15, 2020
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor nr_write_ce_dlsch_pdu(): TCI state indication for UE-specific PDCCH
parent
2c73f724
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
13 deletions
+8
-13
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
+8
-13
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
View file @
8ba9e585
...
@@ -120,22 +120,17 @@ int nr_write_ce_dlsch_pdu(module_id_t module_idP,
...
@@ -120,22 +120,17 @@ int nr_write_ce_dlsch_pdu(module_id_t module_idP,
//TS 38.321 Sec 6.1.3.15 TCI State indication for UE Specific PDCCH MAC CE SubPDU generation
//TS 38.321 Sec 6.1.3.15 TCI State indication for UE Specific PDCCH MAC CE SubPDU generation
if
(
ue_sched_ctl
->
UE_mac_ce_ctrl
.
pdcch_state_ind
.
is_scheduled
)
{
if
(
ue_sched_ctl
->
UE_mac_ce_ctrl
.
pdcch_state_ind
.
is_scheduled
)
{
//filling subheader
const
int
mac_ce_size
=
sizeof
(
NR_TCI_PDCCH
);
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_TCI_STATE_IND_UE_SPEC_PDCCH
;
mac_pdu_ptr
->
LCID
=
DL_SCH_LCID_TCI_STATE_IND_UE_SPEC_PDCCH
;
mac_pdu_ptr
++
;
mac_pdu_ptr
++
;
//Creating the instance of CE structure
((
NR_TCI_PDCCH
*
)
mac_pdu_ptr
)
->
CoresetId1
=
((
ue_sched_ctl
->
UE_mac_ce_ctrl
.
pdcch_state_ind
.
coresetId
)
&
0xF
)
>>
1
;
//extracting MSB 3 bits from LS nibble
NR_TCI_PDCCH
nr_UESpec_TCI_StateInd_PDCCH
;
((
NR_TCI_PDCCH
*
)
mac_pdu_ptr
)
->
ServingCellId
=
(
ue_sched_ctl
->
UE_mac_ce_ctrl
.
pdcch_state_ind
.
servingCellId
)
&
0x1F
;
//extracting LSB 5 Bits
//filling the CE structre
((
NR_TCI_PDCCH
*
)
mac_pdu_ptr
)
->
TciStateId
=
(
ue_sched_ctl
->
UE_mac_ce_ctrl
.
pdcch_state_ind
.
tciStateId
)
&
0x7F
;
//extracting LSB 7 bits
nr_UESpec_TCI_StateInd_PDCCH
.
CoresetId1
=
((
ue_sched_ctl
->
UE_mac_ce_ctrl
.
pdcch_state_ind
.
coresetId
)
&
0xF
)
>>
1
;
//extracting MSB 3 bits from LS nibble
((
NR_TCI_PDCCH
*
)
mac_pdu_ptr
)
->
CoresetId2
=
(
ue_sched_ctl
->
UE_mac_ce_ctrl
.
pdcch_state_ind
.
coresetId
)
&
0x1
;
//extracting LSB 1 bit
nr_UESpec_TCI_StateInd_PDCCH
.
ServingCellId
=
(
ue_sched_ctl
->
UE_mac_ce_ctrl
.
pdcch_state_ind
.
servingCellId
)
&
0x1F
;
//extracting LSB 5 Bits
LOG_D
(
MAC
,
"NR MAC CE TCI state indication for UE Specific PDCCH = %d
\n
"
,
((
NR_TCI_PDCCH
*
)
mac_pdu_ptr
)
->
TciStateId
);
nr_UESpec_TCI_StateInd_PDCCH
.
TciStateId
=
(
ue_sched_ctl
->
UE_mac_ce_ctrl
.
pdcch_state_ind
.
tciStateId
)
&
0x7F
;
//extracting LSB 7 bits
nr_UESpec_TCI_StateInd_PDCCH
.
CoresetId2
=
(
ue_sched_ctl
->
UE_mac_ce_ctrl
.
pdcch_state_ind
.
coresetId
)
&
0x1
;
//extracting LSB 1 bit
LOG_D
(
MAC
,
"NR MAC CE TCI state indication for UE Specific PDCCH = %d
\n
"
,
nr_UESpec_TCI_StateInd_PDCCH
.
TciStateId
);
mac_ce_size
=
sizeof
(
NR_TCI_PDCCH
);
// Copying bytes for MAC CEs to the mac pdu pointer
memcpy
((
void
*
)
mac_pdu_ptr
,
(
void
*
)
&
nr_UESpec_TCI_StateInd_PDCCH
,
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