Fix BMC#22745 still see 3G service after disable cellular
---
plugins/ofono.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/plugins/ofono.c b/plugins/ofono.c
index 060cd8e..5c32a3d 100644
--- a/plugins/ofono.c
+++ b/plugins/ofono.c
@@ -317,11 +317,14 @@ static int modem_enable(struct connman_device *device)
return modem_change_online(path, TRUE);
}
+static void remove_device_networks(struct connman_device *device);
+
static int modem_disable(struct connman_device *device)
{
const char *path = connman_device_get_string(device, "Path");
DBG("device %p path %s", device, path);
+ remove_device_networks(device);
return modem_change_online(path, FALSE);
}
--
1.7.2.2
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman