OLD | NEW |
---|---|
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # This test run is designed to check that we roam successfully when signal | 5 # This test run is designed to check that we roam successfully when signal |
6 # strength varies. | 6 # strength varies. |
7 { "name":"MultiSwitch", | 7 { "name":"MultiSwitch", |
8 "steps":[ | 8 "steps":[ |
9 [ "create", { "type":"hostap" } ], | 9 [ "create", { "type":"hostap" } ], |
10 | 10 |
11 [ "config", { "channel":"2412", "mode":"11g", "pureg":None } ], | 11 [ "config", { "channel":"2412", "mode":"11g", "pureg":None } ], |
12 | 12 |
13 # TODO(pstew): This is a very arbitrary limit based on the testbed | |
14 # characteristics (expected signal and noise, as well as the range | |
15 # of transmit power from the AP). | |
16 [ "bgscan_set", { "signal":"-40" }], | |
Sam Leffler
2011/04/07 19:08:06
maybe this belongs in the config file and set outs
Paul Stewart
2011/04/07 21:16:00
This is just a setup so that the "low signal" aler
| |
17 | |
13 # Connect to the first AP. | 18 # Connect to the first AP. |
14 [ "connect", { "security":"none" } ], | 19 [ "connect", { "security":"none" } ], |
15 [ "client_ping", { "count":"10" } ], | 20 [ "client_ping", { "count":"10" } ], |
16 | 21 |
22 # Once the connection is up, restore the profile values to flimflam default | |
23 [ "bgscan_set", { "reset":None }], | |
24 | |
17 # Create a second AP at the same time on the 5GHz radio, Channel 48 | 25 # Create a second AP at the same time on the 5GHz radio, Channel 48 |
18 [ "config", { "channel":"5240", "ht40-":None, "puren":None, | 26 [ "config", { "channel":"5240", "ht40-":None, "puren":None, |
19 "multi_interface":None } ], | 27 "multi_interface":None } ], |
20 | 28 |
21 # Drop the transmit power of the first AP | 29 # Drop the transmit power of the first AP |
22 [ "set_txpower", { "power":"fixed 0" } ], | 30 [ "set_txpower", { "power":"fixed 0" } ], |
23 | 31 |
24 # Instead of explicitly connecting, just wait to see if the DUT | 32 # Instead of explicitly connecting, just wait to see if the DUT |
25 # re-connects by itself | 33 # re-connects by itself |
26 [ "wait_service", { "run_timeout":40, # Timeout connection in 20 seconds | 34 [ "wait_service", { "run_timeout":40, # Timeout connection in 20 seconds |
27 "debug":True, # Print out all state transitions | 35 "debug":True, # Print out all state transitions |
28 "states":[ | 36 "states":[ |
29 (None, '+ready') # Wait for the "current AP" (as | 37 (None, '+ready') # Wait for the "current AP" (as |
30 ] } ], # read off the AP) | 38 ] } ], # read off the AP) |
31 # service to transition to "ready" | 39 # service to transition to "ready" |
32 [ "client_ping", { "count":"10" } ], | 40 [ "client_ping", { "count":"10" } ], |
33 | 41 |
34 # Return AP to auto transmit power | 42 # Return AP to auto transmit power |
35 [ "set_txpower", { "power":"auto" } ], | 43 [ "set_txpower", { "power":"auto" } ], |
36 | 44 |
37 [ "destroy" ], | 45 [ "destroy" ], |
38 ], | 46 ], |
39 } | 47 } |
OLD | NEW |