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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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-RAN
Commits
f338d6d6
Commit
f338d6d6
authored
Feb 08, 2021
by
guhan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed rrc dependency, code rearrangement
parent
5d4f8151
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
542 additions
and
732 deletions
+542
-732
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
+0
-70
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
+542
-645
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
+0
-16
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
+0
-1
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
View file @
f338d6d6
...
@@ -1830,76 +1830,6 @@ bool find_free_CCE(module_id_t module_id,
...
@@ -1830,76 +1830,6 @@ bool find_free_CCE(module_id_t module_id,
return
true
;
return
true
;
}
}
int
checkTargetSSBInFirst64TCIStates_pdschConfig
(
int
ssb_index_t
,
int
Mod_idP
,
int
UE_id
)
{
NR_UE_info_t
*
UE_info
=
&
RC
.
nrmac
[
Mod_idP
]
->
UE_info
;
NR_CellGroupConfig_t
*
secondaryCellGroup
=
UE_info
->
secondaryCellGroup
[
UE_id
]
;
int
nb_tci_states
=
secondaryCellGroup
->
spCellConfig
->
spCellConfigDedicated
->
initialDownlinkBWP
->
pdsch_Config
->
choice
.
setup
->
tci_StatesToAddModList
->
list
.
count
;
NR_TCI_State_t
*
tci
=
NULL
;
int
i
;
for
(
i
=
0
;
i
<
nb_tci_states
&&
i
<
64
;
i
++
)
{
tci
=
(
NR_TCI_State_t
*
)
secondaryCellGroup
->
spCellConfig
->
spCellConfigDedicated
->
initialDownlinkBWP
->
pdsch_Config
->
choice
.
setup
->
tci_StatesToAddModList
->
list
.
array
[
i
];
if
(
tci
!=
NULL
)
{
if
(
tci
->
qcl_Type1
.
referenceSignal
.
present
==
NR_QCL_Info__referenceSignal_PR_ssb
)
{
if
(
tci
->
qcl_Type1
.
referenceSignal
.
choice
.
ssb
==
ssb_index_t
)
return
tci
->
tci_StateId
;
// returned TCI state ID
}
// if type2 is configured
else
if
(
tci
->
qcl_Type2
!=
NULL
&&
tci
->
qcl_Type2
->
referenceSignal
.
present
==
NR_QCL_Info__referenceSignal_PR_ssb
)
{
if
(
tci
->
qcl_Type2
->
referenceSignal
.
choice
.
ssb
==
ssb_index_t
)
return
tci
->
tci_StateId
;
// returned TCI state ID
}
else
LOG_I
(
MAC
,
"SSB index is not found in first 64 TCI states of TCI_statestoAddModList[%d]"
,
i
);
}
}
// tci state not identified in first 64 TCI States of PDSCH Config
return
-
1
;
}
int
checkTargetSSBInTCIStates_pdcchConfig
(
int
ssb_index_t
,
int
Mod_idP
,
int
UE_id
)
{
NR_UE_info_t
*
UE_info
=
&
RC
.
nrmac
[
Mod_idP
]
->
UE_info
;
NR_CellGroupConfig_t
*
secondaryCellGroup
=
UE_info
->
secondaryCellGroup
[
UE_id
]
;
int
nb_tci_states
=
secondaryCellGroup
->
spCellConfig
->
spCellConfigDedicated
->
initialDownlinkBWP
->
pdsch_Config
->
choice
.
setup
->
tci_StatesToAddModList
->
list
.
count
;
NR_TCI_State_t
*
tci
=
NULL
;
NR_TCI_StateId_t
*
tci_id
=
NULL
;
int
bwp_id
=
1
;
NR_BWP_Downlink_t
*
bwp
=
secondaryCellGroup
->
spCellConfig
->
spCellConfigDedicated
->
downlinkBWP_ToAddModList
->
list
.
array
[
bwp_id
-
1
];
NR_ControlResourceSet_t
*
coreset
=
bwp
->
bwp_Dedicated
->
pdcch_Config
->
choice
.
setup
->
controlResourceSetToAddModList
->
list
.
array
[
bwp_id
-
1
];
int
i
;
int
flag
=
0
;
int
tci_stateID
=
-
1
;
for
(
i
=
0
;
i
<
nb_tci_states
&&
i
<
128
;
i
++
)
{
tci
=
(
NR_TCI_State_t
*
)
secondaryCellGroup
->
spCellConfig
->
spCellConfigDedicated
->
initialDownlinkBWP
->
pdsch_Config
->
choice
.
setup
->
tci_StatesToAddModList
->
list
.
array
[
i
];
if
(
tci
!=
NULL
&&
tci
->
qcl_Type1
.
referenceSignal
.
present
==
NR_QCL_Info__referenceSignal_PR_ssb
)
{
if
(
tci
->
qcl_Type1
.
referenceSignal
.
choice
.
ssb
==
ssb_index_t
)
{
flag
=
1
;
tci_stateID
=
tci
->
tci_StateId
;
break
;
}
else
if
(
tci
->
qcl_Type2
!=
NULL
&&
tci
->
qcl_Type2
->
referenceSignal
.
present
==
NR_QCL_Info__referenceSignal_PR_ssb
)
{
flag
=
1
;
tci_stateID
=
tci
->
tci_StateId
;
break
;
}
}
if
(
flag
!=
0
&&
tci_stateID
!=
-
1
&&
coreset
!=
NULL
)
{
for
(
i
=
0
;
i
<
64
&&
i
<
coreset
->
tci_StatesPDCCH_ToAddList
->
list
.
count
;
i
++
)
{
tci_id
=
coreset
->
tci_StatesPDCCH_ToAddList
->
list
.
array
[
i
];
if
(
tci_id
!=
NULL
&&
*
tci_id
==
tci_stateID
)
return
tci_stateID
;
}
}
}
// Need to implement once configuration is received
return
-
1
;
}
/*void fill_nfapi_coresets_and_searchspaces(NR_CellGroupConfig_t *cg,
/*void fill_nfapi_coresets_and_searchspaces(NR_CellGroupConfig_t *cg,
nfapi_nr_coreset_t *coreset,
nfapi_nr_coreset_t *coreset,
nfapi_nr_search_space_t *search_space) {
nfapi_nr_search_space_t *search_space) {
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
View file @
f338d6d6
This diff is collapsed.
Click to expand it.
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
View file @
f338d6d6
...
@@ -196,22 +196,6 @@ bool nr_acknack_scheduling(int Mod_idP,
...
@@ -196,22 +196,6 @@ bool nr_acknack_scheduling(int Mod_idP,
frame_t
frameP
,
frame_t
frameP
,
sub_frame_t
slotP
);
sub_frame_t
slotP
);
int
checkTargetSSBInTCIStates_pdcchConfig
(
int
ssb_index_t
,
int
Mod_idP
,
int
UE_id
);
int
checkTargetSSBInFirst64TCIStates_pdschConfig
(
int
ssb_index_t
,
int
Mod_idP
,
int
UE_id
);
int
get_measured_rsrp
(
uint8_t
index
);
int
get_diff_rsrp
(
uint8_t
index
,
int
strongest_rsrp
);
void
extract_pucch_csi_report
(
NR_CSI_MeasConfig_t
*
csi_MeasConfig
,
const
nfapi_nr_uci_pucch_pdu_format_2_3_4_t
*
uci_pdu
,
NR_UE_sched_ctrl_t
*
sched_ctrl
,
frame_t
frame
,
slot_t
slot
,
NR_SubcarrierSpacing_t
scs
,
int
UE_id
,
module_id_t
Mod_idP
);
void
get_pdsch_to_harq_feedback
(
int
Mod_idP
,
void
get_pdsch_to_harq_feedback
(
int
Mod_idP
,
int
UE_id
,
int
UE_id
,
NR_SearchSpace__searchSpaceType_PR
ss_type
,
NR_SearchSpace__searchSpaceType_PR
ss_type
,
...
...
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
View file @
f338d6d6
...
@@ -52,7 +52,6 @@ extern int oai_nfapi_rx_ind(nfapi_rx_indication_t *ind);
...
@@ -52,7 +52,6 @@ extern int oai_nfapi_rx_ind(nfapi_rx_indication_t *ind);
extern
uint8_t
nfapi_mode
;
extern
uint8_t
nfapi_mode
;
extern
uint16_t
sf_ahead
;
extern
uint16_t
sf_ahead
;
extern
uint16_t
sl_ahead
;
extern
uint16_t
sl_ahead
;
void
tci_handling
(
module_id_t
Mod_idP
,
int
UE_id
,
int
CC_id
,
NR_UE_sched_ctrl_t
*
sched_ctrl
,
frame_t
frame
,
slot_t
slot
);
void
handle_nr_rach
(
NR_UL_IND_t
*
UL_info
)
{
void
handle_nr_rach
(
NR_UL_IND_t
*
UL_info
)
{
...
...
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