summaryrefslogtreecommitdiffstats
path: root/src/modem.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-12-22 19:28:37 -0600
committerDenis Kenzior <denkenz@gmail.com>2010-12-22 19:28:37 -0600
commitadda129e7ca2d1866df1c8f4af04d888febcd29c (patch)
tree2fd14aca1ea6b57abb0962ae18bce133648db236 /src/modem.c
parenteddc201bdd3d44b863093158854768dc2fd6855e (diff)
downloadofono-adda129e7ca2d1866df1c8f4af04d888febcd29c.tar.bz2
modem: Fix a typo
The modem should be offline not online
Diffstat (limited to 'src/modem.c')
-rw-r--r--src/modem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modem.c b/src/modem.c
index 4436f713..953d6c31 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!");