From adda129e7ca2d1866df1c8f4af04d888febcd29c Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 22 Dec 2010 19:28:37 -0600 Subject: [PATCH] modem: Fix a typo The modem should be offline not online --- src/modem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modem.c b/src/modem.c index 4436f71..953d6c3 100644 --- a/src/modem.c +++ b/src/modem.c @@ -490,7 +490,8 @@ static void common_online_cb(const struct ofono_error *error, void *data) /* The powered operation is pending */ break; case MODEM_STATE_PRE_SIM: - modem->driver->set_online(modem, 1, NULL, NULL); + /* Go back offline if the sim was removed */ + modem->driver->set_online(modem, 0, NULL, NULL); break; case MODEM_STATE_ONLINE: ofono_error("Online called when the modem is already online!"); -- 2.7.4