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
lizhongxiao
OpenXG-RAN
Commits
84f238fd
Commit
84f238fd
authored
Jul 02, 2018
by
WEI-TAI CHEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Solve the Segmentation Fault in fill_rf_config function in nr-ru.c
parent
f767dea2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
11 deletions
+13
-11
nfapi/open-nFAPI/nfapi/public_inc/nfapi_nr_interface.h
nfapi/open-nFAPI/nfapi/public_inc/nfapi_nr_interface.h
+4
-2
openair1/PHY/INIT/nr_init.c
openair1/PHY/INIT/nr_init.c
+4
-4
openair2/LAYER2/NR_MAC_gNB/config.c
openair2/LAYER2/NR_MAC_gNB/config.c
+4
-4
targets/RT/USER/nr-ru.c
targets/RT/USER/nr-ru.c
+1
-1
No files found.
nfapi/open-nFAPI/nfapi/public_inc/nfapi_nr_interface.h
View file @
84f238fd
...
...
@@ -76,8 +76,10 @@ typedef struct {
typedef
struct
{
nfapi_uint16_tlv_t
tx_antenna_ports
;
nfapi_uint16_tlv_t
rx_antenna_ports
;
nfapi_uint16_tlv_t
dl_carrierBandwidth
;
nfapi_uint16_tlv_t
ul_carrierBandwidth
;
nfapi_uint16_tlv_t
dl_channel_bandwidth
;
nfapi_uint16_tlv_t
ul_channel_bandwidth
;
nfapi_uint16_tlv_t
dl_BWP_carrierBandwidth
;
nfapi_uint16_tlv_t
ul_BWP_carrierBandwidth
;
nfapi_uint16_tlv_t
dl_locationAndBandwidth
;
nfapi_uint16_tlv_t
ul_locationAndBandwidth
;
nfapi_uint16_tlv_t
dl_BWP_SubcarrierSpacing
;
...
...
openair1/PHY/INIT/nr_init.c
View file @
84f238fd
...
...
@@ -387,8 +387,8 @@ void nr_phy_config_request(NR_PHY_Config_t *phy_config)
gNB_config
->
nfapi_config
.
earfcn
.
value
=
phy_config
->
cfg
->
nfapi_config
.
earfcn
.
value
;
//6600
gNB_config
->
subframe_config
.
numerology_index_mu
.
value
=
phy_config
->
cfg
->
subframe_config
.
numerology_index_mu
.
value
;
//1
gNB_config
->
rf_config
.
tx_antenna_ports
.
value
=
phy_config
->
cfg
->
rf_config
.
tx_antenna_ports
.
value
;
//1
gNB_config
->
rf_config
.
dl_c
arrierBandwidth
.
value
=
phy_config
->
cfg
->
rf_config
.
dl_carrierB
andwidth
.
value
;
//106;
gNB_config
->
rf_config
.
ul_c
arrierBandwidth
.
value
=
phy_config
->
cfg
->
rf_config
.
ul_carrierB
andwidth
.
value
;
//106;
gNB_config
->
rf_config
.
dl_c
hannel_bandwidth
.
value
=
phy_config
->
cfg
->
rf_config
.
dl_channel_b
andwidth
.
value
;
//106;
gNB_config
->
rf_config
.
ul_c
hannel_bandwidth
.
value
=
phy_config
->
cfg
->
rf_config
.
ul_channel_b
andwidth
.
value
;
//106;
gNB_config
->
sch_config
.
half_frame_index
.
value
=
0
;
gNB_config
->
sch_config
.
ssb_subcarrier_offset
.
value
=
phy_config
->
cfg
->
sch_config
.
ssb_subcarrier_offset
.
value
;
//0;
gNB_config
->
sch_config
.
n_ssb_crb
.
value
=
86
;
...
...
@@ -411,8 +411,8 @@ void nr_phy_config_request(NR_PHY_Config_t *phy_config)
Mod_id
,
CC_id
,
gNB_config
->
nfapi_config
.
rf_bands
.
rf_band
[
0
],
gNB_config
->
rf_config
.
dl_c
arrierB
andwidth
.
value
,
gNB_config
->
rf_config
.
ul_c
arrierB
andwidth
.
value
,
gNB_config
->
rf_config
.
dl_c
hannel_b
andwidth
.
value
,
gNB_config
->
rf_config
.
ul_c
hannel_b
andwidth
.
value
,
gNB_config
->
sch_config
.
physical_cell_id
.
value
,
gNB_config
->
rf_config
.
tx_antenna_ports
.
value
,
fp
->
dl_CarrierFreq
);
...
...
openair2/LAYER2/NR_MAC_gNB/config.c
View file @
84f238fd
...
...
@@ -162,13 +162,13 @@ void config_common(int Mod_idP,
//cfg->subframe_config.tl.tag =
//cfg->num_tlv++;
cfg
->
rf_config
.
dl_c
arrierB
andwidth
.
value
=
dl_BandwidthP
;
cfg
->
rf_config
.
dl_c
arrierB
andwidth
.
tl
.
tag
=
NFAPI_RF_CONFIG_DL_CHANNEL_BANDWIDTH_TAG
;
//temporary
cfg
->
rf_config
.
dl_c
hannel_b
andwidth
.
value
=
dl_BandwidthP
;
cfg
->
rf_config
.
dl_c
hannel_b
andwidth
.
tl
.
tag
=
NFAPI_RF_CONFIG_DL_CHANNEL_BANDWIDTH_TAG
;
//temporary
cfg
->
num_tlv
++
;
LOG_I
(
PHY
,
"%s() dl_BandwidthP:%d
\n
"
,
__FUNCTION__
,
dl_BandwidthP
);
cfg
->
rf_config
.
ul_c
arrierB
andwidth
.
value
=
dl_BandwidthP
;
cfg
->
rf_config
.
ul_c
arrierB
andwidth
.
tl
.
tag
=
NFAPI_RF_CONFIG_UL_CHANNEL_BANDWIDTH_TAG
;
//temporary
cfg
->
rf_config
.
ul_c
hannel_b
andwidth
.
value
=
dl_BandwidthP
;
cfg
->
rf_config
.
ul_c
hannel_b
andwidth
.
tl
.
tag
=
NFAPI_RF_CONFIG_UL_CHANNEL_BANDWIDTH_TAG
;
//temporary
cfg
->
num_tlv
++
;
//cfg->sch_config.half_frame_index.value = 0; Fix in PHY
...
...
targets/RT/USER/nr-ru.c
View file @
84f238fd
...
...
@@ -1178,7 +1178,7 @@ void fill_rf_config(RU_t *ru, char *rf_config_file) {
int
i
;
NR_DL_FRAME_PARMS
*
fp
=
ru
->
nr_frame_parms
;
nfapi_config_request_t
*
gNB_config
=
&
ru
->
gNB_list
[
0
]
->
gNB_config
;
//tmp index
nfapi_
nr_
config_request_t
*
gNB_config
=
&
ru
->
gNB_list
[
0
]
->
gNB_config
;
//tmp index
openair0_config_t
*
cfg
=
&
ru
->
openair0_cfg
;
int
N_RB
=
gNB_config
->
rf_config
.
dl_channel_bandwidth
.
value
;
int
mu
=
gNB_config
->
subframe_config
.
numerology_index_mu
.
value
;
...
...
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