aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-12-08 11:08:04 (GMT)
committerJouni Malinen <j@w1.fi>2018-12-08 12:06:58 (GMT)
commitc8f7a83c656f33e579d656075d1e8b144432d0fb (patch)
tree8d6e81e0255595cbe3cc6f8bbc2830a3af954a80 /tests
parent647c0ed6799beda85c6192a6057db92dec32f69f (diff)
downloadhostap-c8f7a83c656f33e579d656075d1e8b144432d0fb.zip
hostap-c8f7a83c656f33e579d656075d1e8b144432d0fb.tar.gz
hostap-c8f7a83c656f33e579d656075d1e8b144432d0fb.tar.bz2
tests: Fix ap_hs20_deauth_req_without_pmf
Now that hostapd starts mandating PMF for Hotspot 2.0 Release 2 association, this test case needs some more tweaks to work. Hardcode Hotspot 2.0 Release 1 to be used and disable PMF explicitly. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_ap_hs20.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py
index 6ec7952..6fb2ef5 100644
--- a/tests/hwsim/test_ap_hs20.py
+++ b/tests/hwsim/test_ap_hs20.py
@@ -2517,8 +2517,14 @@ def test_ap_hs20_deauth_req_without_pmf(dev, apdev):
"""Hotspot 2.0 connection and deauthentication request without PMF"""
check_eap_capa(dev[0], "MSCHAPV2")
dev[0].request("SET pmf 0")
- eap_test(dev[0], apdev[0], "21[3:26]", "TTLS", "user")
+ eap_test(dev[0], apdev[0], "21[3:26]", "TTLS", "user", release=1)
dev[0].dump_monitor()
+ id = int(dev[0].get_status_field("id"))
+ dev[0].set_network(id, "ieee80211w", "0")
+ dev[0].request("DISCONNECT")
+ dev[0].wait_disconnected()
+ dev[0].select_network(id, freq=2412)
+ dev[0].wait_connected()
addr = dev[0].own_addr()
hapd = hostapd.Hostapd(apdev[0]['ifname'])
hapd.request("HS20_DEAUTH_REQ " + addr + " 1 120 http://example.com/")