]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Add wlantest passphrase info for WNM Sleep Mode with PMF
authorJouni Malinen <j@w1.fi>
Sat, 5 Apr 2014 16:27:24 +0000 (19:27 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 5 Apr 2014 17:42:12 +0000 (20:42 +0300)
This makes the sniffer capture more convenient with the Action frames
decrypted.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_wnm.py

index 4820885c0261a75a22b0e1e25f7c5fdc969b5b6e..1a4140cb6911e2872828b65e509aa963c2a58c67 100644 (file)
@@ -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";