Commit 3ac6e3e5 authored by Wang Tsu-Han's avatar Wang Tsu-Han Committed by Florian Kaltenberger

fixing for sampling rate

parent 0911624f
...@@ -1079,13 +1079,10 @@ void fill_rf_config(RU_t *ru, char *rf_config_file) { ...@@ -1079,13 +1079,10 @@ void fill_rf_config(RU_t *ru, char *rf_config_file) {
} else if (mu == NR_MU_1) { } else if (mu == NR_MU_1) {
if(N_RB == 273) { if(N_RB == 273) {
if (fp->threequarter_fs) { if (fp->threequarter_fs) {
cfg->sample_rate=115.2e6; AssertFatal(0 == 1,"three quarter sampling not supported for N_RB 273\n");
cfg->samples_per_frame = 1152000;
cfg->tx_bw = 100e6;
cfg->rx_bw = 100e6;
} else { } else {
cfg->sample_rate=153.6e6; cfg->sample_rate=122.88e6;
cfg->samples_per_frame = 1536000; cfg->samples_per_frame = 1228800;
cfg->tx_bw = 100e6; cfg->tx_bw = 100e6;
cfg->rx_bw = 100e6; cfg->rx_bw = 100e6;
} }
......
...@@ -1191,22 +1191,6 @@ extern "C" { ...@@ -1191,22 +1191,6 @@ extern "C" {
LOG_I(HW,"%s() sample_rate:%u\n", __FUNCTION__, (int)openair0_cfg[0].sample_rate); LOG_I(HW,"%s() sample_rate:%u\n", __FUNCTION__, (int)openair0_cfg[0].sample_rate);
switch ((int)openair0_cfg[0].sample_rate) { switch ((int)openair0_cfg[0].sample_rate) {
case 153600000:
// from usrp_time_offset
//openair0_cfg[0].samples_per_packet = 2048;
openair0_cfg[0].tx_sample_advance = 15; //to be checked
openair0_cfg[0].tx_bw = 100e6;
openair0_cfg[0].rx_bw = 100e6;
break;
case 115200000:
// from usrp_time_offset
//openair0_cfg[0].samples_per_packet = 2048;
openair0_cfg[0].tx_sample_advance = 15; //to be checked
openair0_cfg[0].tx_bw = 100e6;
openair0_cfg[0].rx_bw = 100e6;
break;
case 122880000: case 122880000:
// from usrp_time_offset // from usrp_time_offset
//openair0_cfg[0].samples_per_packet = 2048; //openair0_cfg[0].samples_per_packet = 2048;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment