From: Zhang zhengguang <[email protected]>

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.
---
 plugins/bluetooth.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index ae3ac60..6bea834 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -865,7 +865,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 = {
-- 
1.7.10.4

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to