properties = device.GetProperties()
- if (properties["Type"] != "wifi" and properties["Type"] != "wimax"):
+ if properties["Type"] not in ["wifi", "wimax",
+ "bluetooth", "cellular"]:
continue;
print "[ %s ]" % (path)
if (key == "WiFi.SSID"):
ssid = convert_ssid(properties[key])
print " %s = [ %s ]" % (key, ssid)
- elif (key == "WiFi.Strength"):
+ elif (key == "Strength"):
print " %s = %d" % (key, properties[key])
else:
print " %s = %s" % (key, properties[key])