Only filtering DCIs in MAC layer after RA is complete.

This commit is contained in:
Melissa Elkadi
2021-11-04 09:17:16 -07:00
parent 81716e4c77
commit d7b4adb006
+4 -3
View File
@@ -599,9 +599,10 @@ int nr_ue_process_dci_indication_pdu(module_id_t module_id,int cc_id, int gNB_in
NR_UE_MAC_INST_t *mac = get_mac_inst(module_id);
dci_pdu_rel15_t *def_dci_pdu_rel15 = &mac->def_dci_pdu_rel15[dci->dci_format];
if ((dci->rnti != mac->crnti) && (dci->rnti != mac->ra.ra_rnti) && (dci->rnti != 0xffff)) {
LOG_D(MAC,"We skip for the received dci indication rnti %4x != mac->crnti %4x frame slot %4d.%2d RA state %d\n",
dci->rnti, mac->crnti, frame, slot, mac->ra.ra_state);
if ((mac->ra.ra_state == RA_SUCCEEDED) && (dci->rnti != mac->crnti)) {
LOG_D(MAC,"[%d %d] Discarding the received dci indication because rnti %4x "
"!= mac->crnti %4x after RA procedure is complete: (RA state %d)\n",
frame, slot, dci->rnti, mac->crnti, mac->ra.ra_state);
return 0;
}