]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Verify SIGNAL_POLL values in ap_vht80
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 17 Dec 2015 10:54:50 +0000 (12:54 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 17 Dec 2015 19:20:02 +0000 (21:20 +0200)
This confirms that the station recognized and negotiated 80 MHz
channel use with VHT.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_ap_vht.py

index 81173edcc32e67c7b19da566132e3d4049e0a9a5..38ecd4ee95d11b587ebfc12ef29461fe979d6851 100644 (file)
@@ -42,6 +42,11 @@ def test_ap_vht80(dev, apdev):
 
         dev[0].connect("vht", key_mgmt="NONE", scan_freq="5180")
         hwsim_utils.test_connectivity(dev[0], hapd)
+        sig = dev[0].request("SIGNAL_POLL").splitlines()
+        if "FREQUENCY=5180" not in sig:
+            raise Exception("Unexpected SIGNAL_POLL value(1): " + str(sig))
+        if "WIDTH=80 MHz" not in sig:
+            raise Exception("Unexpected SIGNAL_POLL value(2): " + str(sig))
         est = dev[0].get_bss(bssid)['est_throughput']
         if est != "390001":
             raise Exception("Unexpected BSS est_throughput: " + est)