one old bug, one regression
This commit is contained in:
@@ -1699,12 +1699,13 @@ void write_dummy(PHY_VARS_UE *UE, openair0_timestamp timestamp) {
|
|||||||
for ( int i=0; i < UE->frame_parms.nb_antennas_tx; i++)
|
for ( int i=0; i < UE->frame_parms.nb_antennas_tx; i++)
|
||||||
samplesVoid[i]=(void *)&v;
|
samplesVoid[i]=(void *)&v;
|
||||||
|
|
||||||
AssertFatal( 1 == UE->rfdevice.trx_write_func(&UE->rfdevice,
|
int written = UE->rfdevice.trx_write_func(&UE->rfdevice,
|
||||||
timestamp+2*UE->frame_parms.samples_per_tti,
|
timestamp + 2 * UE->frame_parms.samples_per_tti,
|
||||||
samplesVoid,
|
samplesVoid,
|
||||||
1,
|
1,
|
||||||
UE->frame_parms.nb_antennas_tx,
|
UE->frame_parms.nb_antennas_tx,
|
||||||
1),"");
|
TX_BURST_START_AND_END);
|
||||||
|
AssertFatal(1 == written, "write to SDR failed\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void *UE_thread(void *arg) {
|
void *UE_thread(void *arg) {
|
||||||
|
|||||||
@@ -557,6 +557,9 @@ bool pdcp_data_req(protocol_ctxt_t *ctxt_pP,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pdcp_uid == MAX_MOBILES_PER_ENB)
|
||||||
|
return ret;
|
||||||
|
|
||||||
LOG_D(PDCP,"ueid %d lcid %d tx seq num %d\n", pdcp_uid, (int)(rb_idP+rb_offset), current_sn);
|
LOG_D(PDCP,"ueid %d lcid %d tx seq num %d\n", pdcp_uid, (int)(rb_idP+rb_offset), current_sn);
|
||||||
Pdcp_stats_tx[ctxt_pP->module_id][pdcp_uid][rb_idP+rb_offset]++;
|
Pdcp_stats_tx[ctxt_pP->module_id][pdcp_uid][rb_idP+rb_offset]++;
|
||||||
Pdcp_stats_tx_tmp_w[ctxt_pP->module_id][pdcp_uid][rb_idP+rb_offset]++;
|
Pdcp_stats_tx_tmp_w[ctxt_pP->module_id][pdcp_uid][rb_idP+rb_offset]++;
|
||||||
@@ -2298,8 +2301,6 @@ uint64_t pdcp_module_init( uint64_t pdcp_optmask, int id) {
|
|||||||
if (UE_NAS_USE_TUN) {
|
if (UE_NAS_USE_TUN) {
|
||||||
int num_if = (NFAPI_MODE == NFAPI_UE_STUB_PNF || IS_SOFTMODEM_SIML1 || NFAPI_MODE == NFAPI_MODE_STANDALONE_PNF) ? MAX_MOBILES_PER_ENB : 1;
|
int num_if = (NFAPI_MODE == NFAPI_UE_STUB_PNF || IS_SOFTMODEM_SIML1 || NFAPI_MODE == NFAPI_MODE_STANDALONE_PNF) ? MAX_MOBILES_PER_ENB : 1;
|
||||||
tun_init("oaitun_ue", num_if, id);
|
tun_init("oaitun_ue", num_if, id);
|
||||||
if (IS_SOFTMODEM_NOS1)
|
|
||||||
tun_config(1, "10.0.1.2", NULL, "oaitun_ue");
|
|
||||||
tun_init_mbms("oaitun_uem", id + 1);
|
tun_init_mbms("oaitun_uem", id + 1);
|
||||||
tun_config(1, "10.0.2.2", NULL, "oaitun_uem");
|
tun_config(1, "10.0.2.2", NULL, "oaitun_uem");
|
||||||
LOG_I(PDCP, "UE pdcp will use tun interface\n");
|
LOG_I(PDCP, "UE pdcp will use tun interface\n");
|
||||||
|
|||||||
@@ -771,7 +771,7 @@ rrc_ue_establish_drb(
|
|||||||
"10.0.%d.%d",
|
"10.0.%d.%d",
|
||||||
UE_NAS_USE_TUN ? 1 : (ip_addr_offset3 + ue_mod_idP + 1),
|
UE_NAS_USE_TUN ? 1 : (ip_addr_offset3 + ue_mod_idP + 1),
|
||||||
ip_addr_offset4 + ue_mod_idP + 1);
|
ip_addr_offset4 + ue_mod_idP + 1);
|
||||||
oip_ifup = tun_config(ip_addr_offset3 + ue_mod_idP + 1, ip, NULL, "oaitun_oip");
|
oip_ifup = tun_config(ip_addr_offset3 + ue_mod_idP + 1, ip, NULL, "oaitun_ue");
|
||||||
|
|
||||||
if (oip_ifup == 0 && (!UE_NAS_USE_TUN)) { // interface is up --> send a config the DRB
|
if (oip_ifup == 0 && (!UE_NAS_USE_TUN)) { // interface is up --> send a config the DRB
|
||||||
LOG_I(OIP,"[UE %d] Config the ue net interface %d to send/receive pkt on DRB %ld to/from the protocol stack\n",
|
LOG_I(OIP,"[UE %d] Config the ue net interface %d to send/receive pkt on DRB %ld to/from the protocol stack\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user