Use WiFi.Name property for network selection
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 23 Nov 2008 12:26:51 +0000 (13:26 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 23 Nov 2008 12:26:51 +0000 (13:26 +0100)
test/select-network

index afa287c..7684546 100755 (executable)
@@ -25,6 +25,6 @@ for path in elements:
        if (properties["Enabled"] == dbus.Boolean(1)):
                continue
 
-       if (properties["Identifier"] == sys.argv[1]):
+       if (properties["WiFi.Name"] == sys.argv[1]):
                print "Enabling %s" % (path)
                element.Enable()