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:
c9d7049
)
Fix being able to set powered after failure
author
Denis Kenzior
<denis.kenzior@intel.com>
Tue, 1 Sep 2009 03:59:39 +0000
(22:59 -0500)
committer
Denis Kenzior
<denkenz@gmail.com>
Tue, 1 Sep 2009 04:03:37 +0000
(23:03 -0500)
If enable failed, subsequent attempts will also fail.
src/modem.c
patch
|
blob
|
history
diff --git
a/src/modem.c
b/src/modem.c
index
2644f42
..
98f3726
100644
(file)
--- a/
src/modem.c
+++ b/
src/modem.c
@@
-516,6
+516,8
@@
static DBusMessage *modem_set_property(DBusConnection *conn,
}
modem->powered = powered;
+ modem->powered_pending = powered;
+
g_dbus_send_reply(conn, msg, DBUS_TYPE_INVALID);
ofono_dbus_signal_property_changed(conn, modem->path,
@@
-571,11
+573,12
@@
void ofono_modem_set_powered(struct ofono_modem *modem, ofono_bool_t powered)
__ofono_dbus_pending_reply(&modem->pending, reply);
}
+ modem->powered_pending = powered;
+
if (modem->powered == powered)
return;
modem->powered = powered;
- modem->powered_pending = powered;
if (modem->driver == NULL)
return;