| 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     # Connect to the first AP. |  13     # Connect to the first AP. | 
|  14     [ "connect",        { "security":"none" } ], |  14     [ "connect",        { "security":"none" } ], | 
|  15     [ "client_ping",    { "count":"10" } ], |  15     [ "client_ping",    { "count":"10" } ], | 
|  16  |  16  | 
|  17     # Create a second AP at the same time on the 5GHz radio, Channel 48 |  17     # Create a second AP at the same time on the 5GHz radio, Channel 48 | 
|  18     [ "config",         { "channel":"5240", "ht40":None, "puren":None, |  18     [ "config",         { "channel":"5240", "ht40-":None, "puren":None, | 
|  19                           "multi_interface":None } ], |  19                           "multi_interface":None } ], | 
|  20  |  20  | 
|  21     # Drop the transmit power of the first AP |  21     # Drop the transmit power of the first AP | 
|  22     [ "set_txpower",    { "power":"fixed 0" } ], |  22     [ "set_txpower",    { "power":"fixed 0" } ], | 
|  23  |  23  | 
|  24     # Instead of explicitly connecting, just wait to see if the DUT |  24     # Instead of explicitly connecting, just wait to see if the DUT | 
|  25     # re-connects by itself |  25     # re-connects by itself | 
|  26     [ "wait_service",   { "run_timeout":40,   # Timeout connection in 20 seconds |  26     [ "wait_service",   { "run_timeout":40,   # Timeout connection in 20 seconds | 
|  27                           "debug":True,       # Print out all state transitions |  27                           "debug":True,       # Print out all state transitions | 
|  28                           "states":[ |  28                           "states":[ | 
|  29                              (None, '+ready')  # Wait for the "current AP" (as |  29                              (None, '+ready')  # Wait for the "current AP" (as | 
|  30                           ] } ],              # read off the AP) |  30                           ] } ],              # read off the AP) | 
|  31                                               # service to transition to "ready" |  31                                               # service to transition to "ready" | 
|  32     [ "client_ping",    { "count":"10" } ], |  32     [ "client_ping",    { "count":"10" } ], | 
|  33  |  33  | 
|  34     # Return AP to auto transmit power |  34     # Return AP to auto transmit power | 
|  35     [ "set_txpower",    { "power":"auto" } ], |  35     [ "set_txpower",    { "power":"auto" } ], | 
|  36  |  36  | 
|  37     [ "destroy" ], |  37     [ "destroy" ], | 
|  38   ], |  38   ], | 
|  39 } |  39 } | 
| OLD | NEW |