blob: cb69424bc844f4882168b48cee56d86bab8bbf19 [file] [log] [blame]
# 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.
# Purpose: This test case verifies that the DUT can connect to an AP using
# WEP authentication with 40-bit pre-shared keys (Ascii only).
{ "name":"CheckAsciiWEPKey40",
"steps":[ # Channel [1,6,11]
[ "create", { "type":"hostap" } ],
[ "config", { "channel":"2412", "mode":"11g",
"wepmode":"on",
# use quoted characters or unquoted hex digits
# hostapd supports up to 4 keys.
# key length = 5 bytes
"wep_key0": '"abcde"',
"wep_key1": '"vwxyz"',
"wep_key2": '"decba"',
"wep_key3": '"zyxwv"'
}
],
# key index 0, 40-bit WEP
[ "config", { "deftxkey":"0" } ],
[ "connect", { "security":"wep", "psk":"0:abcde" } ],
[ "client_ping", { "count":"10" } ],
[ "disconnect" ],
[ "deconfig" ],
# key index 1, 40-bit WEP
[ "config", { "deftxkey":"1" } ],
[ "connect", { "security":"wep", "psk":"1:vwxyz" } ],
[ "client_ping", { "count":"10" } ],
[ "disconnect" ],
[ "deconfig" ],
# key index 2, 40-bit WEP
[ "config", { "deftxkey":"2" } ],
[ "connect", { "security":"wep", "psk":"2:decba" } ],
[ "client_ping", { "count":"10" } ],
[ "disconnect" ],
[ "deconfig" ],
# key index 3, 40-bit WEP
[ "config", { "deftxkey":"3" } ],
[ "connect", { "security":"wep", "psk":"3:zyxwv" } ],
[ "client_ping", { "count":"10" } ],
[ "disconnect" ],
[ "destroy" ],
],
}