fix for some warnings
This commit is contained in:
@@ -54,6 +54,12 @@ int nr_slot_fep(PHY_VARS_NR_UE *phy_vars_ue,
|
|||||||
int sample_offset,
|
int sample_offset,
|
||||||
int no_prefix);
|
int no_prefix);
|
||||||
|
|
||||||
|
int nr_slot_fep_init_sync(PHY_VARS_NR_UE *ue,
|
||||||
|
unsigned char symbol,
|
||||||
|
unsigned char Ns,
|
||||||
|
int sample_offset,
|
||||||
|
int no_prefix);
|
||||||
|
|
||||||
int slot_fep_mbsfn(PHY_VARS_UE *phy_vars_ue,
|
int slot_fep_mbsfn(PHY_VARS_UE *phy_vars_ue,
|
||||||
unsigned char l,
|
unsigned char l,
|
||||||
int subframe,
|
int subframe,
|
||||||
|
|||||||
@@ -272,7 +272,7 @@ NR_gNB_DLSCH_t *new_gNB_dlsch(NR_DL_FRAME_PARMS *frame_parms,
|
|||||||
LOG_D(PHY,"new_gNB_dlsch exit flag %d, size of %ld\n",
|
LOG_D(PHY,"new_gNB_dlsch exit flag %d, size of %ld\n",
|
||||||
exit_flag, sizeof(NR_gNB_DLSCH_t));
|
exit_flag, sizeof(NR_gNB_DLSCH_t));
|
||||||
|
|
||||||
free_gNB_dlsch(dlsch,N_RB);
|
free_gNB_dlsch(&dlsch,N_RB);
|
||||||
|
|
||||||
return(NULL);
|
return(NULL);
|
||||||
|
|
||||||
|
|||||||
@@ -90,6 +90,6 @@ void phy_adjust_gain_nr(PHY_VARS_NR_UE *ue,
|
|||||||
uint32_t rx_power_fil_dB,
|
uint32_t rx_power_fil_dB,
|
||||||
uint8_t eNB_id);
|
uint8_t eNB_id);
|
||||||
|
|
||||||
int16_t nr_get_PL(module_id_t Mod_id,uint8_t CC_id,uint8_t eNB_index);
|
int16_t get_nr_PL(PHY_VARS_NR_UE *ue,uint8_t gNB_index);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -702,7 +702,7 @@ int32_t nr_rx_pdcch(PHY_VARS_NR_UE *ue,
|
|||||||
for (aarx = 0; aarx < frame_parms->nb_antennas_rx; aarx++)
|
for (aarx = 0; aarx < frame_parms->nb_antennas_rx; aarx++)
|
||||||
avgs = cmax(avgs, avgP[aarx]);
|
avgs = cmax(avgs, avgP[aarx]);
|
||||||
|
|
||||||
log2_maxh = (log2_approx(avgs) / 2) + 5; //+frame_parms->nb_antennas_rx;
|
log2_maxh = (log2_approx(avgs) / 2) + 5; //+frame_parms->nb_antennas_rx;
|
||||||
#ifdef UE_DEBUG_TRACE
|
#ifdef UE_DEBUG_TRACE
|
||||||
LOG_D(PHY,"slot %d: pdcch log2_maxh = %d (%d,%d)\n",slot,log2_maxh,avgP[0],avgs);
|
LOG_D(PHY,"slot %d: pdcch log2_maxh = %d (%d,%d)\n",slot,log2_maxh,avgP[0],avgs);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ void fill_scc(NR_ServingCellConfigCommon_t *scc,uint64_t *ssb_bitmap,int N_RB_DL
|
|||||||
*scc->uplinkConfigCommon->initialUplinkBWP->rach_ConfigCommon->choice.setup->rsrp_ThresholdSSB=19;
|
*scc->uplinkConfigCommon->initialUplinkBWP->rach_ConfigCommon->choice.setup->rsrp_ThresholdSSB=19;
|
||||||
scc->uplinkConfigCommon->initialUplinkBWP->rach_ConfigCommon->choice.setup->prach_RootSequenceIndex.present=NR_RACH_ConfigCommon__prach_RootSequenceIndex_PR_l139;
|
scc->uplinkConfigCommon->initialUplinkBWP->rach_ConfigCommon->choice.setup->prach_RootSequenceIndex.present=NR_RACH_ConfigCommon__prach_RootSequenceIndex_PR_l139;
|
||||||
scc->uplinkConfigCommon->initialUplinkBWP->rach_ConfigCommon->choice.setup->prach_RootSequenceIndex.choice.l139=0;
|
scc->uplinkConfigCommon->initialUplinkBWP->rach_ConfigCommon->choice.setup->prach_RootSequenceIndex.choice.l139=0;
|
||||||
scc->uplinkConfigCommon->initialUplinkBWP->rach_ConfigCommon->choice.setup->restrictedSetConfig=NR_RACH_ConfigCommon__restrictedSetConfig_unrestrictedSet,TYPE_INT64;
|
scc->uplinkConfigCommon->initialUplinkBWP->rach_ConfigCommon->choice.setup->restrictedSetConfig=NR_RACH_ConfigCommon__restrictedSetConfig_unrestrictedSet;
|
||||||
*scc->uplinkConfigCommon->initialUplinkBWP->pusch_ConfigCommon->choice.setup->pusch_TimeDomainAllocationList->list.array[0]->k2=2;
|
*scc->uplinkConfigCommon->initialUplinkBWP->pusch_ConfigCommon->choice.setup->pusch_TimeDomainAllocationList->list.array[0]->k2=2;
|
||||||
scc->uplinkConfigCommon->initialUplinkBWP->pusch_ConfigCommon->choice.setup->pusch_TimeDomainAllocationList->list.array[0]->mappingType=NR_PUSCH_TimeDomainResourceAllocation__mappingType_typeB;
|
scc->uplinkConfigCommon->initialUplinkBWP->pusch_ConfigCommon->choice.setup->pusch_TimeDomainAllocationList->list.array[0]->mappingType=NR_PUSCH_TimeDomainResourceAllocation__mappingType_typeB;
|
||||||
scc->uplinkConfigCommon->initialUplinkBWP->pusch_ConfigCommon->choice.setup->pusch_TimeDomainAllocationList->list.array[0]->startSymbolAndLength=55;
|
scc->uplinkConfigCommon->initialUplinkBWP->pusch_ConfigCommon->choice.setup->pusch_TimeDomainAllocationList->list.array[0]->startSymbolAndLength=55;
|
||||||
|
|||||||
@@ -410,7 +410,9 @@ int main(int argc, char **argv)
|
|||||||
uint8_t n_hf = 0;
|
uint8_t n_hf = 0;
|
||||||
int cyclic_prefix_type = NFAPI_CP_NORMAL;
|
int cyclic_prefix_type = NFAPI_CP_NORMAL;
|
||||||
|
|
||||||
double fs,bw,scs,eps;
|
double fs, eps;
|
||||||
|
double scs = 30000;
|
||||||
|
double bw = 100e6;
|
||||||
|
|
||||||
switch (mu) {
|
switch (mu) {
|
||||||
case 1:
|
case 1:
|
||||||
|
|||||||
@@ -52,6 +52,7 @@
|
|||||||
#include "openair1/SIMULATION/TOOLS/sim.h"
|
#include "openair1/SIMULATION/TOOLS/sim.h"
|
||||||
#include "openair1/SIMULATION/RF/rf.h"
|
#include "openair1/SIMULATION/RF/rf.h"
|
||||||
#include "openair1/SIMULATION/NR_PHY/nr_unitary_defs.h"
|
#include "openair1/SIMULATION/NR_PHY/nr_unitary_defs.h"
|
||||||
|
#include "openair2/RRC/NR/MESSAGES/asn1_msg.h"
|
||||||
#include "openair2/LAYER2/NR_MAC_UE/mac_proto.h"
|
#include "openair2/LAYER2/NR_MAC_UE/mac_proto.h"
|
||||||
#include "openair2/LAYER2/NR_MAC_gNB/mac_proto.h"
|
#include "openair2/LAYER2/NR_MAC_gNB/mac_proto.h"
|
||||||
|
|
||||||
|
|||||||
@@ -2732,7 +2732,7 @@ void nr_extract_dci_info(NR_UE_MAC_INST_t *mac,
|
|||||||
NRRIV2BW(mac->ULbwp[0]->bwp_Common->genericParameters.locationAndBandwidth,275) :
|
NRRIV2BW(mac->ULbwp[0]->bwp_Common->genericParameters.locationAndBandwidth,275) :
|
||||||
NRRIV2BW(mac->scc->uplinkConfigCommon->initialUplinkBWP->genericParameters.locationAndBandwidth,275);
|
NRRIV2BW(mac->scc->uplinkConfigCommon->initialUplinkBWP->genericParameters.locationAndBandwidth,275);
|
||||||
|
|
||||||
int pos;
|
int pos=0;
|
||||||
int fsize=0;
|
int fsize=0;
|
||||||
switch(dci_format) {
|
switch(dci_format) {
|
||||||
|
|
||||||
|
|||||||
@@ -308,10 +308,9 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP,
|
|||||||
//printf("gNB_dlsch_ulsch_scheduler frameRX %d slotRX %d frameTX %d slotTX %d\n",frame_rxP,slot_rxP,frame_txP,slot_txP);
|
//printf("gNB_dlsch_ulsch_scheduler frameRX %d slotRX %d frameTX %d slotTX %d\n",frame_rxP,slot_rxP,frame_txP,slot_txP);
|
||||||
|
|
||||||
protocol_ctxt_t ctxt;
|
protocol_ctxt_t ctxt;
|
||||||
int CC_id, i = -1, UE_id = 0;
|
int CC_id, UE_id = 0;
|
||||||
gNB_MAC_INST *gNB = RC.nrmac[module_idP];
|
gNB_MAC_INST *gNB = RC.nrmac[module_idP];
|
||||||
NR_UE_list_t *UE_list = &gNB->UE_list;
|
NR_UE_list_t *UE_list = &gNB->UE_list;
|
||||||
rnti_t rnti;
|
|
||||||
UE_sched_ctrl_t *ue_sched_ctl = &UE_list->UE_sched_ctrl[UE_id];
|
UE_sched_ctrl_t *ue_sched_ctl = &UE_list->UE_sched_ctrl[UE_id];
|
||||||
NR_COMMON_channels_t *cc = gNB->common_channels;
|
NR_COMMON_channels_t *cc = gNB->common_channels;
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
#include "executables/nr-softmodem.h"
|
#include "executables/nr-softmodem.h"
|
||||||
#include "LAYER2/NR_MAC_COMMON/nr_mac.h"
|
#include "LAYER2/NR_MAC_COMMON/nr_mac.h"
|
||||||
#include "executables/softmodem-common.h"
|
#include "executables/softmodem-common.h"
|
||||||
|
#include "common/utils/nr/nr_common.h"
|
||||||
#include "NR_SCS-SpecificCarrier.h"
|
#include "NR_SCS-SpecificCarrier.h"
|
||||||
#include "NR_TDD-UL-DL-ConfigCommon.h"
|
#include "NR_TDD-UL-DL-ConfigCommon.h"
|
||||||
#include "NR_FrequencyInfoUL.h"
|
#include "NR_FrequencyInfoUL.h"
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
#include "BOOLEAN.h"
|
#include "BOOLEAN.h"
|
||||||
#include "assertions.h"
|
#include "assertions.h"
|
||||||
#include "common/utils/nr/nr_common.h"
|
#include "common/utils/nr/nr_common.h"
|
||||||
|
#include "SIMULATION/TOOLS/sim.h"
|
||||||
#include "executables/softmodem-common.h"
|
#include "executables/softmodem-common.h"
|
||||||
|
|
||||||
#define false 0
|
#define false 0
|
||||||
|
|||||||
Reference in New Issue
Block a user