fix in nr-ue for ul slots
This commit is contained in:
+10
-2
@@ -674,8 +674,16 @@ void *UE_thread(void *arg) {
|
|||||||
if (openair0_cfg[0].duplex_mode == duplex_mode_TDD) {
|
if (openair0_cfg[0].duplex_mode == duplex_mode_TDD) {
|
||||||
|
|
||||||
uint8_t tdd_period = mac->phy_config.config_req.tdd_table.tdd_period_in_slots;
|
uint8_t tdd_period = mac->phy_config.config_req.tdd_table.tdd_period_in_slots;
|
||||||
int nrofUplinkSlots = mac->scc->tdd_UL_DL_ConfigurationCommon->pattern1.nrofUplinkSlots;
|
int nrofUplinkSlots, nrofUplinkSymbols;
|
||||||
uint8_t num_UL_slots = nrofUplinkSlots + (nrofUplinkSlots != 0);
|
if (mac->scc) {
|
||||||
|
nrofUplinkSlots = mac->scc->tdd_UL_DL_ConfigurationCommon->pattern1.nrofUplinkSlots;
|
||||||
|
nrofUplinkSymbols = mac->scc->tdd_UL_DL_ConfigurationCommon->pattern1.nrofUplinkSymbols;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
nrofUplinkSlots = mac->scc_SIB->tdd_UL_DL_ConfigurationCommon->pattern1.nrofUplinkSlots;
|
||||||
|
nrofUplinkSymbols = mac->scc_SIB->tdd_UL_DL_ConfigurationCommon->pattern1.nrofUplinkSymbols;
|
||||||
|
}
|
||||||
|
uint8_t num_UL_slots = nrofUplinkSlots + (nrofUplinkSymbols != 0);
|
||||||
uint8_t first_tx_slot = tdd_period - num_UL_slots;
|
uint8_t first_tx_slot = tdd_period - num_UL_slots;
|
||||||
|
|
||||||
if (slot_tx_usrp % tdd_period == first_tx_slot)
|
if (slot_tx_usrp % tdd_period == first_tx_slot)
|
||||||
|
|||||||
Reference in New Issue
Block a user