]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Configure wlantest for FT+PMF test cases
authorJouni Malinen <jouni@codeaurora.org>
Thu, 22 Aug 2019 19:13:02 +0000 (22:13 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 22 Aug 2019 19:13:02 +0000 (22:13 +0300)
It is useful to get the encrypted frames decrypted in the sniffer
capture for these test cases.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_ap_ft.py

index 3071840187a9c8b61887bf007a7e776ae6a85335..49741f4e3c4676c442f2bede1f1efa9eb1af8790 100644 (file)
@@ -460,6 +460,11 @@ def run_ap_ft_pmf(dev, apdev, ieee80211w, over_ds=False):
     params["ieee80211w"] = "2"
     hapd1 = hostapd.add_ap(apdev[1], params)
 
+    Wlantest.setup(hapd0)
+    wt = Wlantest()
+    wt.flush()
+    wt.add_passphrase(passphrase)
+
     run_roams(dev[0], apdev, hapd0, hapd1, ssid, passphrase,
               ieee80211w=ieee80211w, over_ds=over_ds)