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:
Jouni Malinen 2014-04-05 19:27:24 +03:00
parent 76d3fb1eeb
commit b2edaa4333

View file

@ -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";