Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Unified Diff: server/site_tests/network_WiFiSecMat/004AsciiKeyWEP104

Issue 3461006: add tests for Ascii WEP keys and to test invalid parameters (Closed) Base URL: ssh://git@chromiumos-git//autotest.git
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: server/site_tests/network_WiFiSecMat/004AsciiKeyWEP104
diff --git a/server/site_tests/network_WiFiSecMat/004AsciiKeyWEP104 b/server/site_tests/network_WiFiSecMat/004AsciiKeyWEP104
new file mode 100644
index 0000000000000000000000000000000000000000..fc36a2b9a7bea5602b6a0c2485e4836ec94807a9
--- /dev/null
+++ b/server/site_tests/network_WiFiSecMat/004AsciiKeyWEP104
@@ -0,0 +1,83 @@
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{ "name":"CheckAsciiWEPKey104",
+ "steps":[ # Channel [1,6,11]
+ [ "create", { "type":"hostap" } ],
+ [ "config", { "channel":"2412", "mode":"11g",
+# "authmode":"open", "wepmode":"on",
+ "wepmode":"on",
+ # 13 bytes: 0123456789012
+ "wep_key0": '"abcdefghijklm"',
+ "wep_key1": '"nopqrstuvwxyz"',
+ "wep_key2": '"mlkjihgfedcba"',
+ "wep_key3": '"zyxwvutsrqpon"'
+ }
+ ],
+
+ # key index 0, 104-bit WEP
+ [ "config", { "deftxkey":"0" } ],
+ [ "connect", { "security":"wep", "psk":"0:abcdefghijklm" } ],
+ [ "client_ping", { "count":"10" } ],
+ [ "disconnect" ],
+ [ "deconfig" ],
+
+ # key index 1, 104-bit WEP
+ [ "config", { "deftxkey":"1" } ],
+ [ "connect", { "security":"wep", "psk":"1:nopqrstuvwxyz" } ],
+ [ "client_ping", { "count":"10" } ],
+ [ "disconnect" ],
+ [ "deconfig" ],
+
+ # key index 2, 104-bit WEP
+ [ "config", { "deftxkey":"2" } ],
+ [ "connect", { "security":"wep", "psk":"2:mlkjihgfedcba" } ],
+ [ "client_ping", { "count":"10" } ],
+ [ "disconnect" ],
+ [ "deconfig" ],
+
+ # key index 3, 104-bit WEP
+ [ "config", { "deftxkey":"3" } ],
+ [ "connect", { "security":"wep", "psk":"3:zyxwvutsrqpon" } ],
+ [ "client_ping", { "count":"10" } ],
+ [ "disconnect" ],
+
+ [ "config", { # 13 bytes: 0123456789012
+ "wep_key0": '"00:0123456789"',
+ "wep_key1": '"01:0123456789"',
+ "wep_key2": '"02:0123456789"',
+ "wep_key3": '"04:0123456789"'
+ }
+ ],
+
+ # key index 0, 104-bit WEP
+ [ "config", { "deftxkey":"0" } ],
+ [ "connect", { "security":"wep", "psk":"0:00:0123456789" } ],
+ [ "client_ping", { "count":"10" } ],
+ [ "disconnect" ],
+ [ "deconfig" ],
+
+ # key index 1, 104-bit WEP
+ [ "config", { "deftxkey":"1" } ],
+ [ "connect", { "security":"wep", "psk":"1:01:0123456789" } ],
+ [ "client_ping", { "count":"10" } ],
+ [ "disconnect" ],
+ [ "deconfig" ],
+
+ # key index 2, 104-bit WEP
+ [ "config", { "deftxkey":"2" } ],
+ [ "connect", { "security":"wep", "psk":"2:02:0123456789" } ],
+ [ "client_ping", { "count":"10" } ],
+ [ "disconnect" ],
+ [ "deconfig" ],
+
+ # key index 3, 104-bit WEP
+ [ "config", { "deftxkey":"3" } ],
+ [ "connect", { "security":"wep", "psk":"3:04:0123456789" } ],
+ [ "client_ping", { "count":"10" } ],
+ [ "disconnect" ],
+
+ [ "destroy" ],
+ ],
+}
« no previous file with comments | « server/site_tests/network_WiFiSecMat/003AsciiKeyWEP40 ('k') | server/site_tests/network_WiFiSecMat/035CheckWEPKeySyntax » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698