projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a209ba1
)
Handle missing Name property when setting passphrase
author
Marcel Holtmann
<marcel@holtmann.org>
Sun, 28 Jun 2009 07:18:15 +0000
(09:18 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sun, 28 Jun 2009 07:18:15 +0000
(09:18 +0200)
test/set-passphrase
patch
|
blob
|
history
diff --git
a/test/set-passphrase
b/test/set-passphrase
index
f80d754
..
a104416
100755
(executable)
--- a/
test/set-passphrase
+++ b/
test/set-passphrase
@@
-29,6
+29,9
@@
for path in properties["Devices"]:
properties = network.GetProperties()
- if (properties["Name"] == sys.argv[1]):
+ if "Name" not in properties:
+ continue
+
+ if properties["Name"] == sys.argv[1]:
print "Setting passphrase for %s" % (path)
network.SetProperty("WiFi.Passphrase", sys.argv[2])