Commit ff7c5f5e authored by Guy De Souza's avatar Guy De Souza

DL freq fix

parent 36717c68
...@@ -83,7 +83,7 @@ void nr_feptx0(RU_t *ru,int slot) { ...@@ -83,7 +83,7 @@ void nr_feptx0(RU_t *ru,int slot) {
12, 12,
fp->nb_prefix_samples, fp->nb_prefix_samples,
CYCLIC_PREFIX); CYCLIC_PREFIX);
else normal_prefix_mod(&ru->common.txdataF_BF[aa][slot*slot_sizeF], else nr_normal_prefix_mod(&ru->common.txdataF_BF[aa][slot*slot_sizeF],
(int*)&ru->common.txdata[aa][slot_offset], (int*)&ru->common.txdata[aa][slot_offset],
14, 14,
fp); fp);
...@@ -230,12 +230,12 @@ void nr_feptx_ofdm(RU_t *ru) { ...@@ -230,12 +230,12 @@ void nr_feptx_ofdm(RU_t *ru) {
fp->nb_prefix_samples, fp->nb_prefix_samples,
CYCLIC_PREFIX); CYCLIC_PREFIX);
} else { } else {
normal_prefix_mod(&ru->common.txdataF_BF[aa][slot_offset_F], nr_normal_prefix_mod(&ru->common.txdataF_BF[aa][slot_offset_F],
dummy_tx_b, dummy_tx_b,
14, 14,
fp); fp);
// if S-subframe generate first slot only // if S-subframe generate first slot only
if (subframe_select(fp,subframe) == SF_DL) if (nr_subframe_select(fp,subframe) == SF_DL)
nr_normal_prefix_mod(&ru->common.txdataF_BF[aa][slot_offset_F+slot_sizeF], nr_normal_prefix_mod(&ru->common.txdataF_BF[aa][slot_offset_F+slot_sizeF],
dummy_tx_b+(fp->samples_per_subframe / fp->slots_per_subframe), dummy_tx_b+(fp->samples_per_subframe / fp->slots_per_subframe),
14, 14,
......
...@@ -1241,7 +1241,7 @@ void fill_rf_config(RU_t *ru, char *rf_config_file) { ...@@ -1241,7 +1241,7 @@ void fill_rf_config(RU_t *ru, char *rf_config_file) {
for (i=0; i<ru->nb_tx; i++) { for (i=0; i<ru->nb_tx; i++) {
cfg->tx_freq[i] = (double)fp->dl_CarrierFreq; cfg->tx_freq[i] = (double)gNB_config->nfapi_config.earfcn.value; //fp->dl_CarrierFreq;
cfg->rx_freq[i] = (double)fp->ul_CarrierFreq; cfg->rx_freq[i] = (double)fp->ul_CarrierFreq;
cfg->tx_gain[i] = ru->att_tx; cfg->tx_gain[i] = ru->att_tx;
......
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