[Dextrose] [PATCH] Sugar: check if adhoc connection is sugar-adhoc
Martin Abente
martin.abente.lahaye at gmail.com
Fri Nov 5 16:01:29 EDT 2010
Check if the adhoc connection belongs to a sugar-adhoc
network, otherwise do not use link-local mode. This caused
dhclient not being used, thefore sugar clients were not able
to connect properly to shared connection.
---
src/jarabe/desktop/meshbox.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/jarabe/desktop/meshbox.py b/src/jarabe/desktop/meshbox.py
index e3715cc..47ea64e 100644
--- a/src/jarabe/desktop/meshbox.py
+++ b/src/jarabe/desktop/meshbox.py
@@ -383,8 +383,9 @@ class WirelessNetworkView(CanvasPulsingIcon):
elif self._mode == network.NM_802_11_MODE_ADHOC:
settings.wireless.mode = 'adhoc'
settings.wireless.band = 'bg'
- settings.ip4_config = IP4Config()
- settings.ip4_config.method = 'link-local'
+ if network.is_sugar_adhoc_network(self._name):
+ settings.ip4_config = IP4Config()
+ settings.ip4_config.method = 'link-local'
wireless_security = self._get_security()
settings.wireless_security = wireless_security
--
1.7.1
More information about the Dextrose
mailing list