summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Tyszkowski <jakub.tyszkowski@tieto.com>2013-12-05 11:37:12 +0100
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2013-12-08 17:47:42 +0200
commite57b702e8c5894a654cc2432758e084ff1d7a61b (patch)
treece2ba1e40d65270e17a428b5d4d9ee846833339c
parentce63a8eb46db860d8b82ce9283f6a4f223337a04 (diff)
downloadbluez-e57b702e8c5894a654cc2432758e084ff1d7a61b.tar.gz
android: Fix sending status on bluetooth init if already initialized
We should be sending BT_STATUS_DONE when calling init on already initialized interface like Bluedroid does. This indicates that previosly registered callbacks are still registered, not those passed with second init call.
-rw-r--r--android/hal-bluetooth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c
index 87d6fc760..7cac15c70 100644
--- a/android/hal-bluetooth.c
+++ b/android/hal-bluetooth.c
@@ -373,7 +373,7 @@ static int init(bt_callbacks_t *callbacks)
DBG("");
if (interface_ready())
- return BT_STATUS_SUCCESS;
+ return BT_STATUS_DONE;
bt_hal_cbacks = callbacks;