Add global Policy property and cleanup State property
[connman] / test / select-network
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()