diff options
author | Jouni Malinen <j@w1.fi> | 2017-12-28 10:45:59 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2017-12-28 20:33:12 (GMT) |
commit | de5ca36e37ded04b1c46b72fae936a5b163c9ef8 (patch) | |
tree | 7525ef3482136ae72136b238874f2fc06c241f0c | |
parent | 622d4d49e29a8b67399d81d9073759fa2f578c5e (diff) | |
download | hostap-de5ca36e37ded04b1c46b72fae936a5b163c9ef8.zip hostap-de5ca36e37ded04b1c46b72fae936a5b163c9ef8.tar.gz hostap-de5ca36e37ded04b1c46b72fae936a5b163c9ef8.tar.bz2 |
tests: Fix gas_anqp_overrides with non-FILS builds
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>
-rw-r--r-- | tests/hwsim/test_gas.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/hwsim/test_gas.py b/tests/hwsim/test_gas.py index db0ca6a..99673c9 100644 --- a/tests/hwsim/test_gas.py +++ b/tests/hwsim/test_gas.py @@ -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") |