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:
26ba190
)
android/daemon: Fix error setting property
author
Andrei Emeltchenko
<andrei.emeltchenko@intel.com>
Thu, 31 Oct 2013 11:52:38 +0000
(13:52 +0200)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Thu, 31 Oct 2013 13:44:43 +0000
(15:44 +0200)
Do not return error setting property which is already set. This fixes
bug with set_scan_mode which might return HAL_STATUS_DONE.
android/adapter.c
patch
|
blob
|
history
diff --git
a/android/adapter.c
b/android/adapter.c
index
a3f9aa6
..
7baf356
100644
(file)
--- a/
android/adapter.c
+++ b/
android/adapter.c
@@
-943,7
+943,7
@@
void bt_adapter_handle_cmd(GIOChannel *io, uint8_t opcode, void *buf,
break;
case HAL_OP_SET_ADAPTER_PROP:
status = set_property(buf, len);
- if (status != HAL_STATUS_SUCCESS)
+ if (status != HAL_STATUS_SUCCESS
&& status != HAL_STATUS_DONE
)
goto error;
break;