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
8800789b
Commit
8800789b
authored
Mar 25, 2021
by
rmagueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix preamble detection for NSA
parent
114508c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
openair2/LAYER2/NR_MAC_UE/config_ue.c
openair2/LAYER2/NR_MAC_UE/config_ue.c
+6
-2
openair2/LAYER2/NR_MAC_gNB/config.c
openair2/LAYER2/NR_MAC_gNB/config.c
+5
-1
No files found.
openair2/LAYER2/NR_MAC_UE/config_ue.c
View file @
8800789b
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
#include "NR_MAC_UE/mac_proto.h"
#include "NR_MAC_UE/mac_proto.h"
#include "NR_MAC-CellGroupConfig.h"
#include "NR_MAC-CellGroupConfig.h"
#include "LAYER2/NR_MAC_COMMON/nr_mac_common.h"
#include "LAYER2/NR_MAC_COMMON/nr_mac_common.h"
#include "executables/softmodem-common.h"
int
set_tdd_config_nr_ue
(
fapi_nr_config_request_t
*
cfg
,
int
set_tdd_config_nr_ue
(
fapi_nr_config_request_t
*
cfg
,
int
mu
,
int
mu
,
...
@@ -310,8 +311,11 @@ void config_common_ue(NR_UE_MAC_INST_t *mac,
...
@@ -310,8 +311,11 @@ void config_common_ue(NR_UE_MAC_INST_t *mac,
cfg
->
prach_config
.
num_prach_fd_occasions_list
[
i
].
prach_root_sequence_index
=
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
->
prach_RootSequenceIndex
.
choice
.
l139
;
cfg
->
prach_config
.
num_prach_fd_occasions_list
[
i
].
prach_root_sequence_index
=
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
->
prach_RootSequenceIndex
.
choice
.
l139
;
else
else
cfg
->
prach_config
.
num_prach_fd_occasions_list
[
i
].
prach_root_sequence_index
=
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
->
prach_RootSequenceIndex
.
choice
.
l839
;
cfg
->
prach_config
.
num_prach_fd_occasions_list
[
i
].
prach_root_sequence_index
=
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
->
prach_RootSequenceIndex
.
choice
.
l839
;
if
(
get_softmodem_params
()
->
sa
)
{
cfg
->
prach_config
.
num_prach_fd_occasions_list
[
i
].
k1
=
NRRIV2PRBOFFSET
(
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
genericParameters
.
locationAndBandwidth
,
MAX_BWP_SIZE
)
+
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
->
rach_ConfigGeneric
.
msg1_FrequencyStart
+
(
get_N_RA_RB
(
cfg
->
prach_config
.
prach_sub_c_spacing
,
scc
->
uplinkConfigCommon
->
frequencyInfoUL
->
scs_SpecificCarrierList
.
list
.
array
[
0
]
->
subcarrierSpacing
)
*
i
);
cfg
->
prach_config
.
num_prach_fd_occasions_list
[
i
].
k1
=
NRRIV2PRBOFFSET
(
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
genericParameters
.
locationAndBandwidth
,
MAX_BWP_SIZE
)
+
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
->
rach_ConfigGeneric
.
msg1_FrequencyStart
+
(
get_N_RA_RB
(
cfg
->
prach_config
.
prach_sub_c_spacing
,
scc
->
uplinkConfigCommon
->
frequencyInfoUL
->
scs_SpecificCarrierList
.
list
.
array
[
0
]
->
subcarrierSpacing
)
*
i
);
}
else
{
cfg
->
prach_config
.
num_prach_fd_occasions_list
[
i
].
k1
=
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
->
rach_ConfigGeneric
.
msg1_FrequencyStart
+
(
get_N_RA_RB
(
cfg
->
prach_config
.
prach_sub_c_spacing
,
scc
->
uplinkConfigCommon
->
frequencyInfoUL
->
scs_SpecificCarrierList
.
list
.
array
[
0
]
->
subcarrierSpacing
)
*
i
);
}
cfg
->
prach_config
.
num_prach_fd_occasions_list
[
i
].
prach_zero_corr_conf
=
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
->
rach_ConfigGeneric
.
zeroCorrelationZoneConfig
;
cfg
->
prach_config
.
num_prach_fd_occasions_list
[
i
].
prach_zero_corr_conf
=
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
->
rach_ConfigGeneric
.
zeroCorrelationZoneConfig
;
cfg
->
prach_config
.
num_prach_fd_occasions_list
[
i
].
num_root_sequences
=
compute_nr_root_seq
(
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
,
nb_preambles
,
mac
->
frame_type
,
frequency_range
);
cfg
->
prach_config
.
num_prach_fd_occasions_list
[
i
].
num_root_sequences
=
compute_nr_root_seq
(
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
,
nb_preambles
,
mac
->
frame_type
,
frequency_range
);
//cfg->prach_config.num_prach_fd_occasions_list[i].num_unused_root_sequences = ???
//cfg->prach_config.num_prach_fd_occasions_list[i].num_unused_root_sequences = ???
...
...
openair2/LAYER2/NR_MAC_gNB/config.c
View file @
8800789b
...
@@ -209,7 +209,11 @@ void config_common(int Mod_idP, int pdsch_AntennaPorts, NR_ServingCellConfigComm
...
@@ -209,7 +209,11 @@ void config_common(int Mod_idP, int pdsch_AntennaPorts, NR_ServingCellConfigComm
cfg
->
prach_config
.
num_prach_fd_occasions_list
[
i
].
prach_root_sequence_index
.
tl
.
tag
=
NFAPI_NR_CONFIG_PRACH_ROOT_SEQUENCE_INDEX_TAG
;
cfg
->
prach_config
.
num_prach_fd_occasions_list
[
i
].
prach_root_sequence_index
.
tl
.
tag
=
NFAPI_NR_CONFIG_PRACH_ROOT_SEQUENCE_INDEX_TAG
;
cfg
->
num_tlv
++
;
cfg
->
num_tlv
++
;
cfg
->
prach_config
.
num_prach_fd_occasions_list
[
i
].
k1
.
value
=
NRRIV2PRBOFFSET
(
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
genericParameters
.
locationAndBandwidth
,
MAX_BWP_SIZE
)
+
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
->
rach_ConfigGeneric
.
msg1_FrequencyStart
+
(
get_N_RA_RB
(
cfg
->
prach_config
.
prach_sub_c_spacing
.
value
,
scc
->
uplinkConfigCommon
->
frequencyInfoUL
->
scs_SpecificCarrierList
.
list
.
array
[
0
]
->
subcarrierSpacing
)
*
i
);
cfg
->
prach_config
.
num_prach_fd_occasions_list
[
i
].
k1
.
value
=
NRRIV2PRBOFFSET
(
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
genericParameters
.
locationAndBandwidth
,
MAX_BWP_SIZE
)
+
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
->
rach_ConfigGeneric
.
msg1_FrequencyStart
+
(
get_N_RA_RB
(
cfg
->
prach_config
.
prach_sub_c_spacing
.
value
,
scc
->
uplinkConfigCommon
->
frequencyInfoUL
->
scs_SpecificCarrierList
.
list
.
array
[
0
]
->
subcarrierSpacing
)
*
i
);
//k1= msg1_FrequencyStart + 12 (no. of FDM)(RB for PRACH occasion);
if
(
get_softmodem_params
()
->
sa
)
{
cfg
->
prach_config
.
num_prach_fd_occasions_list
[
i
].
k1
.
value
=
NRRIV2PRBOFFSET
(
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
genericParameters
.
locationAndBandwidth
,
MAX_BWP_SIZE
)
+
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
->
rach_ConfigGeneric
.
msg1_FrequencyStart
+
(
get_N_RA_RB
(
cfg
->
prach_config
.
prach_sub_c_spacing
.
value
,
scc
->
uplinkConfigCommon
->
frequencyInfoUL
->
scs_SpecificCarrierList
.
list
.
array
[
0
]
->
subcarrierSpacing
)
*
i
);
}
else
{
cfg
->
prach_config
.
num_prach_fd_occasions_list
[
i
].
k1
.
value
=
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
->
rach_ConfigGeneric
.
msg1_FrequencyStart
+
(
get_N_RA_RB
(
cfg
->
prach_config
.
prach_sub_c_spacing
.
value
,
scc
->
uplinkConfigCommon
->
frequencyInfoUL
->
scs_SpecificCarrierList
.
list
.
array
[
0
]
->
subcarrierSpacing
)
*
i
);
}
cfg
->
prach_config
.
num_prach_fd_occasions_list
[
i
].
k1
.
tl
.
tag
=
NFAPI_NR_CONFIG_K1_TAG
;
cfg
->
prach_config
.
num_prach_fd_occasions_list
[
i
].
k1
.
tl
.
tag
=
NFAPI_NR_CONFIG_K1_TAG
;
cfg
->
num_tlv
++
;
cfg
->
num_tlv
++
;
cfg
->
prach_config
.
num_prach_fd_occasions_list
[
i
].
prach_zero_corr_conf
.
value
=
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
->
rach_ConfigGeneric
.
zeroCorrelationZoneConfig
;
cfg
->
prach_config
.
num_prach_fd_occasions_list
[
i
].
prach_zero_corr_conf
.
value
=
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
->
rach_ConfigGeneric
.
zeroCorrelationZoneConfig
;
...
...
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