blob: d49485d02cfa5d3d47aaa5a35ece4daf637718c0 [file] [log] [blame]
# 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 meant to test AP hopping. This is a fairly
# simple test and is very "kind" to the DUT, in the sense that
# when we do an AP deconfig, it sends out a DEAUTH, so the DUT
# should be immediately aware that it is time to scan for a new
# AP. This should be a best-case roaming test.
{ "name":"ChannelHop",
"steps":[ # Channel 1,6,11
[ "create", { "type":"hostap" } ],
# Set up an AP and join the DUT to it
[ "config", { "channel":"2412", "mode":"11b" } ],
[ "connect", { "security":"none" } ],
[ "client_ping", { "count":"10" } ],
[ "deconfig" ],
# Change channels on the AP. This happens in full view of the DUT
# and the AP deauths everyone as it exits.
[ "config", { "channel":"2437", "mode":"11b" } ],
# Wait for the DUT to scan and acquire the AP at the new frequency
[ "wait_service", { "run_timeout":20, # Give up in 20 seconds
"debug":True, # Output all state changes
"states":
[(None, '+ready')] # Wait for svc to go "ready"
} ],
[ "client_ping", { "count":"10" } ],
[ "deconfig" ],
# Repeat the same test at a different frequency
[ "config", { "channel":"2462", "mode":"11b" } ],
[ "wait_service", { "run_timeout":20,
"debug":True,
"states":[(None, '+ready')] } ],
[ "client_ping", { "count":"10" } ],
[ "destroy" ],
],
}