Fix usage of wrong network name property
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 13 Dec 2008 01:00:57 +0000 (02:00 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 13 Dec 2008 01:00:57 +0000 (02:00 +0100)
test/select-network
test/set-passphrase

index b5a0259..e7d1a63 100755 (executable)
@@ -34,6 +34,6 @@ for path in properties["Devices"]:
                if (properties["Connected"] == dbus.Boolean(1)):
                        continue
 
-               if (properties["WiFi.Name"] == sys.argv[1]):
+               if (properties["Name"] == sys.argv[1]):
                        print "Connecting %s" % (path)
                        network.Connect()
index 1c0d0f1..f80d754 100755 (executable)
@@ -29,6 +29,6 @@ for path in properties["Devices"]:
 
                properties = network.GetProperties()
 
-               if (properties["WiFi.Name"] == sys.argv[1]):
+               if (properties["Name"] == sys.argv[1]):
                        print "Setting passphrase for %s" % (path)
                        network.SetProperty("WiFi.Passphrase", sys.argv[2])