projects
/
framework
/
connectivity
/
connman.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
device: Disconnect a connected network before disabling the device
[framework/connectivity/connman.git]
/
src
/
device.c
diff --git
a/src/device.c
b/src/device.c
index
de7b141
..
fedd581
100644
(file)
--- a/
src/device.c
+++ b/
src/device.c
@@
-298,6
+298,9
@@
int __connman_device_disable(struct connman_device *device)
clear_scan_trigger(device);
+ if (device->network)
+ connman_network_set_connected(device->network, FALSE);
+
err = device->driver->disable(device);
if (err == 0) {
connman_device_set_powered(device, FALSE);