tests: Fix WPS with SAE test cases to reset sae_groups setting
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>
This commit is contained in:
parent
95ace8670b
commit
96ad141e6c
1 changed files with 3 additions and 0 deletions
|
@ -10088,6 +10088,7 @@ def run_ap_wps_and_sae(dev, apdev):
|
||||||
hapd.request("WPS_PIN any " + pin)
|
hapd.request("WPS_PIN any " + pin)
|
||||||
|
|
||||||
dev[0].set("wps_cred_add_sae", "1")
|
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].scan_for_bss(apdev[0]['bssid'], freq="2412", force_scan=True)
|
||||||
dev[0].request("WPS_PIN " + apdev[0]['bssid'] + " " + pin)
|
dev[0].request("WPS_PIN " + apdev[0]['bssid'] + " " + pin)
|
||||||
dev[0].wait_connected(timeout=30)
|
dev[0].wait_connected(timeout=30)
|
||||||
|
@ -10125,6 +10126,7 @@ def run_ap_wps_conf_and_sae(dev, apdev):
|
||||||
"rsn_pairwise": "CCMP"})
|
"rsn_pairwise": "CCMP"})
|
||||||
|
|
||||||
dev[0].set("wps_cred_add_sae", "1")
|
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].scan_for_bss(apdev[0]['bssid'], freq="2412")
|
||||||
pin = dev[0].wps_read_pin()
|
pin = dev[0].wps_read_pin()
|
||||||
hapd.request("WPS_PIN any " + 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"})
|
"ap_pin": appin, "wps_cred_add_sae": "1"})
|
||||||
logger.info("WPS configuration step")
|
logger.info("WPS configuration step")
|
||||||
dev[0].set("wps_cred_add_sae", "1")
|
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].scan_for_bss(apdev[0]['bssid'], freq=2412)
|
||||||
dev[0].dump_monitor()
|
dev[0].dump_monitor()
|
||||||
new_ssid = "wps-new-ssid"
|
new_ssid = "wps-new-ssid"
|
||||||
|
|
Loading…
Reference in a new issue