Trigger registration only in SA mode
Upon press of ^C, the UE triggers a NAS deregistration. This does not work in do-ra or phy-test modes, because there is no NAS. Therefore, in non-SA modes, just stop the UE directly.
This commit is contained in:
@@ -334,7 +334,7 @@ static void trigger_stop(int sig)
|
||||
}
|
||||
static void trigger_deregistration(int sig)
|
||||
{
|
||||
if (!stop_immediately) {
|
||||
if (!stop_immediately && IS_SA_MODE(get_softmodem_params())) {
|
||||
MessageDef *msg = itti_alloc_new_message(TASK_NAS_NRUE, 0, NAS_DEREGISTRATION_REQ);
|
||||
NAS_DEREGISTRATION_REQ(msg).cause = AS_DETACH;
|
||||
itti_send_msg_to_task(TASK_NAS_NRUE, 0, msg);
|
||||
|
||||
Reference in New Issue
Block a user