Fix NR UE mislabeling MSG2 as DLSCH PDU
This commit is contained in:
@@ -755,8 +755,13 @@ static int nr_ue_process_dci_dl_10(NR_UE_MAC_INST_t *mac,
|
|||||||
dlsch_pdu->SubcarrierSpacing = mac->mib->subCarrierSpacingCommon + 2;
|
dlsch_pdu->SubcarrierSpacing = mac->mib->subCarrierSpacingCommon + 2;
|
||||||
} else {
|
} else {
|
||||||
dlsch_pdu->SubcarrierSpacing = current_DL_BWP->scs;
|
dlsch_pdu->SubcarrierSpacing = current_DL_BWP->scs;
|
||||||
if (nr_timer_is_active(&mac->ra.response_window_timer) && rnti_type == TYPE_RA_RNTI_) {
|
if (rnti_type == TYPE_RA_RNTI_) {
|
||||||
dl_conf_req->pdu_type = FAPI_NR_DL_CONFIG_TYPE_RA_DLSCH;
|
if (nr_timer_is_active(&mac->ra.response_window_timer)) {
|
||||||
|
dl_conf_req->pdu_type = FAPI_NR_DL_CONFIG_TYPE_RA_DLSCH;
|
||||||
|
} else {
|
||||||
|
// Discard the DCI
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
dl_conf_req->pdu_type = FAPI_NR_DL_CONFIG_TYPE_DLSCH;
|
dl_conf_req->pdu_type = FAPI_NR_DL_CONFIG_TYPE_DLSCH;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1312,7 +1312,7 @@ static uint32_t nr_ue_dl_processing(NR_UE_MAC_INST_t *mac, nr_downlink_indicatio
|
|||||||
// resume RAR response window timer if MSG2 decoding failed
|
// resume RAR response window timer if MSG2 decoding failed
|
||||||
nr_timer_suspension(&mac->ra.response_window_timer);
|
nr_timer_suspension(&mac->ra.response_window_timer);
|
||||||
} else {
|
} else {
|
||||||
LOG_I(PHY, "RAR-Msg2 decoded\n");
|
LOG_I(PHY, "[UE %d] RAR-Msg2 decoded\n", mac->ue_id);
|
||||||
}
|
}
|
||||||
ret_mask |= (handle_dlsch(mac, dl_info, i)) << FAPI_NR_RX_PDU_TYPE_RAR;
|
ret_mask |= (handle_dlsch(mac, dl_info, i)) << FAPI_NR_RX_PDU_TYPE_RAR;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user