From 2e861308d65b650642ad9215cd877172e17a4ba0 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Wed, 19 Dec 2018 19:15:58 +0700 Subject: [PATCH] layer23/mobile: drop dead SAP initialization code SAP connection can be initialized upon request. Change-Id: Ic89089c4850ab2c9252bfd43a05d5271e2e3a160 --- src/host/layer23/src/mobile/app_mobile.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/host/layer23/src/mobile/app_mobile.c b/src/host/layer23/src/mobile/app_mobile.c index a051fbaa1..84dec8656 100644 --- a/src/host/layer23/src/mobile/app_mobile.c +++ b/src/host/layer23/src/mobile/app_mobile.c @@ -221,16 +221,6 @@ static int mobile_init(struct osmocom_ms *ms) return rc; } -#if 0 - rc = sap_open(ms, ms->settings.sap_socket_path); - if (rc < 0) { - fprintf(stderr, "Failed during sap_open(), no SIM reader\n"); - ms->sap_wq.bfd.fd = -1; - mobile_exit(ms, 1); - return rc; - } -#endif - gsm_random_imei(&ms->settings); mobile_set_shutdown(ms, MS_SHUTDOWN_NONE);