Commit 21182e3d authored by Lorn Potter's avatar Lorn Potter

[connectionagent] disconnect mobile data if wifi becomes ready

parent 77ec1669
......@@ -249,6 +249,11 @@ void QConnectionAgent::serviceStateChanged(const QString &state)
if (delayedTethering && service->type() == "wifi" && state == "association") {
service->requestDisconnect();
}
if (state == "ready" && service->type() == "wifi"
&& !delayedTethering
&& netman->defaultRoute()->type() == "cellular") {
netman->defaultRoute()->requestDisconnect();
}
if (state == "online") {
Q_EMIT connectionState(state, service->type());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment