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
promise
OpenXG-RAN
Commits
943f907a
Commit
943f907a
authored
Mar 05, 2020
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Send correct ULSCH CQI indication message in L2 sim
parent
b34a0e2f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
12 deletions
+17
-12
openair2/PHY_INTERFACE/phy_stub_UE.c
openair2/PHY_INTERFACE/phy_stub_UE.c
+17
-12
No files found.
openair2/PHY_INTERFACE/phy_stub_UE.c
View file @
943f907a
...
...
@@ -241,27 +241,32 @@ void fill_ulsch_cqi_indication_UE_MAC(int Mod_id, uint16_t frame,uint8_t subfram
nfapi_cqi_indication_pdu_t
*
pdu
=
&
UL_INFO
->
cqi_ind
.
cqi_indication_body
.
cqi_pdu_list
[
UL_INFO
->
cqi_ind
.
cqi_indication_body
.
number_of_cqis
];
nfapi_cqi_indication_raw_pdu_t
*
raw_pdu
=
&
UL_INFO
->
cqi_ind
.
cqi_indication_body
.
cqi_raw_pdu_list
[
UL_INFO
->
cqi_ind
.
cqi_indication_body
.
number_of_cqis
];
UL_INFO
->
cqi_ind
.
sfn_sf
=
frame
<<
4
|
subframe
;
// because of nfapi_vnf.c:733, set message id to 0, not NFAPI_RX_CQI_INDICATION;
UL_INFO
->
cqi_ind
.
header
.
message_id
=
0
;
UL_INFO
->
cqi_ind
.
cqi_indication_body
.
tl
.
tag
=
NFAPI_CQI_INDICATION_BODY_TAG
;
pdu
->
rx_ue_information
.
tl
.
tag
=
NFAPI_RX_UE_INFORMATION_TAG
;
pdu
->
rx_ue_information
.
rnti
=
rnti
;
// Since we assume that CRC flag is always 0 (ACK) I guess that data_offset should always be 0.
pdu
->
cqi_indication_rel
9
.
data_offset
=
0
;
pdu
->
cqi_indication_rel
8
.
data_offset
=
0
;
// by default set O to rank 1 value
//pdu->cqi_indication_rel
9
.length = (ulsch_harq->Or1>>3) + ((ulsch_harq->Or1&7) > 0 ? 1 : 0);
//pdu->cqi_indication_rel
8
.length = (ulsch_harq->Or1>>3) + ((ulsch_harq->Or1&7) > 0 ? 1 : 0);
// Not useful field for our case
pdu
->
cqi_indication_rel
9
.
tl
.
tag
=
NFAPI_CQI_INDICATION_REL9
_TAG
;
pdu
->
cqi_indication_rel
9
.
length
=
0
;
pdu
->
cqi_indication_rel
9
.
ri
[
0
]
=
0
;
pdu
->
cqi_indication_rel
8
.
tl
.
tag
=
NFAPI_CQI_INDICATION_REL8
_TAG
;
pdu
->
cqi_indication_rel
8
.
length
=
1
;
pdu
->
cqi_indication_rel
8
.
ri
=
0
;
pdu
->
cqi_indication_rel9
.
timing_advance
=
0
;
pdu
->
cqi_indication_rel9
.
number_of_cc_reported
=
1
;
pdu
->
cqi_indication_rel8
.
timing_advance
=
0
;
//pdu->cqi_indication_rel8.number_of_cc_reported = 1;
pdu
->
ul_cqi_information
.
tl
.
tag
=
NFAPI_UL_CQI_INFORMATION_TAG
;
pdu
->
ul_cqi_information
.
channel
=
1
;
// PUSCH
// Not sure how to substitute this. This should be the actual CQI value? So can
// we hardcode it to a specific value?
//memcpy((void*)raw_pdu->pdu,ulsch_harq->o,pdu->cqi_indication_rel9.length);
raw_pdu
->
pdu
[
0
]
=
7
;
// eNB_scheduler_primitives.c:4839: the upper four bits seem to be the CQI
const
int
cqi
=
15
;
raw_pdu
->
pdu
[
0
]
=
cqi
<<
4
;
...
...
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