Commit 40751a58 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Addressing Cmake warnings

parent 8f2660cf
......@@ -55,6 +55,6 @@ Based on document **3GPP TS 23.501 v16.0.0 (Section 6.2.2)**.
| 12 | Determine SSC mode of a session​ | :heavy_check_mark: | Only support SSC mode 1​ |
| 13 | Initiator of AN specific SM information, sent via AMF over N2 to AN | :heavy_check_mark: | |
| 14 | Support for Control Plane CIoT 5GS Optimisation | :x: | |
| 15 | Support of header compression. ​ | :x: | |
| 15 | Support of header compression ​ | :x: | |
| 16 | Act as I-SMF in deployments | :x: | |
| 17 | Provisioning of external parameters | :x: | |
......@@ -24,9 +24,9 @@
#include "3gpp_29.571.h"
#include "3gpp_23.003.h"
typedef struct ng_ran_target_id_s{
global_ran_node_id_t global_ran_node_id;
tai_t tai;
typedef struct ng_ran_target_id_s {
global_ran_node_id_t global_ran_node_id;
tai_t tai;
} ng_ran_target_id_t;
#endif
......@@ -3036,7 +3036,8 @@ bool smf_context::handle_ho_path_switch_req(
std::shared_ptr<itti_n11_update_sm_context_request>& sm_context_request,
std::shared_ptr<itti_n11_update_sm_context_response>& sm_context_resp,
std::shared_ptr<smf_pdu_session>& sp) {
std::string n1_sm_msg, n1_sm_msg_hex;
std::string n1_sm_msg = {};
std::string n1_sm_msg_hex = {};
// If the PDU session is requested to be switched to a new N3 endpoint
if (sm_context_request->req.get_to_be_switched()) {
......@@ -3056,7 +3057,6 @@ bool smf_context::handle_ho_path_switch_req(
http_status_code_e::HTTP_STATUS_CODE_403_FORBIDDEN,
PDU_SESSION_APPLICATION_ERROR_N2_SM_ERROR,
sm_context_request.get()->pid);
return false;
}
......@@ -3124,7 +3124,8 @@ bool smf_context::handle_ho_preparation_request(
std::shared_ptr<itti_n11_update_sm_context_request>& sm_context_request,
std::shared_ptr<itti_n11_update_sm_context_response>& sm_context_resp,
std::shared_ptr<smf_pdu_session>& sp) {
std::string n2_sm_info, n2_sm_info_hex;
std::string n2_sm_info = {};
std::string n2_sm_info_hex = {};
sm_context_resp.get()->session_procedure_type =
session_management_procedures_type_e::N2_HO_PREPARATION_PHASE_STEP1;
......@@ -3145,7 +3146,6 @@ bool smf_context::handle_ho_preparation_request(
http_status_code_e::HTTP_STATUS_CODE_403_FORBIDDEN,
PDU_SESSION_APPLICATION_ERROR_N2_SM_ERROR,
sm_context_request.get()->pid);
return false;
}
......@@ -3214,7 +3214,8 @@ bool smf_context::handle_ho_preparation_request_ack(
std::shared_ptr<itti_n11_update_sm_context_request>& sm_context_request,
std::shared_ptr<itti_n11_update_sm_context_response>& sm_context_resp,
std::shared_ptr<smf_pdu_session>& sp) {
std::string n2_sm_info, n2_sm_info_hex;
std::string n2_sm_info = {};
std::string n2_sm_info_hex = {};
sm_context_resp.get()->session_procedure_type =
session_management_procedures_type_e::N2_HO_PREPARATION_PHASE_STEP2;
......@@ -3235,7 +3236,6 @@ bool smf_context::handle_ho_preparation_request_ack(
http_status_code_e::HTTP_STATUS_CODE_403_FORBIDDEN,
PDU_SESSION_APPLICATION_ERROR_N2_SM_ERROR,
sm_context_request.get()->pid);
return false;
}
......@@ -3277,6 +3277,7 @@ bool smf_context::handle_ho_preparation_request_ack(
(decoded_msg->qosFlowSetupResponseList.list.array[i])
->qosFlowIdentifier);
}
return true;
}
//-------------------------------------------------------------------------------------
......@@ -3285,7 +3286,8 @@ bool smf_context::handle_ho_preparation_request_fail(
std::shared_ptr<itti_n11_update_sm_context_request>& sm_context_request,
std::shared_ptr<itti_n11_update_sm_context_response>& sm_context_resp,
std::shared_ptr<smf_pdu_session>& sp) {
std::string n2_sm_info, n2_sm_info_hex;
std::string n2_sm_info = {};
std::string n2_sm_info_hex = {};
sm_context_resp.get()->session_procedure_type =
session_management_procedures_type_e::N2_HO_PREPARATION_PHASE_STEP2;
......@@ -3307,7 +3309,6 @@ bool smf_context::handle_ho_preparation_request_fail(
http_status_code_e::HTTP_STATUS_CODE_403_FORBIDDEN,
PDU_SESSION_APPLICATION_ERROR_N2_SM_ERROR,
sm_context_request.get()->pid);
return false;
}
......@@ -3316,7 +3317,6 @@ bool smf_context::handle_ho_preparation_request_fail(
sp.get()->set_ho_state(ho_state_e::HO_STATE_NONE);
// Release resource ??
// Create Handover Preparation Unsuccessful Transfer IE
smf_n2::get_instance().create_n2_handover_preparation_unsuccessful_transfer(
sm_context_resp->res, n2_sm_info_type_e::HANDOVER_RES_ALLOC_FAIL,
n2_sm_info);
......@@ -3351,7 +3351,8 @@ bool smf_context::handle_ho_execution(
std::shared_ptr<itti_n11_update_sm_context_request>& sm_context_request,
std::shared_ptr<itti_n11_update_sm_context_response>& sm_context_resp,
std::shared_ptr<smf_pdu_session>& sp) {
std::string n2_sm_info, n2_sm_info_hex;
std::string n2_sm_info = {};
std::string n2_sm_info_hex = {};
sm_context_resp.get()->session_procedure_type =
session_management_procedures_type_e::N2_HO_EXECUTION_PHASE;
......@@ -3393,8 +3394,6 @@ bool smf_context::handle_ho_cancellation(
std::shared_ptr<itti_n11_update_sm_context_request>& sm_context_request,
std::shared_ptr<itti_n11_update_sm_context_response>& sm_context_resp,
std::shared_ptr<smf_pdu_session>& sp) {
std::string n2_sm_info, n2_sm_info_hex;
sm_context_resp.get()->session_procedure_type =
session_management_procedures_type_e::N2_HO_CANCELLATION_PHASE;
......
......@@ -336,16 +336,23 @@ class pdu_session_update_sm_context_request
public:
pdu_session_update_sm_context_request()
: pdu_session_sm_context_request(PDU_SESSION_UPDATE_SM_CONTEXT_REQUEST) {
m_5gMm_cause_value = 0;
m_data_forwarding = false;
m_upCnx_state_is_set = false;
qfis = {};
dl_fteid = {};
m_release = false;
m_release_is_set = false;
m_an_type_is_set = false;
m_rat_type_is_set = false;
m_ho_state_is_set = false;
m_5gMm_cause_value = 0;
m_data_forwarding = false;
m_upCnx_state_is_set = false;
qfis = {};
dl_fteid = {};
m_release = false;
m_release_is_set = false;
m_to_be_switched = false;
m_to_be_switched_is_set = false;
m_failed_to_be_switched = false;
m_is_failed_to_be_switched = false;
m_failed_to_be_switched_is_set = false;
m_an_type_is_set = false;
m_rat_type_is_set = false;
m_ho_state_is_set = false;
m_target_id_is_set = false;
m_target_serving_nf_id_is_set = false;
};
void add_qfi(const pfcp::qfi_t& qfi);
......
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