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
zzha zzha
OpenXG-RAN
Commits
27bac2f2
Commit
27bac2f2
authored
Apr 13, 2022
by
rmagueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The RI, PMI and CQI estimated at the UE are sent by the UE and correctly received by the gNB
parent
cd6ee6a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
8 deletions
+21
-8
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+21
-8
No files found.
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
27bac2f2
...
...
@@ -2590,7 +2590,7 @@ uint8_t get_csirs_RI_PMI_CQI_payload(NR_UE_MAC_INST_t *mac,
NR_CSI_ResourceConfigId_t
csi_ResourceConfigId
,
NR_CSI_MeasConfig_t
*
csi_MeasConfig
)
{
int
bits
=
0
;
int
n_
bits
=
0
;
uint32_t
temp_payload
=
0
;
for
(
int
csi_resourceidx
=
0
;
csi_resourceidx
<
csi_MeasConfig
->
csi_ResourceConfigToAddModList
->
list
.
count
;
csi_resourceidx
++
)
{
...
...
@@ -2607,14 +2607,27 @@ uint8_t get_csirs_RI_PMI_CQI_payload(NR_UE_MAC_INST_t *mac,
int
cri_bitlen
=
csi_report
->
csi_meas_bitlen
.
cri_bitlen
;
int
ri_bitlen
=
csi_report
->
csi_meas_bitlen
.
ri_bitlen
;
int
pmi_
bitlen
=
csi_report
->
csi_meas_bitlen
.
pmi_x1_bitlen
[
*
mac
->
csirs_measurements
.
rank_indicator
]
+
csi_report
->
csi_meas_bitlen
.
pmi_x2_bitlen
[
*
mac
->
csirs_measurements
.
rank_indicator
];
int
pmi_
x1_bitlen
=
csi_report
->
csi_meas_bitlen
.
pmi_x1_bitlen
[
*
mac
->
csirs_measurements
.
rank_indicator
];
int
pmi_x2_bitlen
=
csi_report
->
csi_meas_bitlen
.
pmi_x2_bitlen
[
*
mac
->
csirs_measurements
.
rank_indicator
];
int
cqi_bitlen
=
csi_report
->
csi_meas_bitlen
.
cqi_bitlen
[
*
mac
->
csirs_measurements
.
rank_indicator
];
LOG_I
(
NR_MAC
,
"cri_bitlen = %d
\n
"
,
cri_bitlen
);
LOG_I
(
NR_MAC
,
"ri_bitlen = %d
\n
"
,
ri_bitlen
);
LOG_I
(
NR_MAC
,
"pmi_bitlen = %d
\n
"
,
pmi_bitlen
);
LOG_I
(
NR_MAC
,
"cqi_bitlen = %d
\n
"
,
cqi_bitlen
);
n_bits
=
cri_bitlen
+
ri_bitlen
+
pmi_x1_bitlen
+
pmi_x2_bitlen
+
cqi_bitlen
;
// TODO: Improvements will be needed to cri_bitlen>0 and pmi_x1_bitlen>0
temp_payload
=
(
*
mac
->
csirs_measurements
.
rank_indicator
<<
(
cri_bitlen
+
cqi_bitlen
+
pmi_x2_bitlen
+
pmi_x1_bitlen
))
|
(
*
mac
->
csirs_measurements
.
i1
<<
(
cri_bitlen
+
cqi_bitlen
+
pmi_x2_bitlen
))
|
(
*
mac
->
csirs_measurements
.
i2
<<
(
cri_bitlen
+
cqi_bitlen
))
|
(
*
mac
->
csirs_measurements
.
cqi
<<
cri_bitlen
)
|
0
;
reverse_n_bits
((
uint8_t
*
)
&
temp_payload
,
n_bits
);
LOG_D
(
NR_MAC
,
"cri_bitlen = %d
\n
"
,
cri_bitlen
);
LOG_D
(
NR_MAC
,
"ri_bitlen = %d
\n
"
,
ri_bitlen
);
LOG_D
(
NR_MAC
,
"pmi_x1_bitlen = %d
\n
"
,
pmi_x1_bitlen
);
LOG_D
(
NR_MAC
,
"pmi_x2_bitlen = %d
\n
"
,
pmi_x2_bitlen
);
LOG_D
(
NR_MAC
,
"cqi_bitlen = %d
\n
"
,
cqi_bitlen
);
LOG_D
(
NR_MAC
,
"csi_part1_payload = 0x%x
\n
"
,
temp_payload
);
break
;
}
...
...
@@ -2622,7 +2635,7 @@ uint8_t get_csirs_RI_PMI_CQI_payload(NR_UE_MAC_INST_t *mac,
}
}
pucch
->
csi_part1_payload
=
temp_payload
;
return
bits
;
return
n_
bits
;
}
// returns index from RSRP
...
...
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