From e4612f8443b9cbe21fc098e5d898257c57cd74b6 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 26 Mar 2017 12:28:40 +0300 Subject: [PATCH] tests: WPA2-PSK-FT AP with non-FT AKMs enabled Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_ft.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tests/hwsim/test_ap_ft.py b/tests/hwsim/test_ap_ft.py index 298fd8228..bcd06f0f6 100644 --- a/tests/hwsim/test_ap_ft.py +++ b/tests/hwsim/test_ap_ft.py @@ -173,6 +173,30 @@ def test_ap_ft(dev, apdev): if "[WPA2-FT/PSK-CCMP]" not in dev[0].request("SCAN_RESULTS"): raise Exception("Scan results missing RSN element info") +def test_ap_ft_multi_akm(dev, apdev): + """WPA2-PSK-FT AP with non-FT AKMs enabled""" + ssid = "test-ft" + passphrase="12345678" + + params = ft_params1(ssid=ssid, passphrase=passphrase) + params["wpa_key_mgmt"] = "FT-PSK WPA-PSK WPA-PSK-SHA256" + hapd0 = hostapd.add_ap(apdev[0], params) + params = ft_params2(ssid=ssid, passphrase=passphrase) + params["wpa_key_mgmt"] = "FT-PSK WPA-PSK WPA-PSK-SHA256" + hapd1 = hostapd.add_ap(apdev[1], params) + + Wlantest.setup(hapd0) + wt = Wlantest() + wt.flush() + wt.add_passphrase(passphrase) + + run_roams(dev[0], apdev, hapd0, hapd1, ssid, passphrase) + if "[WPA2-PSK+FT/PSK+PSK-SHA256-CCMP]" not in dev[0].request("SCAN_RESULTS"): + raise Exception("Scan results missing RSN element info") + dev[1].connect(ssid, psk=passphrase, scan_freq="2412") + dev[2].connect(ssid, psk=passphrase, key_mgmt="WPA-PSK-SHA256", + scan_freq="2412") + def test_ap_ft_local_key_gen(dev, apdev): """WPA2-PSK-FT AP with local key generation (without pull/push)""" ssid = "test-ft"