summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2013-04-26 12:51:33 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-04-30 10:43:29 (GMT)
commit16abff229fe782c6a8463a7e3b8df3f9c4a17283 (patch)
tree832218c2ad985af2d8642d347876ab2645ebfde5 /src
parentf795e365ecca6781cc99bd634f7a7e05bef1de95 (diff)
downloadconnman-16abff229fe782c6a8463a7e3b8df3f9c4a17283.zip
connman-16abff229fe782c6a8463a7e3b8df3f9c4a17283.tar.gz
connman-16abff229fe782c6a8463a7e3b8df3f9c4a17283.tar.bz2
technology: Disable tethering when device disappears
If tethering is active when device is removed, then shutdown tethering cleanly so that tether interface and bridge are properly removed.
Diffstat (limited to 'src')
-rw-r--r--src/technology.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/technology.c b/src/technology.c
index f214367..10e6132 100644
--- a/src/technology.c
+++ b/src/technology.c
@@ -1367,6 +1367,10 @@ int __connman_technology_remove_device(struct connman_device *device)
technology->device_list = g_slist_remove(technology->device_list,
device);
+
+ if (technology->tethering == TRUE)
+ set_tethering(technology, FALSE);
+
technology_put(technology);
return 0;