From b2edaa43338634647c3c0faafa10f57c04e7a8f7 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 5 Apr 2014 19:27:24 +0300 Subject: [PATCH] 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 --- tests/hwsim/test_wnm.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/hwsim/test_wnm.py b/tests/hwsim/test_wnm.py index 4820885c0..1a4140cb6 100644 --- a/tests/hwsim/test_wnm.py +++ b/tests/hwsim/test_wnm.py @@ -9,6 +9,7 @@ import logging logger = logging.getLogger() import hostapd +from wlantest import Wlantest def test_wnm_bss_transition_mgmt(dev, apdev): """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): """WNM Sleep Mode - RSN with PMF""" + wt = Wlantest() + wt.flush() + wt.add_passphrase("12345678") params = hostapd.wpa2_params("test-wnm-rsn", "12345678") params["wpa_key_mgmt"] = "WPA-PSK-SHA256"; params["ieee80211w"] = "2";