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
Michael Black
OpenXG-RAN
Commits
4dcb32c1
Commit
4dcb32c1
authored
Feb 24, 2021
by
Melissa Elkadi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused memcpy functions and references
parent
125e0aa1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
67 deletions
+4
-67
nfapi/oai_integration/nfapi_pnf.c
nfapi/oai_integration/nfapi_pnf.c
+4
-4
openair2/PHY_INTERFACE/phy_stub_UE.c
openair2/PHY_INTERFACE/phy_stub_UE.c
+0
-56
openair2/PHY_INTERFACE/phy_stub_UE.h
openair2/PHY_INTERFACE/phy_stub_UE.h
+0
-7
No files found.
nfapi/oai_integration/nfapi_pnf.c
View file @
4dcb32c1
...
...
@@ -1030,10 +1030,10 @@ int start_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, nfapi
p7_config
->
lbt_dl_config_req
=
&
pnf_phy_lbt_dl_config_req
;
p7_config
->
ue_release_req
=
&
pnf_phy_ue_release_req
;
if
(
NFAPI_MODE
==
NFAPI_UE_STUB_PNF
||
NFAPI_MODE
==
NFAPI_MODE_STANDALONE_PNF
)
{
p7_config
->
dl_config_req
=
&
memcpy_dl_config_req
;
p7_config
->
ul_config_req
=
&
memcpy_ul_config_req
;
p7_config
->
hi_dci0_req
=
&
memcpy_hi_dci0_req
;
p7_config
->
tx_req
=
&
memcpy_tx_req
;
p7_config
->
dl_config_req
=
NULL
;
p7_config
->
ul_config_req
=
NULL
;
p7_config
->
hi_dci0_req
=
NULL
;
p7_config
->
tx_req
=
NULL
;
}
else
{
p7_config
->
dl_config_req
=
&
pnf_phy_dl_config_req
;
p7_config
->
ul_config_req
=
&
pnf_phy_ul_config_req
;
...
...
openair2/PHY_INTERFACE/phy_stub_UE.c
View file @
4dcb32c1
...
...
@@ -960,35 +960,6 @@ void hi_dci0_req_UE_MAC(int sfn,
// The following set of memcpy functions should be getting called as callback
// functions from pnf_p7_subframe_ind.
int
memcpy_dl_config_req
(
L1_rxtx_proc_t
*
proc
,
nfapi_pnf_p7_config_t
*
pnf_p7
,
nfapi_dl_config_request_t
*
req
)
{
nfapi_dl_config_request_t
*
p
=
malloc
(
sizeof
(
nfapi_dl_config_request_t
));
// UE_mac_inst[Mod_id].p->header = req->header;
p
->
sfn_sf
=
req
->
sfn_sf
;
p
->
vendor_extension
=
req
->
vendor_extension
;
p
->
dl_config_request_body
.
number_dci
=
req
->
dl_config_request_body
.
number_dci
;
p
->
dl_config_request_body
.
number_pdcch_ofdm_symbols
=
req
->
dl_config_request_body
.
number_pdcch_ofdm_symbols
;
p
->
dl_config_request_body
.
number_pdsch_rnti
=
req
->
dl_config_request_body
.
number_pdsch_rnti
;
p
->
dl_config_request_body
.
number_pdu
=
req
->
dl_config_request_body
.
number_pdu
;
p
->
dl_config_request_body
.
tl
.
tag
=
req
->
dl_config_request_body
.
tl
.
tag
;
p
->
dl_config_request_body
.
tl
.
length
=
req
->
dl_config_request_body
.
tl
.
length
;
p
->
dl_config_request_body
.
dl_config_pdu_list
=
calloc
(
req
->
dl_config_request_body
.
number_pdu
,
sizeof
(
nfapi_dl_config_request_pdu_t
));
for
(
int
i
=
0
;
i
<
p
->
dl_config_request_body
.
number_pdu
;
i
++
)
{
p
->
dl_config_request_body
.
dl_config_pdu_list
[
i
]
=
req
->
dl_config_request_body
.
dl_config_pdu_list
[
i
];
}
return
0
;
}
static
bool
is_my_ul_config_req
(
nfapi_ul_config_request_t
*
req
)
{
...
...
@@ -1066,33 +1037,6 @@ void nfapi_free_tx_req_pdu_list(nfapi_tx_req_pdu_list_t *list)
free
(
list
);
}
int
memcpy_tx_req
(
nfapi_pnf_p7_config_t
*
pnf_p7
,
nfapi_tx_request_t
*
req
)
{
int
num_pdus
=
req
->
tx_request_body
.
number_of_pdus
;
nfapi_tx_req_pdu_list_t
*
list
=
calloc
(
1
,
sizeof
(
nfapi_tx_req_pdu_list_t
)
+
num_pdus
*
sizeof
(
nfapi_tx_request_pdu_t
));
list
->
num_pdus
=
num_pdus
;
nfapi_tx_request_pdu_t
*
p
=
list
->
pdus
;
for
(
int
i
=
0
;
i
<
num_pdus
;
i
++
)
{
p
[
i
].
num_segments
=
req
->
tx_request_body
.
tx_pdu_list
[
i
].
num_segments
;
p
[
i
].
pdu_index
=
req
->
tx_request_body
.
tx_pdu_list
[
i
].
pdu_index
;
p
[
i
].
pdu_length
=
req
->
tx_request_body
.
tx_pdu_list
[
i
].
pdu_length
;
for
(
int
j
=
0
;
j
<
req
->
tx_request_body
.
tx_pdu_list
[
i
].
num_segments
;
j
++
)
{
p
[
i
].
segments
[
j
].
segment_length
=
req
->
tx_request_body
.
tx_pdu_list
[
i
].
segments
[
j
].
segment_length
;
if
(
p
[
i
].
segments
[
j
].
segment_length
>
0
)
{
p
[
i
].
segments
[
j
].
segment_data
=
calloc
(
p
[
i
].
segments
[
j
].
segment_length
,
sizeof
(
uint8_t
));
memcpy
(
p
[
i
].
segments
[
j
].
segment_data
,
req
->
tx_request_body
.
tx_pdu_list
[
i
].
segments
[
j
].
segment_data
,
p
[
i
].
segments
[
j
].
segment_length
);
}
}
}
return
0
;
}
static
bool
is_my_hi_dci0_req
(
nfapi_hi_dci0_request_t
*
hi_dci0_req
)
{
bool
is_my_rnti
=
false
;
...
...
openair2/PHY_INTERFACE/phy_stub_UE.h
View file @
4dcb32c1
...
...
@@ -145,15 +145,8 @@ void hi_dci0_req_UE_MAC(int sfn,
// The following set of memcpy functions should be getting called as callback functions from
// pnf_p7_subframe_ind.
int
memcpy_dl_config_req
(
L1_rxtx_proc_t
*
proc
,
nfapi_pnf_p7_config_t
*
pnf_p7
,
nfapi_dl_config_request_t
*
req
);
int
memcpy_ul_config_req
(
L1_rxtx_proc_t
*
proc
,
nfapi_pnf_p7_config_t
*
pnf_p7
,
nfapi_ul_config_request_t
*
req
);
int
memcpy_tx_req
(
nfapi_pnf_p7_config_t
*
pnf_p7
,
nfapi_tx_request_t
*
req
);
int
memcpy_hi_dci0_req
(
L1_rxtx_proc_t
*
proc
,
nfapi_pnf_p7_config_t
*
pnf_p7
,
nfapi_hi_dci0_request_t
*
req
);
void
UE_config_stub_pnf
(
void
);
...
...
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