aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-11-26 18:40:40 (GMT)
committerJouni Malinen <j@w1.fi>2015-11-26 18:41:55 (GMT)
commit3960585785f8f73d497bbecb305bd0cf0e603789 (patch)
tree4e989d61d537795448874561463007ea892414f1
parent3c417499e71b0c7f2dfae69fb1b67eb31e467ba6 (diff)
downloadhostap-3960585785f8f73d497bbecb305bd0cf0e603789.zip
hostap-3960585785f8f73d497bbecb305bd0cf0e603789.tar.gz
hostap-3960585785f8f73d497bbecb305bd0cf0e603789.tar.bz2
tests: VHT with 80 MHz channel width and local power constraint
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
-rw-r--r--tests/hwsim/test_ap_vht.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/hwsim/test_ap_vht.py b/tests/hwsim/test_ap_vht.py
index cf6e0f8..81173ed 100644
--- a/tests/hwsim/test_ap_vht.py
+++ b/tests/hwsim/test_ap_vht.py
@@ -581,3 +581,33 @@ def test_prefer_vht40(dev, apdev):
hapd2.request("DISABLE")
subprocess.call(['iw', 'reg', 'set', '00'])
dev[0].flush_scan_cache()
+
+def test_ap_vht80_pwr_constraint(dev, apdev):
+ """VHT with 80 MHz channel width and local power constraint"""
+ hapd = None
+ try:
+ params = { "ssid": "vht",
+ "country_code": "FI",
+ "hw_mode": "a",
+ "channel": "36",
+ "ht_capab": "[HT40+]",
+ "ieee80211d": "1",
+ "local_pwr_constraint": "3",
+ "ieee80211n": "1",
+ "ieee80211ac": "1",
+ "vht_oper_chwidth": "1",
+ "vht_oper_centr_freq_seg0_idx": "42" }
+ hapd = hostapd.add_ap(apdev[0]['ifname'], params)
+
+ dev[0].connect("vht", key_mgmt="NONE", scan_freq="5180")
+ except Exception, e:
+ if isinstance(e, Exception) and str(e) == "AP startup failed":
+ if not vht_supported():
+ raise HwsimSkip("80 MHz channel not supported in regulatory information")
+ raise
+ finally:
+ dev[0].request("DISCONNECT")
+ if hapd:
+ hapd.request("DISABLE")
+ subprocess.call(['iw', 'reg', 'set', '00'])
+ dev[0].flush_scan_cache()