Commit d6e36d7d authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

Fix issue for SD

parent 3300c1ec
...@@ -57,12 +57,12 @@ bool S_NSSAI::DecodeSD(Ngap_SD_t* m_sd) { ...@@ -57,12 +57,12 @@ bool S_NSSAI::DecodeSD(Ngap_SD_t* m_sd) {
uint32_t value = SD_NO_VALUE; uint32_t value = SD_NO_VALUE;
if (m_sd->size == 3) { if (m_sd->size == 3) {
sd_ = ((m_sd->buf[0] << 16) + (m_sd->buf[1] << 8) + m_sd->buf[2]); value = ((m_sd->buf[0] << 16) + (m_sd->buf[1] << 8) + m_sd->buf[2]);
sd_ = std::optional<uint32_t>(value); sd_ = std::optional<uint32_t>(value);
return true; return true;
} else if (m_sd->size == 4) { } else if (m_sd->size == 4) {
sd_ = ((m_sd->buf[1] << 16) + (m_sd->buf[2] << 8) + m_sd->buf[3]); value = ((m_sd->buf[1] << 16) + (m_sd->buf[2] << 8) + m_sd->buf[3]);
sd_ = std::optional<uint32_t>(value); sd_ = std::optional<uint32_t>(value);
return true; return true;
} }
......
...@@ -52,9 +52,7 @@ class S_NSSAI { ...@@ -52,9 +52,7 @@ class S_NSSAI {
private: private:
uint8_t sst_; // mandatory OCTET_STRING(SIZE(1)) uint8_t sst_; // mandatory OCTET_STRING(SIZE(1))
// uint32_t sd; // OCTET_STRING(SIZE(3))
std::optional<uint32_t> sd_; std::optional<uint32_t> sd_;
// bool sdIsSet;
}; };
} // namespace ngap } // namespace ngap
......
...@@ -82,7 +82,7 @@ void NGSetupFailureMsg::addTimeToWaitIE() { ...@@ -82,7 +82,7 @@ void NGSetupFailureMsg::addTimeToWaitIE() {
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void NGSetupFailureMsg::setCauseRadioNetwork( void NGSetupFailureMsg::set(
const e_Ngap_CauseRadioNetwork& cause_value, const e_Ngap_CauseRadioNetwork& cause_value,
const e_Ngap_TimeToWait& time_to_wait) { const e_Ngap_TimeToWait& time_to_wait) {
cause.setChoiceOfCause(Ngap_Cause_PR_radioNetwork); cause.setChoiceOfCause(Ngap_Cause_PR_radioNetwork);
......
...@@ -36,7 +36,7 @@ class NGSetupFailureMsg : public NgapMessage { ...@@ -36,7 +36,7 @@ class NGSetupFailureMsg : public NgapMessage {
void initialize(); void initialize();
void setCauseRadioNetwork( void set(
const e_Ngap_CauseRadioNetwork& cause_value, const e_Ngap_CauseRadioNetwork& cause_value,
const e_Ngap_TimeToWait& time_to_wait); const e_Ngap_TimeToWait& time_to_wait);
void setCauseRadioNetwork(const e_Ngap_CauseRadioNetwork& cause_value); void setCauseRadioNetwork(const e_Ngap_CauseRadioNetwork& cause_value);
......
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