| # 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. |
| |
| # This test run is designed to check that we can successfully select |
| # between two networks with identical SSIDs that have different |
| # security parameters. |
| # NB: no need to explicitly set SSID. |
| |
| { "name":"MultiAuth", |
| "steps":[ |
| [ "create", { "type":"hostap" } ], |
| |
| # Create an AP with no security |
| [ "config", { "channel":"2412", "mode":"11g", "pureg":None } ], |
| |
| # Create a second AP with the same SSID that requires WPA authentication |
| [ "config", { "channel":"5240", "mode":"11a", |
| "multi_interface":None, |
| "wpa":"1", "wpa_key_mgmt":"WPA-PSK", |
| "wpa_pairwise":"CCMP", |
| "wpa_passphrase":"chromeos" } ], |
| |
| # Connect to the first non-WPA AP. |
| [ "connect", { "security":"none" } ], |
| [ "client_ping", { "count":"10" } ], |
| |
| # Connect to the WPA AP. |
| [ "connect", { "security":"wpa", "psk":"chromeos" } ], |
| [ "client_ping", { "count":"10", "ap":1 } ], |
| |
| [ "destroy" ], |
| ], |
| } |