| # Copyright (c) 2011 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. |
| |
| # Verify we can connect to a WPA network using PSK security. |
| { "name":"CheckPSK", |
| "steps":[ |
| [ "create", { "type":"hostap" } ], |
| [ "config", { "channel":"2412", "mode":"11g", |
| "wpa":"1", "wpa_key_mgmt":"WPA-PSK", |
| "wpa_pairwise":"TKIP", |
| "wpa_passphrase":"chromeos" } ], |
| # Connect using PSK security. |
| # Note: The "hidden" specification is just to make the test harness |
| # exercise a code path which doesn't rely on getting the service list |
| # from the connection manager and finding a match. i.e., this test is |
| # distinct from checking if hidden networks are supported (since the AP |
| # itself is not specified as hidden in the config section above). |
| [ "connect", { "security":"psk", "psk":"chromeos", "hidden":True } ], |
| [ "client_ping", { "count":"10" } ], |
| [ "destroy" ], |
| ], |
| } |