Add support for connecting and disconnecting networks
[connman] / test / start-scanning
index 9d3f4db..cf36477 100755 (executable)
@@ -17,12 +17,9 @@ for path in properties["Devices"]:
 
        print "[ %s ]" % (path)
 
-       if (properties["Type"] == "wifi"):
-               print "   Started WiFi scanning"
-               device.Scan()
-       elif (properties["Type"] == "wimax"):
-               print "   Started WiMAX scanning"
-               device.Scan()
+       if properties["Type"] in ["wifi", "wimax"]:
+               print "   Started scanning"
+               device.ProposeScan()
        else:
                print "   No scanning"