Don't check non wireless devices
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 5 Dec 2008 23:00:11 +0000 (00:00 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 5 Dec 2008 23:00:11 +0000 (00:00 +0100)
test/disable-network
test/list-networks
test/select-network
test/set-passphrase

index beea2f1..0f26154 100755 (executable)
@@ -15,6 +15,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"]:
index 94e111c..3b29a8e 100755 (executable)
@@ -15,6 +15,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"]:
index e7491e8..b5a0259 100755 (executable)
@@ -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"]:
index db39554..1c0d0f1 100755 (executable)
@@ -20,6 +20,9 @@ for path in properties["Devices"]:
 
        properties = device.GetProperties()
 
+       if (properties["Type"] != "wifi" and properties["Type"] != "wimax"):
+               continue;
+
        for path in properties["Networks"]:
                network = dbus.Interface(bus.get_object("org.moblin.connman", path),
                                                "org.moblin.connman.Network")