properties = device.GetProperties()
+ if (properties["Type"] != "wifi" and properties["Type"] != "wimax"):
+ continue;
+
print "[ %s ]" % (path)
for path in properties["Networks"]:
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()