| # Copyright (c) 2012 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 verifies that DUT can successfully connect to an AP |
| # when using non-Ascii RSN passphrases. |
| |
| { "name":"RSNNonAscii", |
| "steps":[ |
| [ "create", { "type":"hostap" } ], |
| |
| # Test a passphrase that consists of non-Ascii characters only |
| [ "config", { "channel":"2412", "mode":"11g", |
| "wpa":"2", "wpa_key_mgmt":"WPA-PSK", |
| "rsn_pairwise":"CCMP", |
| "wpa_passphrase":"一二三" } ], |
| [ "connect", { "security":"rsn", "psk":"一二三" } ], |
| [ "client_ping", { "count":"10" } ], |
| [ "disconnect" ], |
| [ "deconfig" ], |
| |
| # Test a passphrase that consists of both Ascii and non-Ascii characters |
| [ "config", { "channel":"2412", "mode":"11g", |
| "wpa":"2", "wpa_key_mgmt":"WPA-PSK", |
| "rsn_pairwise":"CCMP", |
| "wpa_passphrase":"abcdef\xc2\xa2" } ], |
| [ "connect", { "security":"rsn", "psk":"abcdef\xc2\xa2" } ], |
| [ "client_ping", { "count":"10" } ], |
| [ "disconnect" ], |
| |
| [ "destroy" ], |
| ], |
| } |