OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26653cd
)
neard: Check if adapter is powered in PushOOB
author
Szymon Janc
<szymon.janc@tieto.com>
Thu, 7 Feb 2013 08:13:56 +0000
(09:13 +0100)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Fri, 15 Feb 2013 08:41:22 +0000
(10:41 +0200)
For PushOOB adapter needs to be powered as bluetoothd daemon is
expected to perform action on success.
plugins/neard.c
patch
|
blob
|
history
diff --git
a/plugins/neard.c
b/plugins/neard.c
index
131e8bd
..
0418430
100644
(file)
--- a/
plugins/neard.c
+++ b/
plugins/neard.c
@@
-629,6
+629,9
@@
static DBusMessage *push_oob(DBusConnection *conn, DBusMessage *msg, void *data)
if (err < 0)
return error_reply(msg, -err);
+ if (!btd_adapter_get_powered(adapter))
+ return error_reply(msg, ENONET);
+
agent = adapter_get_agent(adapter);
if (!agent)
return error_reply(msg, ENONET);