summaryrefslogtreecommitdiff
path: root/plugins/bluetooth.c
diff options
context:
space:
mode:
authorDavid Lechner <david@lechnology.com>2015-01-14 22:55:23 -0600
committerPatrik Flykt <patrik.flykt@linux.intel.com>2015-01-21 12:57:39 +0200
commit1b8b5c4b7f4823fdbbe6d523795729616dabe12e (patch)
tree914fcedf0afb883c2af939ec3c7ea9359faf5f1a /plugins/bluetooth.c
parent55d94dd3371666814ddf5559bdc7628ae7d79573 (diff)
downloadconnman-1b8b5c4b7f4823fdbbe6d523795729616dabe12e.tar.gz
bluetooth: Fix bluetooth plugin returning error on technology_set
The technology_set implementation in the bluetooth plugin returns -EINPROGRESS which causes problems. 1. When setting the Tethering property via D-Bus, D-Bus returns an error instead of completing successfuly. 2. When using the PersistentTetheringMode option, bluetooth tethering is not remembered. This is because /var/lib/connman/settings is not updated if technology_set returns an error. This fixes the issue by returning 0 when bluetooth_tech_set_tethering completes successfully.
Diffstat (limited to 'plugins/bluetooth.c')
-rw-r--r--plugins/bluetooth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index c6f387ed..636c7bf5 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -899,7 +899,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 = {