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
7b9f53e9
Commit
7b9f53e9
authored
Mar 21, 2022
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
option for identity matrix if xp is 1
parent
7bda635e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
5 deletions
+14
-5
openair2/LAYER2/NR_MAC_gNB/config.c
openair2/LAYER2/NR_MAC_gNB/config.c
+3
-3
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
+1
-0
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
+6
-1
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
+2
-1
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
+2
-0
No files found.
openair2/LAYER2/NR_MAC_gNB/config.c
View file @
7b9f53e9
...
...
@@ -137,11 +137,10 @@ void process_CellGroup(NR_CellGroupConfig_t *CellGroup, NR_UE_sched_ctrl_t *sche
}
void
config_common
(
int
Mod_idP
,
int
ssb_SubcarrierOffset
,
rrc_pdsch_AntennaPorts_t
dl_antenna_ports_struct
,
int
pusch_AntennaPorts
,
NR_ServingCellConfigCommon_t
*
scc
)
{
void
config_common
(
int
Mod_idP
,
int
ssb_SubcarrierOffset
,
int
pdsch_AntennaPorts
,
int
pusch_AntennaPorts
,
NR_ServingCellConfigCommon_t
*
scc
)
{
nfapi_nr_config_request_scf_t
*
cfg
=
&
RC
.
nrmac
[
Mod_idP
]
->
config
[
0
];
RC
.
nrmac
[
Mod_idP
]
->
common_channels
[
0
].
ServingCellConfigCommon
=
scc
;
int
pdsch_AntennaPorts
=
dl_antenna_ports_struct
.
N1
*
dl_antenna_ports_struct
.
N2
*
dl_antenna_ports_struct
.
XP
;
// Carrier configuration
...
...
@@ -465,9 +464,10 @@ int rrc_mac_config_req_gNB(module_id_t Mod_idP,
LOG_I
(
NR_MAC
,
"Configuring common parameters from NR ServingCellConfig
\n
"
);
RC
.
nrmac
[
Mod_idP
]
->
pdsch_antenna_ports
=
pdsch_AntennaPorts
.
N1
*
pdsch_AntennaPorts
.
N2
*
pdsch_AntennaPorts
.
XP
;
config_common
(
Mod_idP
,
ssb_SubcarrierOffset
,
pdsch_AntennaP
orts
,
RC
.
nrmac
[
Mod_idP
]
->
pdsch_antenna_p
orts
,
pusch_AntennaPorts
,
scc
);
LOG_D
(
NR_MAC
,
"%s() %s:%d RC.nrmac[Mod_idP]->if_inst->NR_PHY_config_req:%p
\n
"
,
__FUNCTION__
,
__FILE__
,
__LINE__
,
RC
.
nrmac
[
Mod_idP
]
->
if_inst
->
NR_PHY_config_req
);
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
View file @
7b9f53e9
...
...
@@ -1183,6 +1183,7 @@ void nr_schedule_ue_spec(module_id_t module_id,
nrOfLayers
,
csi_report
->
N1
,
csi_report
->
N2
,
gNB_mac
->
pdsch_antenna_ports
,
csi_report
->
codebook_mode
);
}
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
View file @
7b9f53e9
...
...
@@ -149,11 +149,16 @@ uint8_t set_dl_nrOfLayers(NR_UE_sched_ctrl_t *sched_ctrl) {
uint16_t
set_pm_index
(
NR_UE_sched_ctrl_t
*
sched_ctrl
,
int
layers
,
int
N1
,
int
N2
,
int
config_file_ant_ports
,
int
codebook_mode
)
{
int
antenna_ports
=
(
N1
*
N2
)
<<
1
;
if
(
antenna_ports
!=
config_file_ant_ports
)
return
0
;
//identity matrix
int
x1
=
sched_ctrl
->
CSI_report
.
cri_ri_li_pmi_cqi_report
.
pmi_x1
;
int
x2
=
sched_ctrl
->
CSI_report
.
cri_ri_li_pmi_cqi_report
.
pmi_x2
;
int
antenna_ports
=
(
N1
*
N2
)
<<
1
;
LOG_D
(
NR_MAC
,
"PMI report: x1 %d x2 %d
\n
"
,
x1
,
x2
)
;
sched_ctrl
->
set_pmi
=
false
;
...
...
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
View file @
7b9f53e9
...
...
@@ -40,7 +40,7 @@ void mac_top_init_gNB(void);
void
config_common
(
int
Mod_idP
,
int
ssb_SubcarrierOffset
,
rrc_pdsch_AntennaPorts_
t
pdsch_AntennaPorts
,
in
t
pdsch_AntennaPorts
,
int
pusch_AntennaPorts
,
NR_ServingCellConfigCommon_t
*
scc
);
...
...
@@ -458,6 +458,7 @@ void set_dl_dmrs_ports(NR_pdsch_semi_static_t *ps);
uint16_t
set_pm_index
(
NR_UE_sched_ctrl_t
*
sched_ctrl
,
int
layers
,
int
N1
,
int
N2
,
int
config_file_ant_ports
,
int
codebook_mode
);
void
set_dl_mcs
(
NR_sched_pdsch_t
*
sched_pdsch
,
...
...
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
View file @
7b9f53e9
...
...
@@ -806,6 +806,8 @@ typedef struct gNB_MAC_INST_s {
uint16_t
cset0_bwp_size
;
NR_Type0_PDCCH_CSS_config_t
type0_PDCCH_CSS_config
[
64
];
int
pdsch_antenna_ports
;
bool
first_MIB
;
double
dl_bler_target_upper
;
double
dl_bler_target_lower
;
...
...
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