Don't send signals when powered state changes occur during probe
[connman] / test / start-scanning
index aaa3e58..cf36477 100755 (executable)
@@ -17,11 +17,8 @@ for path in properties["Devices"]:
 
        print "[ %s ]" % (path)
 
-       if (properties["Type"] == "wifi"):
-               print "   Started WiFi scanning"
-               device.ProposeScan()
-       elif (properties["Type"] == "wimax"):
-               print "   Started WiMAX scanning"
+       if properties["Type"] in ["wifi", "wimax"]:
+               print "   Started scanning"
                device.ProposeScan()
        else:
                print "   No scanning"