Commit 24fc20e2 authored by cig's avatar cig

Bugfix in USRP flags configuration for NR UE

- missing check on duplex mode before fetching the TDD period
- missing flags configuration for FDD mode
parent d3982e58
...@@ -707,12 +707,17 @@ void *UE_thread(void *arg) { ...@@ -707,12 +707,17 @@ void *UE_thread(void *arg) {
uint8_t num_UL_slots = mac->scc->tdd_UL_DL_ConfigurationCommon->pattern1.nrofUplinkSlots + uint8_t num_UL_slots = mac->scc->tdd_UL_DL_ConfigurationCommon->pattern1.nrofUplinkSlots +
(mac->scc->tdd_UL_DL_ConfigurationCommon->pattern1.nrofUplinkSymbols!=0); (mac->scc->tdd_UL_DL_ConfigurationCommon->pattern1.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)
flags=2; if (openair0_cfg[0].duplex_mode == TDD) {
else if (slot_tx_usrp%tdd_period==first_tx_slot+num_UL_slots-1) if (slot_tx_usrp % tdd_period == first_tx_slot)
flags = 3; flags = 2;
else if (slot_tx_usrp%tdd_period>first_tx_slot) else if (slot_tx_usrp % tdd_period == first_tx_slot + num_UL_slots - 1)
flags = 3;
else if (slot_tx_usrp % tdd_period > first_tx_slot)
flags = 1;
} else {
flags = 1; flags = 1;
}
if (flags || IS_SOFTMODEM_RFSIM) if (flags || IS_SOFTMODEM_RFSIM)
AssertFatal( writeBlockSize == AssertFatal( writeBlockSize ==
......
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