diff --git a/openair1/PHY/INIT/nr_init.c b/openair1/PHY/INIT/nr_init.c index 8a52a24597db64f604275776bc42d3227ad6ddcc..d03beb1e31ff6436ada5d9af4626cff2c56f2cb0 100644 --- a/openair1/PHY/INIT/nr_init.c +++ b/openair1/PHY/INIT/nr_init.c @@ -377,8 +377,8 @@ void nr_phy_config_request_sim(PHY_VARS_gNB *gNB,int N_RB_DL,int N_RB_UL,int mu) nfapi_nr_config_request_t *gNB_config = &gNB->gNB_config; //overwrite for new NR parameters - gNB_config->nfapi_config.rf_bands.rf_band[0] = 78; - gNB_config->nfapi_config.nrarfcn.value = 620000; + gNB_config->nfapi_config.rf_bands.rf_band[0] = 22; //78; + gNB_config->nfapi_config.nrarfcn.value = 6600; //620000; gNB_config->subframe_config.numerology_index_mu.value = mu; gNB_config->subframe_config.duplex_mode.value = TDD; gNB_config->rf_config.tx_antenna_ports.value = 1; @@ -392,7 +392,7 @@ void nr_phy_config_request_sim(PHY_VARS_gNB *gNB,int N_RB_DL,int N_RB_UL,int mu) gNB->mac_enabled = 1; - fp->dl_CarrierFreq = from_nrarfcn(gNB_config->nfapi_config.rf_bands.rf_band[0],gNB_config->nfapi_config.nrarfcn.value); + fp->dl_CarrierFreq = from_earfcn(gNB_config->nfapi_config.rf_bands.rf_band[0],gNB_config->nfapi_config.nrarfcn.value); fp->ul_CarrierFreq = fp->dl_CarrierFreq - (get_uldl_offset(gNB_config->nfapi_config.rf_bands.rf_band[0])*100000); fp->threequarter_fs = 0; @@ -433,7 +433,7 @@ void nr_phy_config_request(NR_PHY_Config_t *phy_config) RC.gNB[Mod_id][CC_id]->mac_enabled = 1; - fp->dl_CarrierFreq = from_nrarfcn(gNB_config->nfapi_config.rf_bands.rf_band[0],gNB_config->nfapi_config.nrarfcn.value); + fp->dl_CarrierFreq = from_earfcn(gNB_config->nfapi_config.rf_bands.rf_band[0],gNB_config->nfapi_config.nrarfcn.value); fp->ul_CarrierFreq = fp->dl_CarrierFreq - (get_uldl_offset(gNB_config->nfapi_config.rf_bands.rf_band[0])*100000); fp->threequarter_fs = 0; diff --git a/openair1/PHY/NR_TRANSPORT/nr_dci_tools.c b/openair1/PHY/NR_TRANSPORT/nr_dci_tools.c index 822927a342f4933f5c266156b8b2a5dc706b2b82..40a3812e1447eee291071cf4d670f8d60b5c24d2 100644 --- a/openair1/PHY/NR_TRANSPORT/nr_dci_tools.c +++ b/openair1/PHY/NR_TRANSPORT/nr_dci_tools.c @@ -129,7 +129,7 @@ void nr_fill_dci_and_dlsch(PHY_VARS_gNB *gNB, dci_alloc->pdcch_params.rnti_type, N_RB, cfg); - Assert_Fatal(dci_alloc->size<=64, "DCI sizes above 64 bits not yet supported"); + AssertFatal(dci_alloc->size<=64, "DCI sizes above 64 bits not yet supported"); n_shift = (dci_alloc->pdcch_params.config_type == NFAPI_NR_CSET_CONFIG_MIB_SIB1)? cfg->sch_config.physical_cell_id.value : dci_alloc->pdcch_params.shift_index; nr_fill_cce_list(dci_alloc, n_shift, cand_idx); diff --git a/openair2/LAYER2/NR_MAC_gNB/config.c b/openair2/LAYER2/NR_MAC_gNB/config.c index 13389f8f86dce5740f216cb9d69c1d41d89c64ea..99e609a108ec05b487df5cbbd2df0602e8a015dd 100644 --- a/openair2/LAYER2/NR_MAC_gNB/config.c +++ b/openair2/LAYER2/NR_MAC_gNB/config.c @@ -179,7 +179,7 @@ void config_common(int Mod_idP, cfg->nfapi_config.rf_bands.tl.tag = NFAPI_PHY_RF_BANDS_TAG; cfg->num_tlv++; - cfg->nfapi_config.nrarfcn.value = to_nrarfcn(nr_bandP,dl_CarrierFreqP,dl_BandwidthP); + cfg->nfapi_config.nrarfcn.value = to_earfcn(nr_bandP,dl_CarrierFreqP,dl_BandwidthP); cfg->nfapi_config.nrarfcn.tl.tag = NFAPI_NR_NFAPI_NRARFCN_TAG; cfg->num_tlv++; @@ -209,7 +209,7 @@ int rrc_mac_config_req_gNB(module_id_t Mod_idP, int CC_idP, int p_gNB, int nr_bandP, - int dl_CarrierFreqP, + uint32_t dl_CarrierFreqP, int dl_BandwidthP, NR_BCCH_BCH_Message_t *mib, NR_ServingCellConfigCommon_t *servingcellconfigcommon diff --git a/openair2/LAYER2/NR_MAC_gNB/mac_proto.h b/openair2/LAYER2/NR_MAC_gNB/mac_proto.h index 7266b9165d6d1f8785e8a1493536b981ff500a6d..c3d96b0fe8047e7b75550b2fffe1c2d496250bf4 100644 --- a/openair2/LAYER2/NR_MAC_gNB/mac_proto.h +++ b/openair2/LAYER2/NR_MAC_gNB/mac_proto.h @@ -40,7 +40,7 @@ int rrc_mac_config_req_gNB(module_id_t Mod_idP, int CC_id, int p_gNB, int eutra_bandP, - int dl_CarrierFreqP, + uint32_t dl_CarrierFreqP, int dl_BandwidthP, NR_BCCH_BCH_Message_t *mib, NR_ServingCellConfigCommon_t *servingcellconfigcommon