projects
/
connman
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move network connection state handling to idle callback
[connman]
/
test
/
list-networks
diff --git
a/test/list-networks
b/test/list-networks
index
b446210
..
e8fb00a
100755
(executable)
--- a/
test/list-networks
+++ b/
test/list-networks
@@
-25,8
+25,12
@@
for path in properties["Devices"]:
properties = device.GetProperties()
properties = device.GetProperties()
- if (properties["Type"] != "wifi" and properties["Type"] != "wimax"):
- continue;
+ try:
+ if properties["Type"] not in ["wifi", "wimax",
+ "bluetooth", "cellular"]:
+ continue
+ except:
+ continue
print "[ %s ]" % (path)
print "[ %s ]" % (path)
@@
-39,10
+43,10
@@
for path in properties["Devices"]:
print " [ %s ]" % (path)
for key in properties.keys():
print " [ %s ]" % (path)
for key in properties.keys():
- if (key == "WiFi.SSID"):
+ if key == "WiFi.SSID":
ssid = convert_ssid(properties[key])
print " %s = [ %s ]" % (key, ssid)
ssid = convert_ssid(properties[key])
print " %s = [ %s ]" % (key, ssid)
- elif (key == "Strength"):
+ elif key in ["Strength", "Priority"]:
print " %s = %d" % (key, properties[key])
else:
print " %s = %s" % (key, properties[key])
print " %s = %d" % (key, properties[key])
else:
print " %s = %s" % (key, properties[key])