Don't automatically join a network if we already have a link.

The _ConfigureInterface() method is used as a backend for all
configuration tasks. That includes setting addresses manually or by
DHCP and changing flags, mtu or metric. Therefore we can't join
networks every time it is invoked. Instead we check for an existing
link first and only try to join if there is none yet.
This commit is contained in:
Michael Lotz
2013-04-02 01:18:01 +02:00
parent 8163a8e0ef
commit 2ac5770dc7
+1 -1
View File
@@ -533,7 +533,7 @@ NetServer::_ConfigureInterface(BMessage& message)
}
BNetworkDevice device(name);
if (device.IsWireless()) {
if (device.IsWireless() && !device.HasLink()) {
const char* networkName;
if (message.FindString("network", &networkName) == B_OK) {
// join configured network