]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix WPS with SAE test cases to reset sae_groups setting
authorJouni Malinen <j@w1.fi>
Sun, 17 Mar 2019 21:56:23 +0000 (23:56 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 17 Mar 2019 22:02:11 +0000 (00:02 +0200)
These test cases did not clear a possibly modified sae_groups value from
a prior test case and could fail if the previously set group was not
supported by the AP.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_wps.py

index df408f1345cb022db69c337db47f9b933a8bd3e6..e0791a0cae0265ad7822b06213213187f013eea7 100644 (file)
@@ -10088,6 +10088,7 @@ def run_ap_wps_and_sae(dev, apdev):
     hapd.request("WPS_PIN any " + pin)
 
     dev[0].set("wps_cred_add_sae", "1")
+    dev[0].request("SET sae_groups ")
     dev[0].scan_for_bss(apdev[0]['bssid'], freq="2412", force_scan=True)
     dev[0].request("WPS_PIN " + apdev[0]['bssid'] + " " + pin)
     dev[0].wait_connected(timeout=30)
@@ -10125,6 +10126,7 @@ def run_ap_wps_conf_and_sae(dev, apdev):
                            "rsn_pairwise": "CCMP"})
 
     dev[0].set("wps_cred_add_sae", "1")
+    dev[0].request("SET sae_groups ")
     dev[0].scan_for_bss(apdev[0]['bssid'], freq="2412")
     pin = dev[0].wps_read_pin()
     hapd.request("WPS_PIN any " + pin)
@@ -10154,6 +10156,7 @@ def run_ap_wps_reg_config_and_sae(dev, apdev):
                     "ap_pin": appin, "wps_cred_add_sae": "1"})
     logger.info("WPS configuration step")
     dev[0].set("wps_cred_add_sae", "1")
+    dev[0].request("SET sae_groups ")
     dev[0].scan_for_bss(apdev[0]['bssid'], freq=2412)
     dev[0].dump_monitor()
     new_ssid = "wps-new-ssid"