Commit 34aa7fb7 authored by Guy De Souza's avatar Guy De Souza

Carrier Freq update

parent ff7c5f5e
...@@ -338,6 +338,8 @@ void nr_phy_config_request(PHY_VARS_gNB *gNB) ...@@ -338,6 +338,8 @@ void nr_phy_config_request(PHY_VARS_gNB *gNB)
nfapi_config_request_t *gNB_config = &gNB->gNB_config; nfapi_config_request_t *gNB_config = &gNB->gNB_config;
//overwrite for new NR parameters //overwrite for new NR parameters
gNB_config->nfapi_config.rf_bands.rf_band[0] = 22;
gNB_config->nfapi_config.earfcn.value = 6600;
gNB_config->subframe_config.numerology_index_mu.value = 1; gNB_config->subframe_config.numerology_index_mu.value = 1;
gNB_config->subframe_config.duplex_mode.value = FDD; gNB_config->subframe_config.duplex_mode.value = FDD;
gNB_config->rf_config.tx_antenna_ports.value = 1; gNB_config->rf_config.tx_antenna_ports.value = 1;
...@@ -349,6 +351,8 @@ void nr_phy_config_request(PHY_VARS_gNB *gNB) ...@@ -349,6 +351,8 @@ void nr_phy_config_request(PHY_VARS_gNB *gNB)
gNB->mac_enabled = 1; gNB->mac_enabled = 1;
fp->dl_CarrierFreq = from_earfcn(gNB_config->nfapi_config.rf_bands.rf_band[0],gNB_config->nfapi_config.earfcn.value);
fp->ul_CarrierFreq = fp->dl_CarrierFreq - (get_uldl_offset(gNB_config->nfapi_config.rf_bands.rf_band[0])*100000);
fp->threequarter_fs = 0; fp->threequarter_fs = 0;
nr_init_frame_parms(gNB_config, fp); nr_init_frame_parms(gNB_config, fp);
......
...@@ -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)gNB_config->nfapi_config.earfcn.value; //fp->dl_CarrierFreq; cfg->tx_freq[i] = (double)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