From 920f77b7707c0a54e8e2cc29e97319218991e709 Mon Sep 17 00:00:00 2001 From: Vincent Cesson Date: Thu, 13 Apr 2017 10:05:46 +0200 Subject: [PATCH] gemalto: Change offline mode, keep USIM available Gemalto has two airplane mode: CFUN=0 disables USIM CFUN=4 keeps USIM connected --- plugins/gemalto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/gemalto.c b/plugins/gemalto.c index 846e263d..ab0da8f6 100644 --- a/plugins/gemalto.c +++ b/plugins/gemalto.c @@ -165,7 +165,7 @@ static void gemalto_set_online(struct ofono_modem *modem, ofono_bool_t online, { struct gemalto_data *data = ofono_modem_get_data(modem); struct cb_data *cbd = cb_data_new(cb, user_data); - char const *command = online ? "AT+CFUN=1" : "AT+CFUN=0"; + char const *command = online ? "AT+CFUN=1" : "AT+CFUN=4"; DBG("modem %p %s", modem, online ? "online" : "offline");