Commit 029cf839 authored by Robert Schmidt's avatar Robert Schmidt

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.
parent f54ca571
...@@ -334,7 +334,7 @@ static void trigger_stop(int sig) ...@@ -334,7 +334,7 @@ static void trigger_stop(int sig)
} }
static void trigger_deregistration(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); MessageDef *msg = itti_alloc_new_message(TASK_NAS_NRUE, 0, NAS_DEREGISTRATION_REQ);
NAS_DEREGISTRATION_REQ(msg).cause = AS_DETACH; NAS_DEREGISTRATION_REQ(msg).cause = AS_DETACH;
itti_send_msg_to_task(TASK_NAS_NRUE, 0, msg); itti_send_msg_to_task(TASK_NAS_NRUE, 0, msg);
......
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