Tizen: Unify bluetooth tethering enable logic
authorZhang zhengguang <zhengguang.zhang@intel.com>
Tue, 25 Mar 2014 06:16:52 +0000 (14:16 +0800)
committerZhang zhengguang <zhengguang.zhang@intel.com>
Fri, 31 Oct 2014 08:06:20 +0000 (16:06 +0800)
In bluez 4.x plugin, when bluetooth tethering is enabled,
set_tethering() returns 0, while in bluez 5.x plugin,
it returns -EINPROGRESS, which is not compatiable for
ConnMan to handle both of them, this patch makes bluez
5.x tethering enable logic consistent with bluez 4.x.

Change-Id: I618efd32b5f123fe9bdb58d10adb29c67a87796f

plugins/bluetooth.c

index 82217d0..28df406 100644 (file)
@@ -880,7 +880,7 @@ static int bluetooth_tech_set_tethering(struct connman_technology *technology,
        if (i == 0)
                return -ENODEV;
 
-       return -EINPROGRESS;
+       return 0;
 }
 
 static struct connman_technology_driver tech_driver = {