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:
Robert Schmidt
2024-11-14 12:13:45 +01:00
parent f54ca5714e
commit 029cf83918
+1 -1
View File
@@ -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);