Add some comment and logs.
This commit is contained in:
@@ -1158,7 +1158,8 @@ rrc_gNB_process_NGAP_PDUSESSION_MODIFY_REQ(
|
|||||||
if (is_treated[i] == TRUE) {
|
if (is_treated[i] == TRUE) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Check same PDU session ID to handle multiple pdu session id
|
||||||
for (j = i+1; j < nb_pdusessions_tomodify; j++) {
|
for (j = i+1; j < nb_pdusessions_tomodify; j++) {
|
||||||
if (is_treated[j] == FALSE &&
|
if (is_treated[j] == FALSE &&
|
||||||
NGAP_PDUSESSION_MODIFY_REQ(msg_p).pdusession_modify_params[j].pdusession_id ==
|
NGAP_PDUSESSION_MODIFY_REQ(msg_p).pdusession_modify_params[j].pdusession_id ==
|
||||||
@@ -1175,9 +1176,8 @@ rrc_gNB_process_NGAP_PDUSESSION_MODIFY_REQ(
|
|||||||
is_treated[j] = TRUE;
|
is_treated[j] = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// handle multiple pdu session id case
|
||||||
if (is_treated[i] == TRUE) {
|
if (is_treated[i] == TRUE) {
|
||||||
// handle multiple pdu session id
|
|
||||||
LOG_D(NR_RRC, "handle multiple pdu session id \n");
|
LOG_D(NR_RRC, "handle multiple pdu session id \n");
|
||||||
ue_context_p->ue_context.modify_pdusession[i].status = PDU_SESSION_STATUS_NEW;
|
ue_context_p->ue_context.modify_pdusession[i].status = PDU_SESSION_STATUS_NEW;
|
||||||
ue_context_p->ue_context.modify_pdusession[i].param.pdusession_id =
|
ue_context_p->ue_context.modify_pdusession[i].param.pdusession_id =
|
||||||
@@ -1188,6 +1188,7 @@ rrc_gNB_process_NGAP_PDUSESSION_MODIFY_REQ(
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check pdu session ID is established
|
||||||
for (j = 0; j < NR_NB_RB_MAX -3; j++) {
|
for (j = 0; j < NR_NB_RB_MAX -3; j++) {
|
||||||
if (ue_context_p->ue_context.pduSession[j].param.pdusession_id ==
|
if (ue_context_p->ue_context.pduSession[j].param.pdusession_id ==
|
||||||
NGAP_PDUSESSION_MODIFY_REQ(msg_p).pdusession_modify_params[i].pdusession_id) {
|
NGAP_PDUSESSION_MODIFY_REQ(msg_p).pdusession_modify_params[i].pdusession_id) {
|
||||||
@@ -1223,8 +1224,8 @@ rrc_gNB_process_NGAP_PDUSESSION_MODIFY_REQ(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// handle Unknown pdu session ID
|
||||||
if (is_treated[i] == FALSE) {
|
if (is_treated[i] == FALSE) {
|
||||||
// handle Unknown pdu session ID
|
|
||||||
LOG_D(NR_RRC, "handle Unknown pdu session ID \n");
|
LOG_D(NR_RRC, "handle Unknown pdu session ID \n");
|
||||||
ue_context_p->ue_context.modify_pdusession[i].status = PDU_SESSION_STATUS_NEW;
|
ue_context_p->ue_context.modify_pdusession[i].status = PDU_SESSION_STATUS_NEW;
|
||||||
ue_context_p->ue_context.modify_pdusession[i].param.pdusession_id =
|
ue_context_p->ue_context.modify_pdusession[i].param.pdusession_id =
|
||||||
@@ -1245,9 +1246,7 @@ rrc_gNB_process_NGAP_PDUSESSION_MODIFY_REQ(
|
|||||||
if (0 == rrc_gNB_modify_dedicatedRRCReconfiguration(&ctxt, ue_context_p)) {
|
if (0 == rrc_gNB_modify_dedicatedRRCReconfiguration(&ctxt, ue_context_p)) {
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
}
|
} else { // all pdu modification failed
|
||||||
|
|
||||||
{ // modify failed
|
|
||||||
LOG_I(NR_RRC, "pdu session modify failed, fill NGAP_PDUSESSION_MODIFY_RESP with the pdu session information that failed to modify \n");
|
LOG_I(NR_RRC, "pdu session modify failed, fill NGAP_PDUSESSION_MODIFY_RESP with the pdu session information that failed to modify \n");
|
||||||
uint8_t nb_of_pdu_sessions_failed = 0;
|
uint8_t nb_of_pdu_sessions_failed = 0;
|
||||||
MessageDef *msg_fail_p = NULL;
|
MessageDef *msg_fail_p = NULL;
|
||||||
|
|||||||
@@ -1630,13 +1630,6 @@ int ngap_gNB_handle_pdusession_modify_request(uint32_t assoc_id,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PDUSession Resource modify request = UE-related procedure -> stream != 0 */
|
|
||||||
// if (stream == 0) {
|
|
||||||
// NGAP_ERROR("[SCTP %d] Received UE-related procedure on stream (%d)\n",
|
|
||||||
// assoc_id, stream);
|
|
||||||
// return -1;
|
|
||||||
// }
|
|
||||||
|
|
||||||
ue_desc_p->rx_stream = stream;
|
ue_desc_p->rx_stream = stream;
|
||||||
|
|
||||||
if (ue_desc_p->amf_ue_ngap_id != amf_ue_ngap_id) {
|
if (ue_desc_p->amf_ue_ngap_id != amf_ue_ngap_id) {
|
||||||
@@ -1718,14 +1711,20 @@ int ngap_gNB_handle_pdusession_modify_request(uint32_t assoc_id,
|
|||||||
switch(pdusessionTransfer_ies->id) {
|
switch(pdusessionTransfer_ies->id) {
|
||||||
/* optional PDUSessionAggregateMaximumBitRate */
|
/* optional PDUSessionAggregateMaximumBitRate */
|
||||||
case NGAP_ProtocolIE_ID_id_PDUSessionAggregateMaximumBitRate:
|
case NGAP_ProtocolIE_ID_id_PDUSessionAggregateMaximumBitRate:
|
||||||
|
// TODO
|
||||||
|
NGAP_ERROR("Cant' handle NGAP_ProtocolIE_ID_id_PDUSessionAggregateMaximumBitRate\n");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* optional UL-NGU-UP-TNLModifyList */
|
/* optional UL-NGU-UP-TNLModifyList */
|
||||||
case NGAP_ProtocolIE_ID_id_UL_NGU_UP_TNLModifyList:
|
case NGAP_ProtocolIE_ID_id_UL_NGU_UP_TNLModifyList:
|
||||||
|
// TODO
|
||||||
|
NGAP_ERROR("Cant' handle NGAP_ProtocolIE_ID_id_UL_NGU_UP_TNLModifyList\n");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* optional NetworkInstance */
|
/* optional NetworkInstance */
|
||||||
case NGAP_ProtocolIE_ID_id_NetworkInstance:
|
case NGAP_ProtocolIE_ID_id_NetworkInstance:
|
||||||
|
// TODO
|
||||||
|
NGAP_ERROR("Cant' handle NGAP_ProtocolIE_ID_id_NetworkInstance\n");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* optional QosFlowAddOrModifyRequestList */
|
/* optional QosFlowAddOrModifyRequestList */
|
||||||
@@ -1764,14 +1763,20 @@ int ngap_gNB_handle_pdusession_modify_request(uint32_t assoc_id,
|
|||||||
|
|
||||||
/* optional QosFlowToReleaseList */
|
/* optional QosFlowToReleaseList */
|
||||||
case NGAP_ProtocolIE_ID_id_QosFlowToReleaseList:
|
case NGAP_ProtocolIE_ID_id_QosFlowToReleaseList:
|
||||||
|
// TODO
|
||||||
|
NGAP_ERROR("Cant' handle NGAP_ProtocolIE_ID_id_QosFlowToReleaseList\n");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* optional AdditionalUL-NGU-UP-TNLInformation */
|
/* optional AdditionalUL-NGU-UP-TNLInformation */
|
||||||
case NGAP_ProtocolIE_ID_id_AdditionalUL_NGU_UP_TNLInformation:
|
case NGAP_ProtocolIE_ID_id_AdditionalUL_NGU_UP_TNLInformation:
|
||||||
|
// TODO
|
||||||
|
NGAP_ERROR("Cant' handle NGAP_ProtocolIE_ID_id_AdditionalUL_NGU_UP_TNLInformation\n");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* optional CommonNetworkInstance */
|
/* optional CommonNetworkInstance */
|
||||||
case NGAP_ProtocolIE_ID_id_CommonNetworkInstance:
|
case NGAP_ProtocolIE_ID_id_CommonNetworkInstance:
|
||||||
|
// TODO
|
||||||
|
NGAP_ERROR("Cant' handle NGAP_ProtocolIE_ID_id_CommonNetworkInstance\n");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user