Commit ead28dab authored by Y_Tomita's avatar Y_Tomita

NFAPI connection can't be created when booting L2 FAPI simulator.

parent 73b5cad4
...@@ -920,7 +920,7 @@ int main( int argc, char **argv ) ...@@ -920,7 +920,7 @@ int main( int argc, char **argv )
RCConfig_sim(); RCConfig_sim();
} }
/*
// start the main UE threads // start the main UE threads
int eMBMS_active = 0; int eMBMS_active = 0;
...@@ -951,7 +951,7 @@ int main( int argc, char **argv ) ...@@ -951,7 +951,7 @@ int main( int argc, char **argv )
PHY_vars_UE_g[0][CC_id]->rf_map.chain=CC_id+chain_offset; PHY_vars_UE_g[0][CC_id]->rf_map.chain=CC_id+chain_offset;
} }
} }
*/
cpuf=get_cpu_freq_GHz(); cpuf=get_cpu_freq_GHz();
...@@ -1040,7 +1040,36 @@ int main( int argc, char **argv ) ...@@ -1040,7 +1040,36 @@ int main( int argc, char **argv )
} }
printf("NFAPI MODE:%s\n", nfapi_mode_str); printf("NFAPI MODE:%s\n", nfapi_mode_str);
// start the main UE threads
int eMBMS_active = 0;
if (nfapi_mode==3) // UE-STUB-PNF
{
config_sync_var=0;
wait_nfapi_init("main?");
//Panos: Temporarily we will be using single set of threads for multiple UEs.
//init_UE_stub(1,eMBMS_active,uecap_xer_in,emul_iface);
init_UE_stub_single_thread(NB_UE_INST,eMBMS_active,uecap_xer_in,emul_iface);
}
else {
init_UE(NB_UE_INST,eMBMS_active,uecap_xer_in,0,phy_test,UE_scan,UE_scan_carrier,mode,(int)rx_gain[0][0],tx_max_power[0],
frame_parms[0]);
}
if (phy_test==0) {
printf("Filling UE band info\n");
fill_ue_band_info();
dl_phy_sync_success (0, 0, 0, 1);
}
if (nfapi_mode!=3){
number_of_cards = 1;
for(CC_id=0; CC_id<MAX_NUM_CCs; CC_id++) {
PHY_vars_UE_g[0][CC_id]->rf_map.card=0;
PHY_vars_UE_g[0][CC_id]->rf_map.chain=CC_id+chain_offset;
}
}
// connect the TX/RX buffers // connect the TX/RX buffers
......
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