network_WiFi_RoamFT: Change second AP to use 11n with HT40
This results in the second AP having a much higher estimated
throughput than the first AP, reliably causing a roam.
BUG=chromium:900453
TEST=Ran on a few devices currently failing the autotest with reason
"Failed to roam" and they pass. Ran on caroline at my desk and
it still passes.
Change-Id: Ic00c5eef0e6a28ebc4c1e2d519e87e76951cf73a
Reviewed-on: https://chromium-review.googlesource.com/1385527
Commit-Ready: Matthew Wang <matthewmwang@chromium.org>
Tested-by: Matthew Wang <matthewmwang@chromium.org>
Reviewed-by: Kirtika Ruchandani <kirtika@chromium.org>
diff --git a/server/site_tests/network_WiFi_RoamFT/network_WiFi_RoamFT.py b/server/site_tests/network_WiFi_RoamFT/network_WiFi_RoamFT.py
index ca52071..fbe4a6f 100644
--- a/server/site_tests/network_WiFi_RoamFT/network_WiFi_RoamFT.py
+++ b/server/site_tests/network_WiFi_RoamFT/network_WiFi_RoamFT.py
@@ -98,8 +98,15 @@
r0kh='%s %s %s' % (mac1, id1, key0),
r1kh='%s %s %s' % (mac1, mac1, key1),
use_bridge=True)
- router1_conf = hostap_config.HostapConfig(channel=48,
- mode=hostap_config.HostapConfig.MODE_11A,
+ n_caps = [hostap_config.HostapConfig.N_CAPABILITY_HT40_PLUS]
+ ac_caps = [hostap_config.HostapConfig.AC_CAPABILITY_SHORT_GI_80]
+ channel_width_80_mhz = hostap_config.HostapConfig.VHT_CHANNEL_WIDTH_80
+ router1_conf = hostap_config.HostapConfig(channel=157,
+ mode=hostap_config.HostapConfig.MODE_11AC_PURE,
+ n_capabilities=n_caps,
+ ac_capabilities=ac_caps,
+ vht_channel_width=channel_width_80_mhz,
+ vht_center_channel=155,
security_config=self._security_config,
bssid=mac1,
mdid=mdid,