projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78008c6
)
Fix: Reset call_ids when modem is powered off
author
Zhenhua Zhang
<zhenhua.zhang@intel.com>
Fri, 27 Nov 2009 09:11:56 +0000
(17:11 +0800)
committer
Denis Kenzior
<denkenz@gmail.com>
Thu, 26 Nov 2009 14:08:17 +0000
(08:08 -0600)
src/modem.c
patch
|
blob
|
history
diff --git
a/src/modem.c
b/src/modem.c
index
e251961
..
c335a38
100644
(file)
--- a/
src/modem.c
+++ b/
src/modem.c
@@
-501,6
+501,7
@@
static DBusMessage *modem_set_property(DBusConnection *conn,
modem->driver->pre_sim(modem);
} else {
remove_all_atoms(modem);
+ modem->call_ids = 0;
}
return NULL;
@@
-563,6
+564,7
@@
void ofono_modem_set_powered(struct ofono_modem *modem, ofono_bool_t powered)
modem->driver->pre_sim(modem);
} else {
remove_all_atoms(modem);
+ modem->call_ids = 0;
}
}
@@
-1147,6
+1149,7
@@
static void modem_unregister(struct ofono_modem *modem)
return;
remove_all_atoms(modem);
+ modem->call_ids = 0;
__ofono_watchlist_free(modem->atom_watches);
modem->atom_watches = NULL;