| # 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 104-bit pre-shared keys (Ascii only). |
| |
| { "name":"CheckAsciiWEPKey104", |
| "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 = 13 bytes |
| "wep_key0": '"abcdefghijklm"', |
| "wep_key1": '"01:0123456789"', |
| "wep_key2": '"mlkjihgfedcba"', |
| "wep_key3": '"03:0123456789"' |
| } |
| ], |
| |
| # 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:01:0123456789" } ], |
| [ "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:03:0123456789" } ], |
| [ "client_ping", { "count":"10" } ], |
| [ "disconnect" ], |
| |
| [ "destroy" ], |
| ], |
| } |