Commit a55cfeba authored by aligungr's avatar aligungr

L3 RRC/NAS developments

parent 2b541627
...@@ -118,7 +118,7 @@ static nr::ue::UeConfig *ReadConfigYaml() ...@@ -118,7 +118,7 @@ static nr::ue::UeConfig *ReadConfigYaml()
s.sst = yaml::GetInt32(sNssai, "sst", 0, 0xFF); s.sst = yaml::GetInt32(sNssai, "sst", 0, 0xFF);
if (yaml::HasField(sNssai, "sd")) if (yaml::HasField(sNssai, "sd"))
s.sd = octet3{yaml::GetInt32(sNssai, "sd", 0, 0xFFFFFF)}; s.sd = octet3{yaml::GetInt32(sNssai, "sd", 0, 0xFFFFFF)};
result->initials.defaultConfiguredNssai.slices.push_back(s); result->defaultConfiguredNssai.slices.push_back(s);
} }
} }
...@@ -130,7 +130,7 @@ static nr::ue::UeConfig *ReadConfigYaml() ...@@ -130,7 +130,7 @@ static nr::ue::UeConfig *ReadConfigYaml()
s.sst = yaml::GetInt32(sNssai, "sst", 0, 0xFF); s.sst = yaml::GetInt32(sNssai, "sst", 0, 0xFF);
if (yaml::HasField(sNssai, "sd")) if (yaml::HasField(sNssai, "sd"))
s.sd = octet3{yaml::GetInt32(sNssai, "sd", 0, 0xFFFFFF)}; s.sd = octet3{yaml::GetInt32(sNssai, "sd", 0, 0xFFFFFF)};
result->initials.configuredNssai.slices.push_back(s); result->configuredNssai.slices.push_back(s);
} }
} }
...@@ -314,7 +314,8 @@ static nr::ue::UeConfig *GetConfigByUe(int ueIndex) ...@@ -314,7 +314,8 @@ static nr::ue::UeConfig *GetConfigByUe(int ueIndex)
c->imeiSv = g_refConfig->imeiSv; c->imeiSv = g_refConfig->imeiSv;
c->supi = g_refConfig->supi; c->supi = g_refConfig->supi;
c->hplmn = g_refConfig->hplmn; c->hplmn = g_refConfig->hplmn;
c->initials = g_refConfig->initials; c->configuredNssai = g_refConfig->configuredNssai;
c->defaultConfiguredNssai = g_refConfig->defaultConfiguredNssai;
c->supportedAlgs = g_refConfig->supportedAlgs; c->supportedAlgs = g_refConfig->supportedAlgs;
c->gnbSearchList = g_refConfig->gnbSearchList; c->gnbSearchList = g_refConfig->gnbSearchList;
c->defaultSessions = g_refConfig->defaultSessions; c->defaultSessions = g_refConfig->defaultSessions;
......
...@@ -72,8 +72,8 @@ MmStorage::MmStorage(TaskBase *base) : m_base{base} ...@@ -72,8 +72,8 @@ MmStorage::MmStorage(TaskBase *base) : m_base{base}
///////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////
defConfiguredNssai->set(m_base->config->initials.defaultConfiguredNssai); defConfiguredNssai->set(m_base->config->defaultConfiguredNssai);
configuredNssai->set(m_base->config->initials.configuredNssai); configuredNssai->set(m_base->config->configuredNssai);
} }
} // namespace nr::ue } // namespace nr::ue
\ No newline at end of file
...@@ -102,14 +102,8 @@ struct UeConfig ...@@ -102,14 +102,8 @@ struct UeConfig
std::vector<std::string> gnbSearchList{}; std::vector<std::string> gnbSearchList{};
std::vector<SessionConfig> defaultSessions{}; std::vector<SessionConfig> defaultSessions{};
IntegrityMaxDataRateConfig integrityMaxRate{}; IntegrityMaxDataRateConfig integrityMaxRate{};
NetworkSlice defaultConfiguredNssai{};
/* Read from config file as well, but should be stored in non-volatile NetworkSlice configuredNssai{};
* mobile storage and subject to change in runtime */
struct Initials
{
NetworkSlice defaultConfiguredNssai{};
NetworkSlice configuredNssai{};
} initials{};
/* Assigned by program */ /* Assigned by program */
bool configureRouting{}; bool configureRouting{};
......
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