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
dc99ab29
Commit
dc99ab29
authored
Dec 17, 2019
by
wujing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ue process down in L2 FAPI Simulator mode because cqi is not sent by ue
parent
bc123817
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
openair2/PHY_INTERFACE/phy_stub_UE.c
openair2/PHY_INTERFACE/phy_stub_UE.c
+11
-0
targets/RT/USER/lte-ue.c
targets/RT/USER/lte-ue.c
+6
-1
No files found.
openair2/PHY_INTERFACE/phy_stub_UE.c
View file @
dc99ab29
...
...
@@ -239,6 +239,12 @@ 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
.
header
.
message_id
=
NFAPI_RX_CQI_INDICATION
;
UL_INFO
->
cqi_ind
.
sfn_sf
=
frame
<<
4
|
subframe
;
UL_INFO
->
cqi_ind
.
vendor_extension
=
ul_config_req
->
vendor_extension
;
UL_INFO
->
cqi_ind
.
cqi_indication_body
.
tl
.
tag
=
NFAPI_CQI_INDICATION_BODY_TAG
;
pdu
->
instance_length
=
0
;
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.
...
...
@@ -254,6 +260,8 @@ void fill_ulsch_cqi_indication_UE_MAC(int Mod_id, uint16_t frame,uint8_t subfram
pdu
->
cqi_indication_rel9
.
timing_advance
=
0
;
pdu
->
cqi_indication_rel9
.
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
...
...
@@ -890,6 +898,9 @@ int memcpy_ul_config_req (nfapi_pnf_p7_config_t* pnf_p7, nfapi_ul_config_request
ul_config_req
->
ul_config_request_body
.
tl
.
length
=
req
->
ul_config_request_body
.
tl
.
length
;
//LOG_D(MAC, "memcpy_ul_config_req 1 #ofULPDUs: %d \n", UE_mac_inst[Mod_id].ul_config_req->ul_config_request_body.number_of_pdus); //req->ul_config_request_body.number_of_pdus);
if
(
ul_config_req
->
ul_config_request_body
.
number_of_pdus
>
NB_UE_INST
){
ul_config_req
->
ul_config_request_body
.
number_of_pdus
=
NB_UE_INST
;
}
ul_config_req
->
ul_config_request_body
.
ul_config_pdu_list
=
(
nfapi_ul_config_request_pdu_t
*
)
malloc
(
req
->
ul_config_request_body
.
number_of_pdus
*
sizeof
(
nfapi_ul_config_request_pdu_t
));
for
(
int
i
=
0
;
i
<
ul_config_req
->
ul_config_request_body
.
number_of_pdus
;
i
++
)
{
ul_config_req
->
ul_config_request_body
.
ul_config_pdu_list
[
i
]
=
req
->
ul_config_request_body
.
ul_config_pdu_list
[
i
];
...
...
targets/RT/USER/lte-ue.c
View file @
dc99ab29
...
...
@@ -87,7 +87,7 @@ int init_timer_thread(void);
extern
void
oai_subframe_ind
(
uint16_t
sfn
,
uint16_t
sf
);
extern
void
multicast_link_start
(
void
(
*
rx_handlerP
)
(
unsigned
int
,
char
*
),
unsigned
char
_multicast_group
,
char
*
multicast_ifname
);
extern
int
oai_nfapi_c
rc_indication
(
nfapi_crc_indication_t
*
crc
_ind
);
extern
int
oai_nfapi_c
qi_indication
(
nfapi_cqi_indication_t
*
cqi
_ind
);
extern
int
oai_nfapi_crc_indication
(
nfapi_crc_indication_t
*
crc_ind
);
extern
int
oai_nfapi_harq_indication
(
nfapi_harq_indication_t
*
harq_ind
);
extern
int
oai_nfapi_sr_indication
(
nfapi_sr_indication_t
*
ind
);
...
...
@@ -1248,6 +1248,11 @@ static void *UE_phy_stub_single_thread_rxn_txnp4(void *arg) {
UL_INFO
->
sr_ind
.
sr_indication_body
.
number_of_srs
=
0
;
}
if
(
UL_INFO
->
cqi_ind
.
cqi_indication_body
.
number_of_cqis
>
0
){
oai_nfapi_cqi_indication
(
&
UL_INFO
->
cqi_ind
);
UL_INFO
->
cqi_ind
.
cqi_indication_body
.
number_of_cqis
=
0
;
}
// Free UL_INFO messages
if
(
UL_INFO
->
crc_ind
.
crc_indication_body
.
crc_pdu_list
!=
NULL
){
free
(
UL_INFO
->
crc_ind
.
crc_indication_body
.
crc_pdu_list
);
...
...
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