aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-09-20 21:34:51 (GMT)
committerJouni Malinen <j@w1.fi>2019-09-21 09:56:19 (GMT)
commitd0d303ae91b0acefe3d09f2395ca3c1a062333ea (patch)
tree087c404cac30a8b6da00a436b9e4c2997fc9ca82
parent2e06cef80a228b30dd55e64bdd8c92ebf4050ffb (diff)
downloadhostap-d0d303ae91b0acefe3d09f2395ca3c1a062333ea.zip
hostap-d0d303ae91b0acefe3d09f2395ca3c1a062333ea.tar.gz
hostap-d0d303ae91b0acefe3d09f2395ca3c1a062333ea.tar.bz2
tests: MBO and WPA2 without PMF on misbehaving AP
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
-rw-r--r--tests/hwsim/test_mbo.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/hwsim/test_mbo.py b/tests/hwsim/test_mbo.py
index 5a71cfb..65d446b 100644
--- a/tests/hwsim/test_mbo.py
+++ b/tests/hwsim/test_mbo.py
@@ -540,6 +540,22 @@ def test_mbo_without_pmf(dev, apdev):
else:
raise
+def test_mbo_without_pmf_workaround(dev, apdev):
+ """MBO and WPA2 without PMF on misbehaving AP"""
+ ssid = "test-wnm-mbo"
+ params = {'ssid': ssid, "wpa": '2',
+ "wpa_key_mgmt": "WPA-PSK", "rsn_pairwise": "CCMP",
+ "wpa_passphrase": "12345678",
+ "vendor_elements": "dd07506f9a16010100"}
+ hapd = hostapd.add_ap(apdev[0], params)
+ dev[0].connect(ssid, psk="12345678", key_mgmt="WPA-PSK",
+ proto="WPA2", ieee80211w="1", scan_freq="2412")
+ hapd.wait_sta()
+ sta = hapd.get_sta(dev[0].own_addr())
+ ext_capab = bytearray(binascii.unhexlify(sta['ext_capab']))
+ if ext_capab[2] & 0x08:
+ raise Exception("STA did not disable BSS Transition capability")
+
def check_mbo_anqp(dev, bssid, cell_data_conn_pref):
if "OK" not in dev.request("ANQP_GET " + bssid + " 272,mbo:2"):
raise Exception("ANQP_GET command failed")