mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-29 02:38:22 -05:00
tests: Add wlantest passphrase info for WNM Sleep Mode with PMF
This makes the sniffer capture more convenient with the Action frames decrypted. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
76d3fb1eeb
commit
b2edaa4333
@ -9,6 +9,7 @@ import logging
|
|||||||
logger = logging.getLogger()
|
logger = logging.getLogger()
|
||||||
|
|
||||||
import hostapd
|
import hostapd
|
||||||
|
from wlantest import Wlantest
|
||||||
|
|
||||||
def test_wnm_bss_transition_mgmt(dev, apdev):
|
def test_wnm_bss_transition_mgmt(dev, apdev):
|
||||||
"""WNM BSS Transition Management"""
|
"""WNM BSS Transition Management"""
|
||||||
@ -134,6 +135,9 @@ def test_wnm_sleep_mode_rsn(dev, apdev):
|
|||||||
|
|
||||||
def test_wnm_sleep_mode_rsn_pmf(dev, apdev):
|
def test_wnm_sleep_mode_rsn_pmf(dev, apdev):
|
||||||
"""WNM Sleep Mode - RSN with PMF"""
|
"""WNM Sleep Mode - RSN with PMF"""
|
||||||
|
wt = Wlantest()
|
||||||
|
wt.flush()
|
||||||
|
wt.add_passphrase("12345678")
|
||||||
params = hostapd.wpa2_params("test-wnm-rsn", "12345678")
|
params = hostapd.wpa2_params("test-wnm-rsn", "12345678")
|
||||||
params["wpa_key_mgmt"] = "WPA-PSK-SHA256";
|
params["wpa_key_mgmt"] = "WPA-PSK-SHA256";
|
||||||
params["ieee80211w"] = "2";
|
params["ieee80211w"] = "2";
|
||||||
|
Loading…
Reference in New Issue
Block a user