code maintenance: old errors
This commit is contained in:
@@ -64,6 +64,12 @@ extern uint16_t beta_cqi[16];
|
||||
extern uint16_t beta_ri[16];
|
||||
extern uint16_t beta_ack[16];
|
||||
|
||||
static int errorRB(int rb, char * table, int line) {
|
||||
LOG_E(PHY,"Received %d rb, impossble in table %s, at line %d\n", rb, table, line);
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define rbAllocCheck(RBalL, TabLe) (RBalL) > sizeof(TabLe)/sizeof(*TabLe) ? errorRB(RBalL, #TabLe, __LINE__) : TabLe[RBalL]
|
||||
void extract_dci1A_info(uint8_t N_RB_DL, frame_type_t frame_type, void *dci_pdu, DCI_INFO_EXTRACTED_t *pdci_info_extarcted)
|
||||
{
|
||||
uint8_t harq_pid=0;
|
||||
@@ -974,28 +980,28 @@ int check_dci_format1_1a_coherency(DCI_format_t dci_format,
|
||||
{
|
||||
switch (N_RB_DL) {
|
||||
case 6:
|
||||
NPRB = RIV2nb_rb_LUT6[rballoc];//NPRB;
|
||||
NPRB = rbAllocCheck(rballoc, RIV2nb_rb_LUT6);
|
||||
if(rah)
|
||||
RIV_max = RIV_max6;
|
||||
else
|
||||
RIV_max = 0x3F;
|
||||
break;
|
||||
case 25:
|
||||
NPRB = RIV2nb_rb_LUT25[rballoc];//NPRB;
|
||||
NPRB = rbAllocCheck(rballoc,RIV2nb_rb_LUT25);
|
||||
if(rah)
|
||||
RIV_max = RIV_max25;
|
||||
else
|
||||
RIV_max = 0x1FFF;
|
||||
break;
|
||||
case 50:
|
||||
NPRB = RIV2nb_rb_LUT50[rballoc];//NPRB;
|
||||
NPRB = rbAllocCheck(rballoc,RIV2nb_rb_LUT50);
|
||||
if(rah)
|
||||
RIV_max = RIV_max50;
|
||||
else
|
||||
RIV_max = 0x1FFFF;
|
||||
break;
|
||||
case 100:
|
||||
NPRB = RIV2nb_rb_LUT100[rballoc];//NPRB;
|
||||
NPRB = rbAllocCheck(rballoc,RIV2nb_rb_LUT100);
|
||||
if(rah)
|
||||
RIV_max = RIV_max100;
|
||||
else
|
||||
@@ -1034,9 +1040,14 @@ int check_dci_format1_1a_coherency(DCI_format_t dci_format,
|
||||
// this is an eNB issue
|
||||
// retransmisison but old and new TBS are different !!!
|
||||
// work around, consider it as a new transmission
|
||||
LOG_E(PHY,"Format1A Retransmission but TBS are different: consider it as new transmission !!! \n");
|
||||
LOG_E(PHY,
|
||||
"Format1A Retransmission but TBS are different: consider it as new transmission !!!, round %d, mcs 1 %d, NPRB %d \n",
|
||||
pdlsch0_harq->round,
|
||||
mcs1,
|
||||
NPRB);
|
||||
pdlsch0_harq->round = 0;
|
||||
//return(0); // ?? to cross check
|
||||
return(0); // ?? to cross check
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -71,9 +71,9 @@
|
||||
#include "common/utils/system.h"
|
||||
|
||||
#include <time.h>
|
||||
|
||||
extern int oai_exit;
|
||||
|
||||
#include "openair1/SCHED/sched_common_extern.h"
|
||||
#include "targets/RT/USER/lte-softmodem.h"
|
||||
#include "common/ran_context.h"
|
||||
|
||||
void feptx0(RU_t *ru,
|
||||
int slot)
|
||||
@@ -616,9 +616,11 @@ void init_fep_thread(RU_t *ru,
|
||||
}
|
||||
|
||||
|
||||
extern void kill_fep_thread(RU_t *ru)
|
||||
void kill_fep_thread(RU_t *ru)
|
||||
{
|
||||
RU_proc_t *proc = &ru->proc;
|
||||
if (proc->pthread_fep == 0)
|
||||
return;
|
||||
pthread_mutex_lock( &proc->mutex_fep );
|
||||
proc->instance_cnt_fep = 0;
|
||||
pthread_cond_signal(&proc->cond_fep);
|
||||
@@ -630,9 +632,11 @@ extern void kill_fep_thread(RU_t *ru)
|
||||
}
|
||||
|
||||
|
||||
extern void kill_feptx_thread(RU_t *ru)
|
||||
void kill_feptx_thread(RU_t *ru)
|
||||
{
|
||||
RU_proc_t *proc = &ru->proc;
|
||||
if (proc->pthread_feptx == 0)
|
||||
return;
|
||||
pthread_mutex_lock( &proc->mutex_feptx );
|
||||
proc->instance_cnt_feptx = 0;
|
||||
pthread_cond_signal(&proc->cond_feptx);
|
||||
|
||||
@@ -29,4 +29,6 @@
|
||||
extern int16_t hundred_times_delta_TF[100];
|
||||
extern uint16_t hundred_times_log10_NPRB[100];
|
||||
|
||||
void kill_fep_thread(RU_t *ru);
|
||||
|
||||
#endif /*__SCHED_EXTERN_H__ */
|
||||
|
||||
@@ -514,10 +514,10 @@ int main(int argc, char **argv) {
|
||||
LTE_DL_FRAME_PARMS *frame_parms;
|
||||
double s_re0[30720*2],s_im0[30720*2],r_re0[30720*2],r_im0[30720*2];
|
||||
double s_re1[30720*2],s_im1[30720*2],r_re1[30720*2],r_im1[30720*2];
|
||||
double *s_re[2]= {s_re0,s_re1};
|
||||
double *s_im[2]= {s_im0,s_im1};
|
||||
double *r_re[2]= {r_re0,r_re1};
|
||||
double *r_im[2]= {r_im0,r_im1};
|
||||
double *s_re[NB_ANTENNAS_TX]= {s_re0,s_re1};
|
||||
double *s_im[NB_ANTENNAS_TX]= {s_im0,s_im1};
|
||||
double *r_re[NB_ANTENNAS_RX]= {r_re0,r_re1};
|
||||
double *r_im[NB_ANTENNAS_RX]= {r_im0,r_im1};
|
||||
uint8_t transmission_mode=1,n_tx_port=1,n_tx_phy=1,n_rx=2;
|
||||
int eNB_id = 0;
|
||||
unsigned char round;
|
||||
|
||||
Reference in New Issue
Block a user