]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix PASN tests to check for PASN support
authorJouni Malinen <jouni@codeaurora.org>
Wed, 14 Jul 2021 09:47:02 +0000 (12:47 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 14 Jul 2021 15:18:47 +0000 (18:18 +0300)
Couple of the PASN test cases did not verify whether the wpa_supplicant
build used in the test included PASN support.

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

index c8bcd63f6ac773e643b34ed3f6681eb925a5139e..6f7a806f5c467b145eca97e72160f461ebab503f 100644 (file)
@@ -680,6 +680,8 @@ def test_pasn_ft_eap_sha384(dev, apdev):
 
 def test_pasn_sta_mic_error(dev, apdev):
     """PASN authentication with WPA2/CCMP AP with corrupted MIC on station"""
+    check_pasn_capab(dev[0])
+
     params = pasn_ap_params("PASN", "CCMP", "19")
     hapd = hostapd.add_ap(apdev[0], params)
 
@@ -697,6 +699,8 @@ def test_pasn_sta_mic_error(dev, apdev):
 
 def test_pasn_ap_mic_error(dev, apdev):
     """PASN authentication with WPA2/CCMP AP with corrupted MIC on AP"""
+    check_pasn_capab(dev[0])
+
     params = pasn_ap_params("PASN", "CCMP", "19")
     hapd0 = hostapd.add_ap(apdev[0], params)