Fix fill slot bitmap for FR2
This commit is contained in:
@@ -489,12 +489,12 @@ int rrc_mac_config_req_gNB(module_id_t Mod_idP,
|
|||||||
/* FIXME: it seems there is a problem with slot 0/10/slots right after UL:
|
/* FIXME: it seems there is a problem with slot 0/10/slots right after UL:
|
||||||
* we just get retransmissions. Thus, do not schedule such slots in DL */
|
* we just get retransmissions. Thus, do not schedule such slots in DL */
|
||||||
if (slot % nr_slots_period != 0)
|
if (slot % nr_slots_period != 0)
|
||||||
RC.nrmac[Mod_idP]->dlsch_slot_bitmap[slot / 64] |= ((slot % nr_slots_period) < nr_dlmix_slots) << (slot % 64);
|
RC.nrmac[Mod_idP]->dlsch_slot_bitmap[slot / 64] |= (uint64_t)((slot % nr_slots_period) < nr_dlmix_slots) << (slot % 64);
|
||||||
RC.nrmac[Mod_idP]->ulsch_slot_bitmap[slot / 64] |= ((slot % nr_slots_period) >= nr_ulstart_slot) << (slot % 64);
|
RC.nrmac[Mod_idP]->ulsch_slot_bitmap[slot / 64] |= (uint64_t)((slot % nr_slots_period) >= nr_ulstart_slot) << (slot % 64);
|
||||||
LOG_D(NR_MAC, "slot %d DL %d UL %d\n",
|
LOG_D(NR_MAC, "slot %d DL %d UL %d\n",
|
||||||
slot,
|
slot,
|
||||||
(RC.nrmac[Mod_idP]->dlsch_slot_bitmap[slot / 64] & (1 << (slot % 64))) != 0,
|
(RC.nrmac[Mod_idP]->dlsch_slot_bitmap[slot / 64] & ((uint64_t)1 << (slot % 64))) != 0,
|
||||||
(RC.nrmac[Mod_idP]->ulsch_slot_bitmap[slot / 64] & (1 << (slot % 64))) != 0);
|
(RC.nrmac[Mod_idP]->ulsch_slot_bitmap[slot / 64] & ((uint64_t)1 << (slot % 64))) != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (get_softmodem_params()->phy_test) {
|
if (get_softmodem_params()->phy_test) {
|
||||||
|
|||||||
@@ -340,7 +340,7 @@ void schedule_nr_SRS(module_id_t module_idP, frame_t frameP, sub_frame_t subfram
|
|||||||
|
|
||||||
|
|
||||||
bool is_xlsch_in_slot(uint64_t bitmap, sub_frame_t slot) {
|
bool is_xlsch_in_slot(uint64_t bitmap, sub_frame_t slot) {
|
||||||
if (slot>64) return false; //quickfix for FR2 where there are more than 64 slots (bitmap to be removed)
|
if (slot>=64) return false; //quickfix for FR2 where there are more than 64 slots (bitmap to be removed)
|
||||||
return (bitmap >> slot) & 0x01;
|
return (bitmap >> slot) & 0x01;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user