Commit 3d430a24 authored by Raymond Knopp's avatar Raymond Knopp

added testing function for SLSCH

parent a3cb121d
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
......
......@@ -1420,6 +1420,7 @@ typedef struct {
uint8_t sidelink_active;
uint8_t SLonly;
uint8_t SLsynconly;
uint8_t SLSCHtest;
uint8_t destination_id;
// DMRS group-hopping sequences for PSBCH (index 0) and 256 possible PSSCH (indices 1...256)
uint32_t gh[257][20];
......
......@@ -2376,7 +2376,7 @@ void phy_procedures_UE_SL_TX(PHY_VARS_UE *ue,UE_rxtx_proc_t *proc) {
// check for SLSCH
AssertFatal(0==pthread_mutex_lock(&ue->slsch_mutex),"");
if ((ue->slsch = ue_get_slsch(ue->Mod_id,ue->CC_id,frame_tx,subframe_tx)) != NULL) {
if (ue->SLSCHtest == 1) || (ue->slsch = ue_get_slsch(ue->Mod_id,ue->CC_id,frame_tx,subframe_tx,ue->SLSCHtest)) != NULL) {
check_and_generate_pscch(ue,frame_tx,subframe_tx);
check_and_generate_pssch(ue,proc,frame_tx,subframe_tx);
}
......
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