Diff between 49e25b927e3317ab17bcf867b2eca55a6ddc428a and 4472f5a35cffd97edd7e4d1ef758de9852961a8a

Changed Files

File Additions Deletions Status
android/hal-map-client.c +8 -2 modified

Full Patch

diff --git a/android/hal-map-client.c b/android/hal-map-client.c
index 6c927d4..adf04fc 100644
--- a/android/hal-map-client.c
+++ b/android/hal-map-client.c
@@ -119,8 +119,14 @@ static bt_status_t init(btmce_callbacks_t *callbacks)
 
 	DBG("");
 
-	if (interface_ready())
-		return BT_STATUS_DONE;
+	/*
+	 * Interface ready check was removed because there is no cleanup
+	 * function to unregister and clear callbacks. MAP client testers may
+	 * restart bluetooth, unregister this profile and try to reuse it.
+	 * This situation make service unregistered but callbacks are still
+	 * set - interface is ready. On android devices there is no need to
+	 * re-init MAP client profile while bluetooth is loaded.
+	 */
 
 	cbs = callbacks;