mirror of https://github.com/PentHertz/srsLTE.git
Fixes 15MHz for MIMO srsenb
This commit is contained in:
parent
f25e34aad7
commit
608e5ba088
|
@ -82,11 +82,19 @@ void txrx::run_thread()
|
|||
uint32_t sf_len = SRSLTE_SF_LEN_PRB(worker_com->cell.nof_prb);
|
||||
|
||||
float samp_rate = srslte_sampling_freq_hz(worker_com->cell.nof_prb);
|
||||
#if 0
|
||||
if (30720%((int) samp_rate/1000) == 0) {
|
||||
radio_h->set_master_clock_rate(30.72e6);
|
||||
} else {
|
||||
radio_h->set_master_clock_rate(23.04e6);
|
||||
}
|
||||
#else
|
||||
if (samp_rate < 10e6) {
|
||||
radio_h->set_master_clock_rate(4 * samp_rate);
|
||||
} else {
|
||||
radio_h->set_master_clock_rate(samp_rate);
|
||||
}
|
||||
#endif
|
||||
|
||||
log_h->console("Setting Sampling frequency %.2f MHz\n", (float) samp_rate/1000000);
|
||||
|
||||
|
|
Loading…
Reference in New Issue