From: Denis Kenzior Date: Thu, 23 Dec 2010 01:28:37 +0000 (-0600) Subject: modem: Fix a typo X-Git-Tag: 0.37~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=adda129e7ca2d1866df1c8f4af04d888febcd29c;p=platform%2Fupstream%2Fofono.git modem: Fix a typo The modem should be offline not online --- 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!");