bluetooth: Unify bluetooth tethering enable logic 96/18596/1 accepted/tizen_generic accepted/tizen_ivi_panda tizen_3.0.m14.2_ivi accepted/tizen/generic/20140331.081727 accepted/tizen/ivi/20140328.192754 accepted/tizen/ivi/panda/20140328.181256 submit/tizen/20140328.063916 tizen_3.0.m14.2_ivi_release
authorZhang zhengguang <zhengguang.zhang@intel.com>
Tue, 25 Mar 2014 06:16:52 +0000 (14:16 +0800)
committerZhang zhengguang <zhengguang.zhang@intel.com>
Thu, 27 Mar 2014 02:30:11 +0000 (10:30 +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 a394659..879c608 100644 (file)
@@ -848,7 +848,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 = {