Remove threequarter_fs, log_level; make functions static
2 functions with same name as static to make it clearer they are separate. remove unused copy of log_level global var. remove threequarter sampling variable from the radio board general configuration. The decision of sampling rate is made above. A better behavior can be done later, like ask to the radio board what sampling rate it can do,then use it to decide the appropiate sampling rate from the gNB configuration. In UE case, it is another issue, as the sampling rate would change after we decode SIB1, but also it is not developped yet.
This commit is contained in:
committed by
Robert Schmidt
parent
78f12dbc03
commit
c4f4f8d919
@@ -237,6 +237,8 @@ int main(int argc, char *argv[])
|
||||
int max_ldpc_iterations = 5;
|
||||
int num_antennas_per_thread = 1;
|
||||
uint32_t log_format = 0;
|
||||
int threequarter_fs = 0;
|
||||
|
||||
if ((uniqCfg = load_configmodule(argc, argv, CONFIG_ENABLECMDLINEONLY)) == 0) {
|
||||
exit_fun("[NR_ULSIM] Error, configuration module init failed\n");
|
||||
}
|
||||
@@ -351,7 +353,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
case 'k':
|
||||
printf("Setting threequarter_fs_flag\n");
|
||||
openair0_cfg[0].threequarter_fs= 1;
|
||||
threequarter_fs = 1;
|
||||
break;
|
||||
|
||||
case 'm':
|
||||
@@ -584,7 +586,7 @@ int main(int argc, char *argv[])
|
||||
uint32_t samples;
|
||||
get_samplerate_and_bw(mu,
|
||||
N_RB_DL,
|
||||
openair0_cfg[0].threequarter_fs,
|
||||
threequarter_fs,
|
||||
&sampling_frequency,
|
||||
&samples,
|
||||
&tx_bandwidth,
|
||||
|
||||
Reference in New Issue
Block a user