diff options
author | Dan Williams <dcbw@redhat.com> | 2007-03-28 21:37:46 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2007-03-28 21:37:46 (GMT) |
commit | a24dd155b42c358a145429eb667720b989f6bb04 (patch) | |
tree | 776999a0cdbac2f2b8106ff27eaf63ac8fc39a89 /shell/hardware/nmclient.py | |
parent | 32fa3dc65b0c68153b9745462d9709a081726c83 (diff) |
Make activating non-802-11-wireless devices work
Diffstat (limited to 'shell/hardware/nmclient.py')
-rw-r--r-- | shell/hardware/nmclient.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/hardware/nmclient.py b/shell/hardware/nmclient.py index 2492e05..7691e72 100644 --- a/shell/hardware/nmclient.py +++ b/shell/hardware/nmclient.py @@ -499,15 +499,15 @@ class NMClient(gobject.GObject): except dbus.DBusException: pass - def set_active_device(self, device, network): - net_op = "" + def set_active_device(self, device, network=None): + ssid = "" if network: - net_op = network.get_op() + ssid = network.get_ssid() try: # NM 0.6.4 and earlier have a bug which returns an # InvalidArguments error if no security information is passed # for wireless networks - self._nm_obj.setActiveDevice(device.get_op(), network.get_ssid()) + self._nm_obj.setActiveDevice(device.get_op(), ssid) except dbus.DBusException, e: if str(e).find("invalid arguments"): pass |