[PATCH] test:modify connect-service script to take wep

Robert, Denis denis.robert at intel.com
Mon Jan 24 07:09:31 PST 2011


Hi,
This modification allows to take wep security into account
without having to add an extra argument on the command line
in case of wep security


---
test/connect-service |    5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/test/connect-service b/test/connect-service
index 2d88cb5..4d90bc3 100755
--- a/test/connect-service
+++ b/test/connect-service
@@ -15,9 +15,8 @@ manager = dbus.Interface(bus.get_object("net.connman", "/"),
print "Attempting to connect service %s" % (sys.argv[1])
 if len(sys.argv) > 2:
-     if len(sys.argv) > 3:
-           security = sys.argv[3]
-     else:
+     security = sys.argv[3]
+     if security != "wep":
           security = "rsn"
     passphrase = sys.argv[2]
else:


I tested it (no_sec/wpa/wep)
Cheers,
Denis
---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris, 
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-test-modify-connect-service-script-to-take-wep.patch
Type: application/octet-stream
Size: 950 bytes
Desc: 0001-test-modify-connect-service-script-to-take-wep.patch
URL: <http://lists.01.org/pipermail/connman/attachments/20110124/44a65142/attachment.obj>


More information about the connman mailing list