]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Verify that HE gets fully enabled for mesh
authorJouni Malinen <jouni@codeaurora.org>
Mon, 2 Mar 2020 17:56:27 +0000 (19:56 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 2 Mar 2020 17:56:27 +0000 (19:56 +0200)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_wpas_mesh.py

index 85dd384e296705c95b82f95fd14d2d948c3c72cc..ed38ac1299da7a5ac43a76d274e9c441d86b9326 100644 (file)
@@ -219,6 +219,16 @@ def test_wpas_mesh_open(dev, apdev):
     if mode != "mesh":
         raise Exception("Unexpected mode: " + mode)
 
+    dev[0].scan(freq="2462")
+    bss = dev[0].get_bss(dev[1].own_addr())
+    if bss and 'ie' in bss and "ff0724" in bss['ie']:
+        sta = dev[0].request("STA " + dev[1].own_addr())
+        logger.info("STA info:\n" + sta.rstrip())
+        if "[HE]" not in sta:
+            raise Exception("Missing STA HE flag")
+        if "[VHT]" in sta:
+            raise Exception("Unexpected STA VHT flag")
+
 def test_wpas_mesh_open_no_auto(dev, apdev):
     """wpa_supplicant open MESH network connectivity"""
     check_mesh_support(dev[0])
@@ -1059,6 +1069,14 @@ def _test_wpas_mesh_open_vht40(dev, apdev):
     if "CENTER_FRQ1=5190" not in sig:
         raise Exception("Unexpected SIGNAL_POLL value(3b): " + str(sig))
 
+    dev[0].scan(freq="5180")
+    bss = dev[0].get_bss(dev[1].own_addr())
+    if bss and 'ie' in bss and "ff0724" in bss['ie']:
+        sta = dev[0].request("STA " + dev[1].own_addr())
+        logger.info("STA info:\n" + sta.rstrip())
+        if "[HT][VHT][HE]" not in sta:
+            raise Exception("Missing STA flags")
+
     dev[0].mesh_group_remove()
     dev[1].mesh_group_remove()
     check_mesh_group_removed(dev[0])