Commit bc4ac268 authored by Raymond Knopp's avatar Raymond Knopp

Merge branch 'l1-sidelink' of https://gitlab.eurecom.fr/matzakos/LTE-D2D into l1-sidelink

parents 12ae9124 046d12fe
......@@ -1461,6 +1461,14 @@ void slsch_decoding(PHY_VARS_UE *ue,UE_rxtx_proc_t *proc,int frame_rx,int subfra
slsch->group_destination_id,slsch->L_CRBs,slsch->mcs,
slsch->rvidx,ret);
ue_send_sl_sdu(0,
0,
frame_rx,subframe_rx,
ue->dlsch_rx_slsch->harq_processes[0]->b,
ue->dlsch_rx_slsch->harq_processes[0]->TBS>>3,
0,
SL_DISCOVERY_FLAG_NO);
if (slsch->rvidx == 0 ) ue->slsch_rxcnt[0]++;
else if (slsch->rvidx == 2 ) ue->slsch_rxcnt[1]++;
else if (slsch->rvidx == 3 ) ue->slsch_rxcnt[2]++;
......
......@@ -896,11 +896,12 @@ void ue_send_sl_sdu(module_id_t module_idP,
//match the destinationL2Id with UE L2Id or groupL2ID
if (!(((destinationL2Id == UE_mac_inst[module_idP].sourceL2Id) && (j < MAX_NUM_LCID)) | ((destinationL2Id == UE_mac_inst[module_idP].sourceL2Id) && (longh->LCID >= MAX_NUM_LCID_DATA)) | (i < MAX_NUM_LCID))){
LOG_I( MAC, "[Destination Id is neither matched with Source Id nor with Group Id, drop the packet!!! \n");
LOG_W( MAC, "[Destination Id %d is neither matched with Source Id %d nor with Group Id, drop the packet!!! \n",
destinationL2Id,UE_mac_inst[module_idP].sourceL2Id);
return;
}
if (lcid == 0) {
LOG_I( MAC, "[Destination Id is neither matched with Source Id nor with Group Id, drop the packet!!! \n");
LOG_W( MAC, "lcid = 0 drop the packet!!! \n");
return;
}
......
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