summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/host/layer23/src/mobile/app_mobile.c3
-rw-r--r--src/host/layer23/src/mobile/gui.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/src/host/layer23/src/mobile/app_mobile.c b/src/host/layer23/src/mobile/app_mobile.c
index 56c6b654..b0cf75db 100644
--- a/src/host/layer23/src/mobile/app_mobile.c
+++ b/src/host/layer23/src/mobile/app_mobile.c
@@ -136,6 +136,9 @@ int mobile_signal_cb(unsigned int subsys, unsigned int signal,
case S_L1CTL_KEYPAD:
kp = signal_data;
ms = kp->ms;
+ /* gui disabled */
+ if (!ms->settings.ui_port)
+ break;
ui_inst_keypad(&ms->gui.ui, kp->key);
break;
}
diff --git a/src/host/layer23/src/mobile/gui.c b/src/host/layer23/src/mobile/gui.c
index 067b168b..85033b23 100644
--- a/src/host/layer23/src/mobile/gui.c
+++ b/src/host/layer23/src/mobile/gui.c
@@ -1723,6 +1723,10 @@ int gui_notify_call(struct osmocom_ms *ms)
int last_call_j_last = 0, selected_call_j_last = 0;
struct gsm_call *last_call = NULL, *selected_call = NULL;
+ /* gui disabled */
+ if (!ms->settings.ui_port)
+ return 0;
+
if (gui->menu != MENU_STATUS
&& gui->menu != MENU_CALL)
return 0;