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

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2018-02-06 20:52:44 +02:00 committed by Jouni Malinen
parent 79ce2d519b
commit 2fec710ac5

View file

@ -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)