lte: Remove TFTs and restore bearer list upon RRC connection release

This commit is contained in:
Vignesh Babu
2019-04-10 16:40:28 +02:00
committed by ZorazeAli
parent 9bad25576f
commit 737c80a9ec

View File

@@ -178,8 +178,8 @@ void
EpcUeNas::Disconnect ()
{
NS_LOG_FUNCTION (this);
m_asSapProvider->Disconnect ();
SwitchToState (OFF);
m_asSapProvider->Disconnect ();
}
@@ -262,7 +262,16 @@ void
EpcUeNas::DoNotifyConnectionReleased ()
{
NS_LOG_FUNCTION (this);
SwitchToState (OFF);
// remove tfts
while (m_bidCounter > 0)
{
m_tftClassifier.Delete (m_bidCounter);
m_bidCounter--;
}
//restore the bearer list to be activated for the next RRC connection
m_bearersToBeActivatedList = m_bearersToBeActivatedListForReconnection;
Disconnect ();
}
void