tests: Optimize FT test cases
Use single channel scan instead of full scan to save time. In addition, use EAP-GPSK which takes significantly less CPU that EAP-EKE with default parameters. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
c337d07a1b
commit
2f816c212c
1 changed files with 7 additions and 4 deletions
|
@ -92,14 +92,16 @@ def run_roams(dev, apdev, hapd0, hapd1, ssid, passphrase, over_ds=False, sae=Fal
|
||||||
logger.info("Connect to first AP")
|
logger.info("Connect to first AP")
|
||||||
if eap:
|
if eap:
|
||||||
dev.connect(ssid, key_mgmt="FT-EAP", proto="WPA2", ieee80211w="1",
|
dev.connect(ssid, key_mgmt="FT-EAP", proto="WPA2", ieee80211w="1",
|
||||||
eap="EKE", identity="eke user", password="hello")
|
eap="GPSK", identity="gpsk user",
|
||||||
|
password="abcdefghijklmnop0123456789abcdef",
|
||||||
|
scan_freq="2412")
|
||||||
else:
|
else:
|
||||||
if sae:
|
if sae:
|
||||||
key_mgmt="FT-SAE"
|
key_mgmt="FT-SAE"
|
||||||
else:
|
else:
|
||||||
key_mgmt="FT-PSK"
|
key_mgmt="FT-PSK"
|
||||||
dev.connect(ssid, psk=passphrase, key_mgmt=key_mgmt, proto="WPA2",
|
dev.connect(ssid, psk=passphrase, key_mgmt=key_mgmt, proto="WPA2",
|
||||||
ieee80211w="1")
|
ieee80211w="1", scan_freq="2412")
|
||||||
if dev.get_status_field('bssid') == apdev[0]['bssid']:
|
if dev.get_status_field('bssid') == apdev[0]['bssid']:
|
||||||
ap1 = apdev[0]
|
ap1 = apdev[0]
|
||||||
ap2 = apdev[1]
|
ap2 = apdev[1]
|
||||||
|
@ -383,7 +385,8 @@ def test_ap_ft_mismatching_r0kh_id_pull(dev, apdev):
|
||||||
params["pmk_r1_push"] = "0"
|
params["pmk_r1_push"] = "0"
|
||||||
params["nas_identifier"] = "nas0.w1.fi"
|
params["nas_identifier"] = "nas0.w1.fi"
|
||||||
hostapd.add_ap(apdev[0]['ifname'], params)
|
hostapd.add_ap(apdev[0]['ifname'], params)
|
||||||
dev[0].connect(ssid, psk=passphrase, key_mgmt="FT-PSK", proto="WPA2")
|
dev[0].connect(ssid, psk=passphrase, key_mgmt="FT-PSK", proto="WPA2",
|
||||||
|
scan_freq="2412")
|
||||||
|
|
||||||
params = ft_params2(ssid=ssid, passphrase=passphrase)
|
params = ft_params2(ssid=ssid, passphrase=passphrase)
|
||||||
params["pmk_r1_push"] = "0"
|
params["pmk_r1_push"] = "0"
|
||||||
|
@ -432,7 +435,7 @@ def test_ap_ft_gtk_rekey(dev, apdev):
|
||||||
hapd = hostapd.add_ap(apdev[0]['ifname'], params)
|
hapd = hostapd.add_ap(apdev[0]['ifname'], params)
|
||||||
|
|
||||||
dev[0].connect(ssid, psk=passphrase, key_mgmt="FT-PSK", proto="WPA2",
|
dev[0].connect(ssid, psk=passphrase, key_mgmt="FT-PSK", proto="WPA2",
|
||||||
ieee80211w="1")
|
ieee80211w="1", scan_freq="2412")
|
||||||
|
|
||||||
ev = dev[0].wait_event(["WPA: Group rekeying completed"], timeout=2)
|
ev = dev[0].wait_event(["WPA: Group rekeying completed"], timeout=2)
|
||||||
if ev is None:
|
if ev is None:
|
||||||
|
|
Loading…
Reference in a new issue