Background:<br>eth0: ethernet<br>eth1: wifi<br><br>I&#39;m using knetworkmanager from kde3 to connect to the internet and I&#39;m connected to a wifi network.<br>Whenever I use create an iface with uni == &quot;org.freedesktop.NetworkManager/Devices/eth0&quot; and run: &quot;iface.networks()&quot; it would kill my connection and knetworkmanager would re-create the wifi connection.<br>
<br>I was looking through &#39;kdebase/workspace/solid/networkmanager-0.6/NetworkManager-networkinterface.cpp and noticed this at lines 183-187:<br>if (d-&gt;type == Solid::Control::NetworkInterface::Ieee8023)<br>{<br>&nbsp;&nbsp;&nbsp; net = new NMNetwork(uni);<br>
&nbsp;&nbsp;&nbsp; net-&gt;setActivated(true);<br>}<br><br><br>What I believe is happening is my ethernet is becoming the active device through these lines.&nbsp; NetworkManager daemon automatically senses that there is no carrier and switches back to my wireless connection.<br>
<br>I need to be able to use this function as it allows me to parse available networks on wifi connections.&nbsp; It also doesn&#39;t seem right to me that a network is created and then explicitly made active.&nbsp; Could this be accomplished outside this function and only after a check that the interface is the current active interface?&nbsp; Automatically connecting to the network seems to be making the assumption that by creating the network, you automatically want to connect to it which isn&#39;t always correct (at least not in my case :)<br>
<br>Chris<br>