]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix gas_anqp_overrides with non-FILS builds
authorJouni Malinen <j@w1.fi>
Thu, 28 Dec 2017 10:45:59 +0000 (12:45 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 28 Dec 2017 20:33:12 +0000 (22:33 +0200)
Need to ignore missing RX-ANQP event for the FILS Realm Info if
wpa_supplicant build does not include FILS support.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_gas.py

index db0ca6a9657866de38228e5ae0c36b3f16e4644e..99673c9246388a6e32ed97021fb247513a3d9749 100644 (file)
@@ -1770,7 +1770,12 @@ def test_gas_anqp_overrides(dev, apdev):
     ev = dev[0].wait_event(["GAS-QUERY-DONE"], timeout=10)
     if ev is None:
         raise Exception("GAS query timed out")
-    for i in range(9):
+    elems = 9
+    capa = dev[0].get_capability("fils")
+    if capa is None or "FILS" not in capa:
+        # FILS Realm Info not supported in the build
+        elems -= 1
+    for i in range(elems):
         ev = dev[0].wait_event(["RX-ANQP"], timeout=5)
         if ev is None:
             raise Exception("ANQP response not seen")