Commit 8fc768a4 authored by aligungr's avatar aligungr

L3 RRC/NAS developments

parent 750d5613
......@@ -25,7 +25,8 @@ struct PduInfo
enum class ERlfCause
{
PDU_ID_EXISTS,
PDU_ID_FULL
PDU_ID_FULL,
SIGNAL_LOST_TO_CONNECTED_CELL
};
} // namespace rls
\ No newline at end of file
......@@ -48,12 +48,22 @@ void UeRrcTask::notifyCellLost(int cellId)
if (!m_cellDesc.count(cellId))
return;
bool isActiveCell = false;
m_base->shCtx.currentCell.mutate([&isActiveCell, cellId](auto &value) {
if (value.cellId == cellId)
{
value = {};
isActiveCell = true;
}
});
m_cellDesc.erase(cellId);
m_logger->debug("Signal lost for cell[%d], total [%d] cells in coverage", cellId,
static_cast<int>(m_cellDesc.size()));
// TODO: handle other operations
if (isActiveCell && m_state != ERrcState::RRC_IDLE)
declareRadioLinkFailure(rls::ERlfCause::SIGNAL_LOST_TO_CONNECTED_CELL);
updateAvailablePlmns();
}
......
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