Skip to content

Commit 7f3cafd

Browse files
carlo-galcodebot
authored andcommitted
gnb: enable PRACH format B4 in the gnb
Signed-off-by: Carlo Galiotto <[email protected]>
1 parent 164f6d8 commit 7f3cafd

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

apps/gnb/gnb_appconfig_validators.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,16 @@ static bool validate_pusch_cell_app_config(const pusch_appconfig& config)
120120
/// Validates the given PRACH cell application configuration. Returns true on success, otherwise false.
121121
static bool validate_prach_cell_app_config(const prach_appconfig& config, nr_band band)
122122
{
123-
bool is_paired_spectrum = band_helper::is_paired_spectrum(band);
124-
const unsigned max_supported_prach_cfg_idx = is_paired_spectrum ? 107U : 86U;
125-
if (config.prach_config_index > max_supported_prach_cfg_idx) {
126-
fmt::print("PRACH configuration index {} not supported. For {}, the max PRACH configuration index "
127-
"supported is {} \n",
123+
bool is_paired_spectrum = band_helper::is_paired_spectrum(band);
124+
const bool is_prach_cfg_idx_supported =
125+
is_paired_spectrum
126+
? config.prach_config_index <= 107U or (config.prach_config_index > 197U and config.prach_config_index < 219U)
127+
: config.prach_config_index <= 86U or (config.prach_config_index > 144U and config.prach_config_index < 169U);
128+
if (not is_prach_cfg_idx_supported) {
129+
fmt::print("PRACH configuration index {} not supported. For {}, the supported PRACH configuration indices are {}\n",
128130
config.prach_config_index,
129131
is_paired_spectrum ? "FDD" : "TDD",
130-
max_supported_prach_cfg_idx);
132+
is_paired_spectrum ? "[0, 107] and [198, 218]" : "[0, 86] and [145, 168]");
131133
return false;
132134
}
133135

0 commit comments

Comments
 (0)