Add OFF state for Ue (switched to this state upon connection reject). Remove assert against connection failed.

This commit is contained in:
Lluis Parcerisa
2012-12-13 18:27:24 +01:00
parent ac1081f276
commit a059f89a8b
3 changed files with 5 additions and 3 deletions

View File

@@ -216,7 +216,7 @@ EpcUeNas::DoRecvData (Ptr<Packet> packet)
void
EpcUeNas::DoNotifyConnectionReleased ()
{
NS_FATAL_ERROR ("connection failed, it should not happen with the current model");
NS_LOG_FUNCTION (this);
}
void

View File

@@ -99,7 +99,8 @@ const char* g_ueRrcStateName[LteUeRrc::NUM_STATES] =
"IDLE_CONNECTING",
"CONNECTED_NORMALLY",
"CONNECTED_REESTABLISHING",
"CONNECTED_HANDOVER"
"CONNECTED_HANDOVER",
"OFF"
};
std::string ToString (LteUeRrc::State s)
@@ -693,7 +694,7 @@ void
LteUeRrc::DoRecvRrcConnectionReject (LteRrcSap::RrcConnectionReject msg)
{
NS_LOG_FUNCTION (this);
LeaveConnectedMode();
SwitchToState (OFF);
}

View File

@@ -72,6 +72,7 @@ public:
CONNECTED_NORMALLY,
CONNECTED_REESTABLISHING,
CONNECTED_HANDOVER,
OFF,
NUM_STATES
};