mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
tests: MBO and WPA2 without PMF
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
5026406dd5
commit
9302b87486
@ -452,3 +452,19 @@ def test_mbo_wnm_bss_tm_ie_parsing(dev, apdev):
|
|||||||
raise Exception("MGMT_RX_PROCESS failed")
|
raise Exception("MGMT_RX_PROCESS failed")
|
||||||
|
|
||||||
dev[0].request("SET ext_mgmt_frame_handling 0")
|
dev[0].request("SET ext_mgmt_frame_handling 0")
|
||||||
|
|
||||||
|
def test_mbo_without_pmf(dev, apdev):
|
||||||
|
"""MBO and WPA2 without PMF"""
|
||||||
|
ssid = "test-wnm-mbo"
|
||||||
|
params = { 'ssid': ssid, 'mbo': '1', "wpa": '2',
|
||||||
|
"wpa_key_mgmt": "WPA-PSK", "rsn_pairwise": "CCMP",
|
||||||
|
"wpa_passphrase": "12345678" }
|
||||||
|
try:
|
||||||
|
# "MBO: PMF needs to be enabled whenever using WPA2 with MBO"
|
||||||
|
hostapd.add_ap(apdev[0], params)
|
||||||
|
raise Exception("AP setup succeeded unexpectedly")
|
||||||
|
except Exception, e:
|
||||||
|
if "Failed to enable hostapd" in str(e):
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
raise
|
||||||
|
Loading…
Reference in New Issue
Block a user