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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
35692639
Commit
35692639
authored
Jan 19, 2021
by
Mahesh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup
parent
b1a760a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
116 deletions
+0
-116
nfapi/oai_integration/nfapi_pnf.c
nfapi/oai_integration/nfapi_pnf.c
+0
-116
No files found.
nfapi/oai_integration/nfapi_pnf.c
View file @
35692639
...
@@ -1093,127 +1093,11 @@ int nr_config_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, n
...
@@ -1093,127 +1093,11 @@ int nr_config_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, n
num_tlv
++
;
num_tlv
++
;
}
}
/*
if(req->nfapi_config.rf_bands.tl.tag == NFAPI_NR_NFAPI_RF_BANDS_TAG) {
pnf->rfs[0].band = req->nfapi_config.rf_bands.rf_band[0];
fp->nr_band = req->nfapi_config.rf_bands.rf_band[0];
num_tlv++;
}
if(req->nfapi_config.nrarfcn.tl.tag == NFAPI_NR_NFAPI_NRARFCN_TAG) {
// fp->dl_CarrierFreq = from_nrarfcn(78, req->ssb_config.scs_common.value , req->nfapi_config.nrarfcn.value);// TODO: get value nr_bandP
// fp->dl_CarrierFreq = req->carrier_config.dl_frequency.value;
// fp->ul_CarrierFreq = req->carrier_config.uplink_frequency.value;
//fp->ul_CarrierFreq = fp->dl_CarrierFreq - (get_nr_uldl_offset(fp->nr_band) * 1e5); // TODO: why 1e5 ?
num_tlv++;
NFAPI_TRACE(NFAPI_TRACE_INFO, "%s() nrarfcn:%u dl_carrierFreq:%u ul_CarrierFreq:%u band:%u N_RB_DL:%u\n",
__FUNCTION__, req->nfapi_config.nrarfcn.value, fp->dl_CarrierFreq, fp->ul_CarrierFreq, pnf->rfs[0].band, fp->N_RB_DL);
}
*/
#if SUBFRAME // TODO: add subframe struct to nr config request struct
if
(
req
->
subframe_config
.
duplex_mode
.
tl
.
tag
==
NFAPI_NR_SUBFRAME_CONFIG_DUPLEX_MODE_TAG
)
{
fp
->
frame_type
=
req
->
subframe_config
.
duplex_mode
.
value
==
0
?
TDD
:
FDD
;
num_tlv
++
;
NFAPI_TRACE
(
NFAPI_TRACE_INFO
,
"%s() frame_type:%d
\n
"
,
__FUNCTION__
,
fp
->
frame_type
);
req
->
tdd_table
.
if
(
req
->
subframe_config
.
dl_cyclic_prefix_type
.
tl
.
tag
==
NFAPI_NR_SUBFRAME_CONFIG_DL_CYCLIC_PREFIX_TYPE_TAG
)
{
fp
->
Ncp
=
req
->
subframe_config
.
dl_cyclic_prefix_type
.
value
;
num_tlv
++
;
}
if
(
req
->
subframe_config
.
ul_cyclic_prefix_type
.
tl
.
tag
==
NFAPI_NR_SUBFRAME_CONFIG_UL_CYCLIC_PREFIX_TYPE_TAG
)
{
fp
->
Ncp_UL
=
req
->
subframe_config
.
ul_cyclic_prefix_type
.
value
;
num_tlv
++
;
}
fp
->
num_MBSFN_config
=
0
;
// DJP - hard code alert
#endif
if
(
req
->
cell_config
.
phy_cell_id
.
tl
.
tag
==
NFAPI_NR_CONFIG_PHY_CELL_ID_TAG
)
{
if
(
req
->
cell_config
.
phy_cell_id
.
tl
.
tag
==
NFAPI_NR_CONFIG_PHY_CELL_ID_TAG
)
{
fp
->
Nid_cell
=
req
->
cell_config
.
phy_cell_id
.
value
;
//sch_config.physical_cell_id.value;
fp
->
Nid_cell
=
req
->
cell_config
.
phy_cell_id
.
value
;
//sch_config.physical_cell_id.value;
fp
->
nushift
=
fp
->
Nid_cell
%
6
;
fp
->
nushift
=
fp
->
Nid_cell
%
6
;
num_tlv
++
;
num_tlv
++
;
}
}
#if LTE
if
(
req
->
rf_config
.
tx_antenna_ports
.
tl
.
tag
==
NFAPI_NR_RF_CONFIG_TX_ANTENNA_PORTS_TAG
)
{
fp
->
nb_antennas_tx
=
req
->
rf_config
.
tx_antenna_ports
.
value
;
fp
->
nb_antenna_ports_eNB
=
1
;
num_tlv
++
;
}
if
(
req
->
rf_config
.
rx_antenna_ports
.
tl
.
tag
==
NFAPI_NR_RF_CONFIG_RX_ANTENNA_PORTS_TAG
)
{
fp
->
nb_antennas_rx
=
req
->
rf_config
.
rx_antenna_ports
.
value
;
num_tlv
++
;
}
if
(
req
->
phich_config
.
phich_resource
.
tl
.
tag
==
NFAPI_NR_PHICH_CONFIG_PHICH_RESOURCE_TAG
)
{
fp
->
phich_config_common
.
phich_resource
=
req
->
phich_config
.
phich_resource
.
value
;
num_tlv
++
;
}
if
(
req
->
phich_config
.
phich_duration
.
tl
.
tag
==
NFAPI_NR_PHICH_CONFIG_PHICH_DURATION_TAG
)
{
fp
->
phich_config_common
.
phich_duration
=
req
->
phich_config
.
phich_duration
.
value
;
num_tlv
++
;
}
if
(
req
->
phich_config
.
phich_power_offset
.
tl
.
tag
==
NFAPI_NR_PHICH_CONFIG_PHICH_POWER_OFFSET_TAG
)
{
LOG_E
(
PHY
,
"%s() NFAPI_PHICH_CONFIG_PHICH_POWER_OFFSET_TAG tag:%d not supported
\n
"
,
__FUNCTION__
,
req
->
phich_config
.
phich_power_offset
.
tl
.
tag
);
//fp->phich_config_common.phich_power_offset = req->phich_config.
num_tlv
++
;
}
// UL RS Config
if
(
req
->
uplink_reference_signal_config
.
cyclic_shift_1_for_drms
.
tl
.
tag
==
NFAPI_NR_UPLINK_REFERENCE_SIGNAL_CONFIG_CYCLIC_SHIFT_1_FOR_DRMS_TAG
)
{
fp
->
pusch_config_common
.
ul_ReferenceSignalsPUSCH
.
cyclicShift
=
req
->
uplink_reference_signal_config
.
cyclic_shift_1_for_drms
.
value
;
num_tlv
++
;
}
if
(
req
->
uplink_reference_signal_config
.
uplink_rs_hopping
.
tl
.
tag
==
NFAPI_NR_UPLINK_REFERENCE_SIGNAL_CONFIG_UPLINK_RS_HOPPING_TAG
)
{
fp
->
pusch_config_common
.
ul_ReferenceSignalsPUSCH
.
groupHoppingEnabled
=
req
->
uplink_reference_signal_config
.
uplink_rs_hopping
.
value
;
num_tlv
++
;
}
if
(
req
->
uplink_reference_signal_config
.
group_assignment
.
tl
.
tag
==
NFAPI_NR_UPLINK_REFERENCE_SIGNAL_CONFIG_GROUP_ASSIGNMENT_TAG
)
{
fp
->
pusch_config_common
.
ul_ReferenceSignalsPUSCH
.
groupAssignmentPUSCH
=
req
->
uplink_reference_signal_config
.
group_assignment
.
value
;
num_tlv
++
;
}
if
(
req
->
pusch_config
.
hopping_mode
.
tl
.
tag
==
NFAPI_NR_PUSCH_CONFIG_HOPPING_MODE_TAG
)
{
}
// DJP - not being handled?
if
(
req
->
pusch_config
.
hopping_offset
.
tl
.
tag
==
NFAPI_NR_PUSCH_CONFIG_HOPPING_OFFSET_TAG
)
{
}
// DJP - not being handled?
if
(
req
->
pusch_config
.
number_of_subbands
.
tl
.
tag
==
NFAPI_NR_PUSCH_CONFIG_NUMBER_OF_SUBBANDS_TAG
)
{
}
// DJP - not being handled?
if
(
req
->
prach_config
.
configuration_index
.
tl
.
tag
==
NFAPI_NR_PRACH_CONFIG_CONFIGURATION_INDEX_TAG
)
{
fp
->
prach_config_common
.
prach_ConfigInfo
.
prach_ConfigIndex
=
req
->
prach_config
.
configuration_index
.
value
;
num_tlv
++
;
}
if
(
req
->
prach_config
.
root_sequence_index
.
tl
.
tag
==
NFAPI_NR_PRACH_CONFIG_ROOT_SEQUENCE_INDEX_TAG
)
{
fp
->
prach_config_common
.
rootSequenceIndex
=
req
->
prach_config
.
root_sequence_index
.
value
;
num_tlv
++
;
}
if
(
req
->
prach_config
.
zero_correlation_zone_configuration
.
tl
.
tag
==
NFAPI_NR_PRACH_CONFIG_ZERO_CORRELATION_ZONE_CONFIGURATION_TAG
)
{
fp
->
prach_config_common
.
prach_ConfigInfo
.
zeroCorrelationZoneConfig
=
req
->
prach_config
.
zero_correlation_zone_configuration
.
value
;
num_tlv
++
;
}
if
(
req
->
prach_config
.
high_speed_flag
.
tl
.
tag
==
NFAPI_NR_PRACH_CONFIG_HIGH_SPEED_FLAG_TAG
)
{
fp
->
prach_config_common
.
prach_ConfigInfo
.
highSpeedFlag
=
req
->
prach_config
.
high_speed_flag
.
value
;
num_tlv
++
;
}
if
(
req
->
prach_config
.
frequency_offset
.
tl
.
tag
==
NFAPI_NR_PRACH_CONFIG_FREQUENCY_OFFSET_TAG
)
{
fp
->
prach_config_common
.
prach_ConfigInfo
.
prach_FreqOffset
=
req
->
prach_config
.
frequency_offset
.
value
;
num_tlv
++
;
}
#endif
if
(
NFAPI_MODE
!=
NFAPI_UE_STUB_PNF
)
{
if
(
NFAPI_MODE
!=
NFAPI_UE_STUB_PNF
)
{
printf
(
"[PNF] CONFIG_REQUEST[num_tlv:%d] TLVs processed:%d
\n
"
,
req
->
num_tlv
,
num_tlv
);
printf
(
"[PNF] CONFIG_REQUEST[num_tlv:%d] TLVs processed:%d
\n
"
,
req
->
num_tlv
,
num_tlv
);
...
...
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