Add OFF state for Ue (switched to this state upon connection reject). Remove assert against connection failed.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -72,6 +72,7 @@ public:
|
||||
CONNECTED_NORMALLY,
|
||||
CONNECTED_REESTABLISHING,
|
||||
CONNECTED_HANDOVER,
|
||||
OFF,
|
||||
NUM_STATES
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user