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
72cba284
Commit
72cba284
authored
Apr 17, 2020
by
Javier Morgade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add UE MCH NFAPI
parent
c918f1d8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
0 deletions
+48
-0
openair2/PHY_INTERFACE/phy_stub_UE.c
openair2/PHY_INTERFACE/phy_stub_UE.c
+39
-0
openair2/PHY_INTERFACE/phy_stub_UE.h
openair2/PHY_INTERFACE/phy_stub_UE.h
+4
-0
targets/RT/USER/lte-ue.c
targets/RT/USER/lte-ue.c
+5
-0
No files found.
openair2/PHY_INTERFACE/phy_stub_UE.c
View file @
72cba284
...
@@ -828,6 +828,40 @@ void dl_config_req_UE_MAC_bch(int sfn,
...
@@ -828,6 +828,40 @@ void dl_config_req_UE_MAC_bch(int sfn,
}
}
}
}
void
dl_config_req_UE_MAC_mch
(
int
sfn
,
int
sf
,
nfapi_dl_config_request_pdu_t
*
mch
,
int
num_ue
)
{
DevAssert
(
mch
->
pdu_type
==
NFAPI_DL_CONFIG_MCH_PDU_TYPE
);
for
(
int
ue_id
=
0
;
ue_id
<
num_ue
;
ue_id
++
)
{
if
(
UE_mac_inst
[
ue_id
].
UE_mode
[
0
]
==
NOT_SYNCHED
){
LOG_D
(
MAC
,
"%s(): Received MCH in NOT_SYNCHED: UE_mode: %d, sfn/sf: %d.%d
\n
"
,
__func__
,
UE_mac_inst
[
ue_id
].
UE_mode
[
0
],
sfn
,
sf
);
return
;
}
else
{
const
int
pdu_index
=
mch
->
mch_pdu
.
mch_pdu_rel8
.
pdu_index
;
if
(
pdu_index
<
0
||
pdu_index
>=
tx_req_num_elems
)
{
LOG_E
(
MAC
,
"%s(): Problem with receiving data: "
"sfn/sf:%d.%d PDU size:%d, TX_PDU index: %d
\n
"
,
__func__
,
sfn
,
sf
,
mch
->
pdu_size
,
mch
->
mch_pdu
.
mch_pdu_rel8
.
pdu_index
);
return
;
}
ue_send_mch_sdu
(
ue_id
,
0
,
sfn
,
tx_request_pdu_list
[
pdu_index
].
segments
[
0
].
segment_data
,
tx_request_pdu_list
[
pdu_index
].
segments
[
0
].
segment_length
,
0
,
0
);
}
}
}
void
hi_dci0_req_UE_MAC
(
int
sfn
,
void
hi_dci0_req_UE_MAC
(
int
sfn
,
int
sf
,
int
sf
,
nfapi_hi_dci0_request_pdu_t
*
hi_dci0
,
nfapi_hi_dci0_request_pdu_t
*
hi_dci0
,
...
@@ -1052,6 +1086,11 @@ void handle_nfapi_ul_pdu(PHY_VARS_eNB *eNB,
...
@@ -1052,6 +1086,11 @@ void handle_nfapi_ul_pdu(PHY_VARS_eNB *eNB,
uint8_t
subframe
,
uint8_t
subframe
,
uint8_t
srs_present
)
{
uint8_t
srs_present
)
{
}
}
void
handle_nfapi_mch_pdu
(
PHY_VARS_eNB
*
eNB
,
L1_rxtx_proc_t
*
proc
,
nfapi_dl_config_request_pdu_t
*
dl_config_pdu
,
uint8_t
*
sdu
)
{
}
void
phy_config_request
(
PHY_Config_t
*
phy_config
)
{
void
phy_config_request
(
PHY_Config_t
*
phy_config
)
{
}
}
...
...
openair2/PHY_INTERFACE/phy_stub_UE.h
View file @
72cba284
...
@@ -102,6 +102,10 @@ void dl_config_req_UE_MAC_bch(int sfn,
...
@@ -102,6 +102,10 @@ void dl_config_req_UE_MAC_bch(int sfn,
int
sf
,
int
sf
,
nfapi_dl_config_request_pdu_t
*
bch
,
nfapi_dl_config_request_pdu_t
*
bch
,
int
num_ue
);
int
num_ue
);
void
dl_config_req_UE_MAC_mch
(
int
sfn
,
int
sf
,
nfapi_dl_config_request_pdu_t
*
bch
,
int
num_ue
);
int
tx_req_UE_MAC
(
nfapi_tx_request_t
*
req
);
int
tx_req_UE_MAC
(
nfapi_tx_request_t
*
req
);
...
...
targets/RT/USER/lte-ue.c
View file @
72cba284
...
@@ -1132,6 +1132,11 @@ static void *UE_phy_stub_single_thread_rxn_txnp4(void *arg)
...
@@ -1132,6 +1132,11 @@ static void *UE_phy_stub_single_thread_rxn_txnp4(void *arg)
NFAPI_SFNSF2SF
(
dl_config_req
->
sfn_sf
),
NFAPI_SFNSF2SF
(
dl_config_req
->
sfn_sf
),
pdu
,
pdu
,
ue_num
);
ue_num
);
}
else
if
(
pdu
->
pdu_type
==
NFAPI_DL_CONFIG_MCH_PDU_TYPE
)
{
dl_config_req_UE_MAC_mch
(
NFAPI_SFNSF2SFN
(
dl_config_req
->
sfn_sf
),
NFAPI_SFNSF2SF
(
dl_config_req
->
sfn_sf
),
pdu
,
ue_num
);
}
}
}
}
}
}
...
...
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