X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=test%2Fselect-network;h=e7d1a635976d4069e73c151f2cc7ae76e035314c;hb=8f683573410f1ad35e700347c5018c8c4de22258;hp=e7491e8a8cc6c14cd02c96a55a835b2b46a6ca2b;hpb=1a3b9647cf270105ddc3d62ade586a776dc93592;p=connman diff --git a/test/select-network b/test/select-network index e7491e8..e7d1a63 100755 --- a/test/select-network +++ b/test/select-network @@ -20,6 +20,9 @@ for path in properties["Devices"]: properties = device.GetProperties() + if (properties["Type"] != "wifi" and properties["Type"] != "wimax"): + continue; + print "[ %s ]" % (path) for path in properties["Networks"]: @@ -31,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()