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
canghaiwuhen
OpenXG-RAN
Commits
e5cdd46d
Commit
e5cdd46d
authored
Nov 02, 2020
by
p.shashikala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CSI payload bits inversion issue
parent
398e9a1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
+1
-0
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
+14
-1
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
View file @
e5cdd46d
...
...
@@ -285,6 +285,7 @@ void tci_handling(module_id_t Mod_idP, int UE_id, int CC_id, NR_UE_sched_ctrl_t
//if strongest measured RSRP is configured
strongest_ssb_rsrp
=
get_measured_rsrp
(
sched_ctrl
->
CSI_report
[
idx
].
choice
.
ssb_cri_report
.
RSRP
);
ssb_rsrp
[
idx
*
nb_of_csi_ssb_report
]
=
strongest_ssb_rsrp
;
LOG_I
(
MAC
,
"ssb_rsrp = %d
\n
"
,
strongest_ssb_rsrp
);
//if current ssb rsrp is greater than better rsrp
if
(
ssb_rsrp
[
idx
*
nb_of_csi_ssb_report
]
>
better_rsrp_reported
)
{
...
...
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
View file @
e5cdd46d
...
...
@@ -76,6 +76,17 @@ void handle_nr_rach(NR_UL_IND_t *UL_info) {
}
}
void
reverse_n_bits
(
uint8_t
*
value
,
uint16_t
bitlen
)
{
uint16_t
bitlen
=
bitlen
-
1
;
uint8_t
i
;
for
(
bitlen
,
i
=
0
;
bitlen
>
i
;
bitlen
--
,
i
++
)
{
if
(((
*
value
>>
bitlen
)
&
1
)
!=
((
*
value
>>
i
)
&
1
))
{
*
value
^=
(
1
<<
bitlen
);
*
value
^=
(
1
<<
i
);
}
}
}
void
extract_pucch_csi_report
(
NR_CSI_MeasConfig_t
*
csi_MeasConfig
,
nfapi_nr_uci_pucch_pdu_format_2_3_4_t
*
uci_pdu
,
NR_UE_sched_ctrl_t
*
sched_ctrl
,
...
...
@@ -94,6 +105,8 @@ void extract_pucch_csi_report ( NR_CSI_MeasConfig_t *csi_MeasConfig,
uint8_t
csi_report_id
=
0
;
memcpy
(
payload
,
uci_pdu
->
csi_part1
.
csi_part1_payload
,
payload_size
);
reverse_n_bits
(
payload
,
uci_pdu
->
csi_part1
.
csi_part1_bit_len
);
UE_list
->
csi_report_template
[
UE_id
][
csi_report_id
].
nb_of_csi_ssb_report
=
0
;
for
(
csi_report_id
=
0
;
csi_report_id
<
csi_MeasConfig
->
csi_ReportConfigToAddModList
->
list
.
count
;
csi_report_id
++
)
{
...
...
@@ -153,7 +166,7 @@ void extract_pucch_csi_report ( NR_CSI_MeasConfig_t *csi_MeasConfig,
*
payload
>>=
4
;
}
UE_list
->
csi_report_template
[
UE_id
][
csi_report_id
].
nb_of_csi_ssb_report
++
;
LOG_I
(
MAC
,
"csi_payload
= %d, rsrp
= %d
\n
"
,
payload_size
,
sched_ctrl
->
CSI_report
[
idx
].
choice
.
ssb_cri_report
.
RSRP
);
LOG_I
(
MAC
,
"csi_payload
size = %d, rsrp_id
= %d
\n
"
,
payload_size
,
sched_ctrl
->
CSI_report
[
idx
].
choice
.
ssb_cri_report
.
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