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