blob: 83e3f5c3f04902e3fc4b5b2bf8d33819c23b0e3a [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 designed to check that a 5GHz signal is preferred over 2.4
# GHz.
{ "name":"Prefer5GHz",
"steps":[
[ "create", { "type":"hostap" } ],
[ "config", { "channel":"2412", "mode":"11g", "pureg":None } ],
[ "config", { "channel":"5240", "multi_interface":None } ],
# Set the two APs to approximately the same power.
[ "set_txpower", { "interface":"managed0", "power":"fixed 0" } ],
[ "set_txpower", { "interface":"managed1", "power":"fixed 0" } ],
[ "connect", { "security":"none" } ],
[ "client_ping", { "count":"5", "ap":1 } ],
# Verify that the client chose the 5GHz band.
[ "client_check_frequency", [ "5240" ] ],
[ "destroy" ],
],
}