Commit ada50c5f authored by kaltenbe's avatar kaltenbe

fixing unitialized value of card


git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7804 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent a7cfd78a
...@@ -218,7 +218,7 @@ openair0_device openair0; ...@@ -218,7 +218,7 @@ openair0_device openair0;
//extern unsigned int bigphys_top; //extern unsigned int bigphys_top;
//extern unsigned int mem_base; //extern unsigned int mem_base;
int card = 0; //int card = 0;
#if defined(ENABLE_ITTI) #if defined(ENABLE_ITTI)
...@@ -1551,6 +1551,7 @@ static void* eNB_thread( void* arg ) ...@@ -1551,6 +1551,7 @@ static void* eNB_thread( void* arg )
slot = 1; slot = 1;
int spp; int spp;
int tx_launched = 0; int tx_launched = 0;
int card=0;
void *rxp[2]; // FIXME hard coded array size; indexed by lte_frame_parms.nb_antennas_rx void *rxp[2]; // FIXME hard coded array size; indexed by lte_frame_parms.nb_antennas_rx
void *txp[2]; // FIXME hard coded array size; indexed by lte_frame_parms.nb_antennas_tx void *txp[2]; // FIXME hard coded array size; indexed by lte_frame_parms.nb_antennas_tx
...@@ -1901,6 +1902,7 @@ static void* eNB_thread( void* arg ) ...@@ -1901,6 +1902,7 @@ static void* eNB_thread( void* arg )
if (PHY_vars_eNB_g[0][CC_id]->proc[sf].instance_cnt_tx == 0) { if (PHY_vars_eNB_g[0][CC_id]->proc[sf].instance_cnt_tx == 0) {
if (pthread_cond_signal(&PHY_vars_eNB_g[0][CC_id]->proc[sf].cond_tx) != 0) { if (pthread_cond_signal(&PHY_vars_eNB_g[0][CC_id]->proc[sf].cond_tx) != 0) {
LOG_E(PHY,"[eNB] ERROR pthread_cond_signal for eNB TX thread %d\n",sf); LOG_E(PHY,"[eNB] ERROR pthread_cond_signal for eNB TX thread %d\n",sf);
exit_fun("nothing to add");
} }
} else { } else {
LOG_W(PHY,"[eNB] Frame %d, eNB TX thread %d busy!!\n",PHY_vars_eNB_g[0][CC_id]->proc[sf].frame_tx,sf); LOG_W(PHY,"[eNB] Frame %d, eNB TX thread %d busy!!\n",PHY_vars_eNB_g[0][CC_id]->proc[sf].frame_tx,sf);
...@@ -2604,6 +2606,9 @@ int main( int argc, char **argv ) ...@@ -2604,6 +2606,9 @@ int main( int argc, char **argv )
#endif #endif
#ifdef PDCP_USE_NETLINK #ifdef PDCP_USE_NETLINK
netlink_init(); netlink_init();
#if defined(PDCP_USE_NETLINK_QUEUES)
pdcp_netlink_init();
#endif
#endif #endif
#if !defined(ENABLE_ITTI) #if !defined(ENABLE_ITTI)
...@@ -2839,6 +2844,8 @@ int main( int argc, char **argv ) ...@@ -2839,6 +2844,8 @@ int main( int argc, char **argv )
dump_frame_parms(frame_parms[0]); dump_frame_parms(frame_parms[0]);
for (card=0; card<MAX_CARDS; card++) {
if(frame_parms[0]->N_RB_DL == 100) { if(frame_parms[0]->N_RB_DL == 100) {
sample_rate = 30.72e6; sample_rate = 30.72e6;
bw = 10.0e6; bw = 10.0e6;
...@@ -2897,18 +2904,19 @@ int main( int argc, char **argv ) ...@@ -2897,18 +2904,19 @@ int main( int argc, char **argv )
#ifdef ETHERNET #ifdef ETHERNET
//calib needed //calib needed
openair0_cfg[card].tx_delay = 0; openair0_cfg[card].tx_delay = 0;
openair0_cfg[card].tx_forward_nsamps = 0; openair0_cfg[card].tx_forward_nsamps = 0;
if (frame_parms[0]->N_RB_DL == 6) openair0_cfg[0].samples_per_packet = 256; if (frame_parms[0]->N_RB_DL == 6)
else openair0_cfg[0].samples_per_packet = 1024; openair0_cfg[card].samples_per_packet = 256;
else
openair0_cfg[card].samples_per_packet = 1024;
printf("HW: samples_per_packet %d\n",openair0_cfg[0].samples_per_packet); printf("HW: samples_per_packet %d\n",openair0_cfg[card].samples_per_packet);
#endif #endif
for (card=0; card<MAX_CARDS; card++) {
#ifndef EXMIMO #ifndef EXMIMO
openair0_cfg[card].samples_per_packet = openair0_cfg[0].samples_per_packet; openair0_cfg[card].samples_per_packet = openair0_cfg[0].samples_per_packet;
#endif #endif
......
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