Parcourir la source

tests: Use PMF in DPP with legacy PSK/SAE cases

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Jouni Malinen il y a 7 ans
Parent
commit
2fec710ac5
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      tests/hwsim/test_dpp.py

+ 3 - 0
tests/hwsim/test_dpp.py

@@ -1664,8 +1664,11 @@ def run_dpp_auto_connect_legacy(dev, apdev, conf='sta-psk',
                                  passphrase="secret passphrase")
     if sae_only:
             params['wpa_key_mgmt'] = 'SAE'
+            params['ieee80211w'] = '2'
     elif psk_sae:
             params['wpa_key_mgmt'] = 'WPA-PSK SAE'
+            params['ieee80211w'] = '1'
+            params['sae_require_mfp'] = '1'
 
     hapd = hostapd.add_ap(apdev[0], params)