[PATCH 2/2] tests: Extend MLD SAE test to cover failed authentication

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ilan Peer <ilan.peer@xxxxxxxxx>

Signed-off-by: Ilan Peer <ilan.peer@xxxxxxxxx>
---
 tests/hwsim/test_eht.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tests/hwsim/test_eht.py b/tests/hwsim/test_eht.py
index b799fcd855..430cf9406a 100644
--- a/tests/hwsim/test_eht.py
+++ b/tests/hwsim/test_eht.py
@@ -427,12 +427,21 @@ def run_eht_mld_sae_two_links(dev, apdev, beacon_prot="1"):
         hapd1 = eht_mld_enable_ap(hapd_iface, params)
 
         wpas.set("sae_pwe", "1")
+
+        # the first authentication attempt would use group  20 and the authentication is expected
+        # to fail. The next authentication should use group 19 and succeed.
+        wpas.request("SET sae_groups 20 19")
+
         wpas.connect(ssid, sae_password=passphrase, scan_freq="2412 2437",
                      key_mgmt="SAE", ieee80211w="2", beacon_prot="1")
 
         eht_verify_status(wpas, hapd0, 2412, 20, is_ht=True, mld=True,
                           valid_links=3, active_links=3)
         eht_verify_wifi_version(wpas)
+
+        if wpas.get_status_field('sae_group') != '19':
+            raise Exception("Expected SAE group not used")
+
         traffic_test(wpas, hapd0)
         traffic_test(wpas, hapd1)
 
-- 
2.43.0


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux