Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
OpenXG
OpenXG UE
Commits
a6d48412
Commit
a6d48412
authored
Feb 03, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/episys-nfapi-p5-bug-fixes' into integration_2022_wk05_b
parents
6bda264e
a25919a6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
35 deletions
+52
-35
ci-scripts/conf_files/episci/episci_gnb.band78.sa.fr1.106PRB.usrpn310.conf
...iles/episci/episci_gnb.band78.sa.fr1.106PRB.usrpn310.conf
+1
-1
ci-scripts/conf_files/episci/proxy_gnb.band78.sa.fr1.106PRB.usrpn310.conf
...files/episci/proxy_gnb.band78.sa.fr1.106PRB.usrpn310.conf
+1
-1
nfapi/open-nFAPI/nfapi/src/nfapi_p5.c
nfapi/open-nFAPI/nfapi/src/nfapi_p5.c
+49
-32
openair2/RRC/LTE/MESSAGES/asn1_msg.c
openair2/RRC/LTE/MESSAGES/asn1_msg.c
+1
-1
No files found.
ci-scripts/conf_files/episci/episci_gnb.band78.sa.fr1.106PRB.usrpn310.conf
View file @
a6d48412
...
...
@@ -36,7 +36,7 @@ gNBs =
pdsch_AntennaPorts
=
1
;
pusch_AntennaPorts
=
1
;
ul_prbblacklist
=
"51,52,53,54"
min_rxtxtime
_pdsch
=
6
;
min_rxtxtime
=
6
;
pdcch_ConfigSIB1
= (
{
controlResourceSetZero
=
12
;
...
...
ci-scripts/conf_files/episci/proxy_gnb.band78.sa.fr1.106PRB.usrpn310.conf
View file @
a6d48412
...
...
@@ -36,7 +36,7 @@ gNBs =
pdsch_AntennaPorts
=
1
;
pusch_AntennaPorts
=
1
;
ul_prbblacklist
=
"51,52,53,54"
min_rxtxtime
_pdsch
=
6
;
min_rxtxtime
=
6
;
pdcch_ConfigSIB1
= (
{
...
...
nfapi/open-nFAPI/nfapi/src/nfapi_p5.c
View file @
a6d48412
...
...
@@ -263,8 +263,8 @@ static uint8_t pack_nr_pnf_config_request(void *msg, uint8_t **ppWritePackedMsg,
static
uint8_t
pack_pnf_config_request
(
void
*
msg
,
uint8_t
**
ppWritePackedMsg
,
uint8_t
*
end
,
nfapi_p4_p5_codec_config_t
*
config
)
{
nfapi_pnf_config_request_t
*
pNfapiMsg
=
(
nfapi_pnf_config_request_t
*
)
msg
;
return
(
p
ack_tlv
(
NFAPI_PNF_PHY_RF_TAG
,
&
pNfapiMsg
->
pnf_phy_rf_config
,
ppWritePackedMsg
,
end
,
&
pack_pnf_phy_rf_config_value
)
&&
p
ush8
(
pNfapiMsg
->
num_tlvs
,
ppWritePackedMsg
,
end
)
&&
return
(
p
ush8
(
pNfapiMsg
->
num_tlvs
,
ppWritePackedMsg
,
end
)
&&
p
ack_tlv
(
NFAPI_PNF_PHY_RF_TAG
,
&
pNfapiMsg
->
pnf_phy_rf_config
,
ppWritePackedMsg
,
end
,
&
pack_pnf_phy_rf_config_value
)
&&
pack_vendor_extension_tlv
(
pNfapiMsg
->
vendor_extension
,
ppWritePackedMsg
,
end
,
config
));
}
...
...
@@ -697,8 +697,7 @@ static uint8_t pack_config_request(void *msg, uint8_t **ppWritePackedMsg, uint8_
pack_tlv
(
NFAPI_NFAPI_NMM_GSM_FREQUENCY_BANDS_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
nmm_gsm_frequency_bands
),
ppWritePackedMsg
,
end
,
&
pack_nmm_frequency_bands_value
)
&&
pack_tlv
(
NFAPI_NFAPI_NMM_UMTS_FREQUENCY_BANDS_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
nmm_umts_frequency_bands
),
ppWritePackedMsg
,
end
,
&
pack_nmm_frequency_bands_value
)
&&
pack_tlv
(
NFAPI_NFAPI_NMM_LTE_FREQUENCY_BANDS_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
nmm_lte_frequency_bands
),
ppWritePackedMsg
,
end
,
&
pack_nmm_frequency_bands_value
)
&&
pack_tlv
(
NFAPI_NFAPI_NMM_UPLINK_RSSI_SUPPORTED_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
nmm_uplink_rssi_supported
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_vendor_extension_tlv
(
pNfapiMsg
->
vendor_extension
,
ppWritePackedMsg
,
end
,
config
)
);
pack_tlv
(
NFAPI_NFAPI_NMM_UPLINK_RSSI_SUPPORTED_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
nmm_uplink_rssi_supported
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
));
}
...
...
@@ -724,47 +723,50 @@ static uint8_t pack_nr_config_request(void *msg, uint8_t **ppWritePackedMsg, uin
pack_tlv
(
NFAPI_NR_CONFIG_UL_K0_TAG
,
&
(
pNfapiMsg
->
carrier_config
.
ul_k0
[
1
]),
ppWritePackedMsg
,
end
,
&
pack_uint16_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_UPLINK_BANDWIDTH_TAG
,
&
(
pNfapiMsg
->
carrier_config
.
uplink_bandwidth
),
ppWritePackedMsg
,
end
,
&
pack_uint16_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_UPLINK_FREQUENCY_TAG
,
&
(
pNfapiMsg
->
carrier_config
.
uplink_frequency
),
ppWritePackedMsg
,
end
,
&
pack_uint32_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_FREQUENCY_SHIFT_7P5KHZ_TAG
,
&
(
pNfapiMsg
->
carrier_config
.
frequency_shift_7p5khz
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_FRAME_DUPLEX_TYPE_TAG
,
&
(
pNfapiMsg
->
cell_config
.
frame_duplex_type
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_PHY_CELL_ID_TAG
,
&
(
pNfapiMsg
->
cell_config
.
phy_cell_id
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_PHY_CELL_ID_TAG
,
&
(
pNfapiMsg
->
cell_config
.
phy_cell_id
),
ppWritePackedMsg
,
end
,
&
pack_uint16_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_PRACH_MULTIPLE_CARRIERS_IN_A_BAND_TAG
,
&
(
pNfapiMsg
->
prach_config
.
prach_multiple_carriers_in_a_band
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_PRACH_CONFIG_INDEX_TAG
,
&
(
pNfapiMsg
->
prach_config
.
prach_ConfigurationIndex
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_NUM_PRACH_FD_OCCASIONS_TAG
,
&
(
pNfapiMsg
->
prach_config
.
num_prach_fd_occasions
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_PRACH_SEQUENCE_LENGTH_TAG
,
&
(
pNfapiMsg
->
prach_config
.
prach_sequence_length
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_RESTRICTED_SET_CONFIG_TAG
,
&
(
pNfapiMsg
->
prach_config
.
restricted_set_config
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_SSB_PER_RACH_TAG
,
&
(
pNfapiMsg
->
prach_config
.
ssb_per_rach
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_PRACH_SUB_C_SPACING_TAG
,
&
(
pNfapiMsg
->
prach_config
.
prach_sub_c_spacing
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_PRACH_ROOT_SEQUENCE_INDEX_TAG
,
&
(
pNfapiMsg
->
prach_config
.
num_prach_fd_occasions_list
[
0
].
prach_root_sequence_index
),
ppWritePackedMsg
,
end
,
&
pack_uint16_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_K1_TAG
,
&
(
pNfapiMsg
->
prach_config
.
num_prach_fd_occasions_list
[
0
].
k1
),
ppWritePackedMsg
,
end
,
&
pack_uint16_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_PRACH_ZERO_CORR_CONF_TAG
,
&
(
pNfapiMsg
->
prach_config
.
num_prach_fd_occasions_list
[
0
].
prach_zero_corr_conf
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_PRACH_SUB_C_SPACING_TAG
,
&
(
pNfapiMsg
->
prach_config
.
prach_sub_c_spacing
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_PRACH_ROOT_SEQUENCE_INDEX_TAG
,
&
(
pNfapiMsg
->
prach_config
.
num_prach_fd_occasions_list
[
0
].
prach_root_sequence_index
),
ppWritePackedMsg
,
end
,
&
pack_uint16_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_K1_TAG
,
&
(
pNfapiMsg
->
prach_config
.
num_prach_fd_occasions_list
[
0
].
k1
),
ppWritePackedMsg
,
end
,
&
pack_uint16_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_PRACH_ZERO_CORR_CONF_TAG
,
&
(
pNfapiMsg
->
prach_config
.
num_prach_fd_occasions_list
[
0
].
prach_zero_corr_conf
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_NUM_ROOT_SEQUENCES_TAG
,
&
(
pNfapiMsg
->
prach_config
.
num_prach_fd_occasions_list
[
0
].
num_root_sequences
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_SCS_COMMON_TAG
,
&
(
pNfapiMsg
->
ssb_config
.
scs_common
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_BCH_PAYLOAD_TAG
,
&
(
pNfapiMsg
->
ssb_config
.
bch_payload
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_SS_PBCH_POWER_TAG
,
&
(
pNfapiMsg
->
ssb_config
.
ss_pbch_power
),
ppWritePackedMsg
,
end
,
&
pack_uint32_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_BETA_PSS_TAG
,
&
(
pNfapiMsg
->
ssb_table
.
beta_pss
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_MIB_TAG
,
&
(
pNfapiMsg
->
ssb_table
.
MIB
),
ppWritePackedMsg
,
end
,
&
pack_uint32_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_SSB_MASK_TAG
,
&
(
pNfapiMsg
->
ssb_table
.
ssb_mask_list
[
0
].
ssb_mask
),
ppWritePackedMsg
,
end
,
&
pack_uint32_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_SSB_MASK_TAG
,
&
(
pNfapiMsg
->
ssb_table
.
ssb_mask_list
[
1
].
ssb_mask
),
ppWritePackedMsg
,
end
,
&
pack_uint32_tlv_value
)
&&
// TODO: Not sure what's going on, ssb_mask_list[1] packing below seems to match unpack, but is causing problems
// pack_tlv(NFAPI_NR_CONFIG_SSB_MASK_TAG, &(pNfapiMsg->ssb_table.ssb_mask_list[1].ssb_mask), ppWritePackedMsg, end, &pack_uint32_tlv_value) &&
pack_tlv
(
NFAPI_NR_CONFIG_BEAM_ID_TAG
,
&
(
pNfapiMsg
->
ssb_table
.
ssb_beam_id_list
[
0
].
beam_id
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_SSB_OFFSET_POINT_A_TAG
,
&
(
pNfapiMsg
->
ssb_table
.
ssb_offset_point_a
),
ppWritePackedMsg
,
end
,
&
pack_uint16_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_SSB_PERIOD_TAG
,
&
(
pNfapiMsg
->
ssb_table
.
ssb_period
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_SSB_SUBCARRIER_OFFSET_TAG
,
&
(
pNfapiMsg
->
ssb_table
.
ssb_subcarrier_offset
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_SS_PBCH_MULTIPLE_CARRIERS_IN_A_BAND_TAG
,
&
(
pNfapiMsg
->
ssb_table
.
ss_pbch_multiple_carriers_in_a_band
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_MULTIPLE_CELLS_SS_PBCH_IN_A_CARRIER_TAG
,
&
(
pNfapiMsg
->
ssb_table
.
multiple_cells_ss_pbch_in_a_carrier
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_CONFIG_TDD_PERIOD_TAG
,
&
(
pNfapiMsg
->
tdd_table
.
tdd_period
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_NFAPI_P7_PNF_ADDRESS_IPV4_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
p7_pnf_address_ipv4
),
ppWritePackedMsg
,
end
,
&
pack_ipv4_address_value
)
&&
pack_tlv
(
NFAPI_NR_NFAPI_P7_PNF_ADDRESS_IPV6_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
p7_pnf_address_ipv6
),
ppWritePackedMsg
,
end
,
&
pack_ipv6_address_value
)
&&
pack_tlv
(
NFAPI_NR_NFAPI_P7_PNF_PORT_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
p7_pnf_port
),
ppWritePackedMsg
,
end
,
&
pack_uint16_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_NFAPI_P7_VNF_ADDRESS_IPV4_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
p7_vnf_address_ipv4
),
ppWritePackedMsg
,
end
,
&
pack_ipv4_address_value
)
&&
pack_tlv
(
NFAPI_NR_NFAPI_P7_VNF_ADDRESS_IPV6_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
p7_vnf_address_ipv6
),
ppWritePackedMsg
,
end
,
&
pack_ipv6_address_value
)
&&
pack_tlv
(
NFAPI_NR_NFAPI_P7_VNF_PORT_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
p7_vnf_port
),
ppWritePackedMsg
,
end
,
&
pack_uint16_tlv_value
)
&&
//pack_tlv(NFAPI_NR_NFAPI_RF_BANDS_TAG, &(pNfapiMsg->nfapi_config.rf_bands), ppWritePackedMsg, end, &pack_rf_band
s_value) &&
pack_tlv
(
NFAPI_NR_NFAPI_
TIMING_INFO_MODE_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
timing_info_mode
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv
_value
)
&&
pack_tlv
(
NFAPI_NR_NFAPI_
TIMING_INFO_PERIOD_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
timing_info_period
),
ppWritePackedMsg
,
end
,
&
pack_uint8
_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_NFAPI_P7_PNF_ADDRESS_IPV4_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
p7_pnf_address_ipv4
),
ppWritePackedMsg
,
end
,
&
pack_ipv4_addres
s_value
)
&&
pack_tlv
(
NFAPI_NR_NFAPI_
P7_PNF_ADDRESS_IPV6_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
p7_pnf_address_ipv6
),
ppWritePackedMsg
,
end
,
&
pack_ipv6_address
_value
)
&&
pack_tlv
(
NFAPI_NR_NFAPI_
P7_PNF_PORT_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
p7_pnf_port
),
ppWritePackedMsg
,
end
,
&
pack_uint16
_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_NFAPI_TIMING_WINDOW_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
timing_window
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
//pack_tlv(NFAPI_NR_NFAPI_UPLINK_UES_PER_SUBFRAME_TAG, &(pNfapiMsg->nfapi_config.ul_ue_per_sf), ppWritePackedMsg, end, &pack_uint8_tlv_value) &&
pack_vendor_extension_tlv
(
pNfapiMsg
->
vendor_extension
,
ppWritePackedMsg
,
end
,
config
)
);
pack_tlv
(
NFAPI_NR_NFAPI_TIMING_INFO_MODE_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
timing_info_mode
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
)
&&
pack_tlv
(
NFAPI_NR_NFAPI_TIMING_INFO_PERIOD_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
timing_info_period
),
ppWritePackedMsg
,
end
,
&
pack_uint8_tlv_value
));
}
static
uint8_t
pack_nr_config_response
(
void
*
msg
,
uint8_t
**
ppWritePackedMsg
,
uint8_t
*
end
,
nfapi_p4_p5_codec_config_t
*
config
)
{
...
...
@@ -775,7 +777,7 @@ static uint8_t pack_nr_config_response(void *msg, uint8_t **ppWritePackedMsg, ui
static
uint8_t
pack_config_response
(
void
*
msg
,
uint8_t
**
ppWritePackedMsg
,
uint8_t
*
end
,
nfapi_p4_p5_codec_config_t
*
config
)
{
nfapi_config_response_t
*
pNfapiMsg
=
(
nfapi_config_response_t
*
)
msg
;
return
(
push
8
(
pNfapiMsg
->
error_code
,
ppWritePackedMsg
,
end
)
&&
return
(
push
32
(
pNfapiMsg
->
error_code
,
ppWritePackedMsg
,
end
)
&&
pack_vendor_extension_tlv
(
pNfapiMsg
->
vendor_extension
,
ppWritePackedMsg
,
end
,
config
)
);
}
...
...
@@ -1346,7 +1348,8 @@ static uint8_t unpack_pnf_config_request(uint8_t **ppReadPackedMsg, uint8_t *end
unpack_tlv_t
unpack_fns
[]
=
{
{
NFAPI_PNF_PHY_RF_TAG
,
&
pNfapiMsg
->
pnf_phy_rf_config
,
&
unpack_pnf_phy_rf_config_value
},
};
return
unpack_tlv_list
(
unpack_fns
,
sizeof
(
unpack_fns
)
/
sizeof
(
unpack_tlv_t
),
ppReadPackedMsg
,
end
,
config
,
&
pNfapiMsg
->
vendor_extension
);
return
(
pull8
(
ppReadPackedMsg
,
&
pNfapiMsg
->
num_tlvs
,
end
)
&&
unpack_tlv_list
(
unpack_fns
,
sizeof
(
unpack_fns
)
/
sizeof
(
unpack_tlv_t
),
ppReadPackedMsg
,
end
,
config
,
&
pNfapiMsg
->
vendor_extension
));
}
...
...
@@ -1722,13 +1725,14 @@ static uint8_t unpack_nr_config_request(uint8_t **ppReadPackedMsg, uint8_t *end,
for
(
int
i
=
0
;
i
<
40
;
i
++
)
pNfapiMsg
->
tdd_table
.
max_tdd_periodicity_list
[
i
].
max_num_of_symbol_per_slot_list
=
(
nfapi_nr_max_num_of_symbol_per_slot_t
*
)
malloc
(
14
*
sizeof
(
nfapi_nr_max_num_of_symbol_per_slot_t
));
pNfapiMsg
->
prach_config
.
num_prach_fd_occasions_list
=
(
nfapi_nr_num_prach_fd_occasions_t
*
)
malloc
(
sizeof
(
nfapi_nr_num_prach_fd_occasions_t
));
for
(
int
i
=
0
;
i
<
40
;
i
++
){
//unpacking tdd slot config
for
(
int
symbol
=
0
;
symbol
<
14
;
symbol
++
){
pull8
(
ppReadPackedMsg
,
&
pNfapiMsg
->
tdd_table
.
max_tdd_periodicity_list
[
i
].
max_num_of_symbol_per_slot_list
[
symbol
].
slot_config
.
value
,
end
);
}
}
pNfapiMsg
->
prach_config
.
num_prach_fd_occasions_list
=
(
nfapi_nr_num_prach_fd_occasions_t
*
)
malloc
(
sizeof
(
nfapi_nr_num_prach_fd_occasions_t
));
unpack_tlv_t
unpack_fns
[]
=
{
{
NFAPI_NR_CONFIG_DL_BANDWIDTH_TAG
,
&
(
pNfapiMsg
->
carrier_config
.
dl_bandwidth
),
&
unpack_uint16_tlv_value
},
...
...
@@ -1741,8 +1745,13 @@ static uint8_t unpack_nr_config_request(uint8_t **ppReadPackedMsg, uint8_t *end,
{
NFAPI_NR_CONFIG_UL_K0_TAG
,
&
(
pNfapiMsg
->
carrier_config
.
ul_k0
[
1
]),
&
unpack_uint16_tlv_value
},
{
NFAPI_NR_CONFIG_UPLINK_BANDWIDTH_TAG
,
&
(
pNfapiMsg
->
carrier_config
.
uplink_bandwidth
),
&
unpack_uint16_tlv_value
},
{
NFAPI_NR_CONFIG_UPLINK_FREQUENCY_TAG
,
&
(
pNfapiMsg
->
carrier_config
.
uplink_frequency
),
&
unpack_uint32_tlv_value
},
{
NFAPI_NR_CONFIG_FREQUENCY_SHIFT_7P5KHZ_TAG
,
&
(
pNfapiMsg
->
carrier_config
.
frequency_shift_7p5khz
),
&
unpack_uint8_tlv_value
},
{
NFAPI_NR_CONFIG_FRAME_DUPLEX_TYPE_TAG
,
&
(
pNfapiMsg
->
cell_config
.
frame_duplex_type
),
&
unpack_uint8_tlv_value
},
{
NFAPI_NR_CONFIG_PHY_CELL_ID_TAG
,
&
(
pNfapiMsg
->
cell_config
.
phy_cell_id
),
&
unpack_uint8_tlv_value
},
{
NFAPI_NR_CONFIG_PHY_CELL_ID_TAG
,
&
(
pNfapiMsg
->
cell_config
.
phy_cell_id
),
&
unpack_uint16_tlv_value
},
{
NFAPI_NR_CONFIG_PRACH_MULTIPLE_CARRIERS_IN_A_BAND_TAG
,
&
(
pNfapiMsg
->
prach_config
.
prach_multiple_carriers_in_a_band
),
&
unpack_uint8_tlv_value
},
{
NFAPI_NR_CONFIG_PRACH_CONFIG_INDEX_TAG
,
&
(
pNfapiMsg
->
prach_config
.
prach_ConfigurationIndex
),
&
unpack_uint8_tlv_value
},
{
NFAPI_NR_CONFIG_NUM_PRACH_FD_OCCASIONS_TAG
,
&
(
pNfapiMsg
->
prach_config
.
num_prach_fd_occasions
),
&
unpack_uint8_tlv_value
},
{
NFAPI_NR_CONFIG_PRACH_SEQUENCE_LENGTH_TAG
,
&
(
pNfapiMsg
->
prach_config
.
prach_sequence_length
),
&
unpack_uint8_tlv_value
},
{
NFAPI_NR_CONFIG_RESTRICTED_SET_CONFIG_TAG
,
&
(
pNfapiMsg
->
prach_config
.
restricted_set_config
),
&
unpack_uint8_tlv_value
},
...
...
@@ -1754,24 +1763,32 @@ static uint8_t unpack_nr_config_request(uint8_t **ppReadPackedMsg, uint8_t *end,
{
NFAPI_NR_CONFIG_NUM_ROOT_SEQUENCES_TAG
,
&
(
pNfapiMsg
->
prach_config
.
num_prach_fd_occasions_list
[
0
].
num_root_sequences
),
&
unpack_uint8_tlv_value
},
{
NFAPI_NR_CONFIG_SCS_COMMON_TAG
,
&
(
pNfapiMsg
->
ssb_config
.
scs_common
),
&
unpack_uint8_tlv_value
},
{
NFAPI_NR_CONFIG_BCH_PAYLOAD_TAG
,
&
(
pNfapiMsg
->
ssb_config
.
bch_payload
),
&
unpack_uint8_tlv_value
},
{
NFAPI_NR_CONFIG_SS_PBCH_POWER_TAG
,
&
(
pNfapiMsg
->
ssb_config
.
ss_pbch_power
),
&
unpack_uint32_tlv_value
},
{
NFAPI_NR_CONFIG_BETA_PSS_TAG
,
&
(
pNfapiMsg
->
ssb_table
.
beta_pss
),
&
unpack_uint8_tlv_value
},
{
NFAPI_NR_CONFIG_MIB_TAG
,
&
(
pNfapiMsg
->
ssb_table
.
MIB
),
&
unpack_uint32_tlv_value
},
{
NFAPI_NR_CONFIG_SSB_MASK_TAG
,
&
(
pNfapiMsg
->
ssb_table
.
ssb_mask_list
[
0
].
ssb_mask
),
&
unpack_uint32_tlv_value
},
{
NFAPI_NR_CONFIG_SSB_MASK_TAG
,
&
(
pNfapiMsg
->
ssb_table
.
ssb_mask_list
[
1
].
ssb_mask
),
&
unpack_uint32_tlv_value
},
// TODO: Not sure what's going on, ssb_mask_list[1] unpacking below seems to match pack, but is causing problems
// { NFAPI_NR_CONFIG_SSB_MASK_TAG, &(pNfapiMsg->ssb_table.ssb_mask_list[1].ssb_mask), &unpack_uint32_tlv_value},
{
NFAPI_NR_CONFIG_BEAM_ID_TAG
,
&
(
pNfapiMsg
->
ssb_table
.
ssb_beam_id_list
[
0
].
beam_id
),
&
unpack_uint8_tlv_value
},
{
NFAPI_NR_CONFIG_SSB_OFFSET_POINT_A_TAG
,
&
(
pNfapiMsg
->
ssb_table
.
ssb_offset_point_a
),
&
unpack_uint16_tlv_value
},
{
NFAPI_NR_CONFIG_SSB_PERIOD_TAG
,
&
(
pNfapiMsg
->
ssb_table
.
ssb_period
),
&
unpack_uint8_tlv_value
},
{
NFAPI_NR_CONFIG_SSB_SUBCARRIER_OFFSET_TAG
,
&
(
pNfapiMsg
->
ssb_table
.
ssb_subcarrier_offset
),
&
unpack_uint8_tlv_value
},
{
NFAPI_NR_CONFIG_SS_PBCH_MULTIPLE_CARRIERS_IN_A_BAND_TAG
,
&
(
pNfapiMsg
->
ssb_table
.
ss_pbch_multiple_carriers_in_a_band
),
&
unpack_uint8_tlv_value
},
{
NFAPI_NR_CONFIG_MULTIPLE_CELLS_SS_PBCH_IN_A_CARRIER_TAG
,
&
(
pNfapiMsg
->
ssb_table
.
multiple_cells_ss_pbch_in_a_carrier
),
&
unpack_uint8_tlv_value
},
{
NFAPI_NR_CONFIG_TDD_PERIOD_TAG
,
&
(
pNfapiMsg
->
tdd_table
.
tdd_period
),
&
unpack_uint8_tlv_value
},
{
NFAPI_NR_NFAPI_P7_PNF_ADDRESS_IPV6_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
p7_pnf_address_ipv6
),
&
unpack_ipv6_address_value
},
{
NFAPI_NR_NFAPI_P7_PNF_PORT_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
p7_pnf_port
),
&
unpack_uint16_tlv_value
},
{
NFAPI_NR_NFAPI_P7_VNF_ADDRESS_IPV4_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
p7_vnf_address_ipv4
),
&
unpack_ipv4_address_value
},
{
NFAPI_NR_NFAPI_P7_VNF_ADDRESS_IPV6_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
p7_vnf_address_ipv6
),
&
unpack_ipv6_address_value
},
{
NFAPI_NR_NFAPI_P7_VNF_PORT_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
p7_vnf_port
),
&
unpack_uint16_tlv_value
},
{
NFAPI_NR_NFAPI_P7_PNF_ADDRESS_IPV4_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
p7_pnf_address_ipv4
),
&
unpack_ipv4_address_value
},
{
NFAPI_NR_NFAPI_P7_PNF_ADDRESS_IPV6_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
p7_pnf_address_ipv6
),
&
unpack_ipv6_address_value
},
{
NFAPI_NR_NFAPI_P7_PNF_PORT_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
p7_pnf_port
),
&
unpack_uint16_tlv_value
},
{
NFAPI_NR_NFAPI_TIMING_WINDOW_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
timing_window
),
&
unpack_uint8_tlv_value
},
{
NFAPI_NR_NFAPI_TIMING_INFO_MODE_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
timing_info_mode
),
&
unpack_uint8_tlv_value
},
{
NFAPI_NR_NFAPI_TIMING_INFO_PERIOD_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
timing_info_period
),
&
unpack_uint8_tlv_value
},
{
NFAPI_NR_NFAPI_TIMING_WINDOW_TAG
,
&
(
pNfapiMsg
->
nfapi_config
.
timing_window
),
&
unpack_uint8_tlv_value
},
};
return
(
pull8
(
ppReadPackedMsg
,
&
pNfapiMsg
->
num_tlv
,
end
)
&&
...
...
openair2/RRC/LTE/MESSAGES/asn1_msg.c
View file @
a6d48412
...
...
@@ -4293,7 +4293,7 @@ ssize_t do_nrMeasurementReport(uint8_t *buffer,
LTE_MeasResultListEUTRA_t
*
measResultListEUTRA2
=&
measResultNeighCells
->
choice
.
measResultListEUTRA
;
asn1cSequenceAdd
(
measResultListEUTRA2
->
list
,
struct
LTE_MeasResultEUTRA
,
measresulteutra_list
);
measresulteutra_list
->
physCellId
=
phy_id
;
//
asn1cCalloc(measresulteutra_list->cgi_Info, measresult_cgi2);
asn1cCalloc
(
measresulteutra_list
->
cgi_Info
,
measresult_cgi2
);
//measresult_cgi2->cellGlobalId= {0};
//measresult_cgi2->trackingAreaCode= {0};
struct
LTE_MeasResultEUTRA__measResult
*
measResult
=
&
measresulteutra_list
->
measResult
;
...
...
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