tests: Force concurrent exchange in ap_wps_er_multi_add_enrollee
This makes it more likely for the two ERs to go through WPS UPnP exchange in parallel. This was already happening every now and then and resulted in failures. However, now that there is support for multiple concurrent exchanges, it is useful to have this test case hit that possibility more frequently. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
0e559dc5ad
commit
6a5f578cac
1 changed files with 3 additions and 0 deletions
|
@ -1216,13 +1216,16 @@ def _test_ap_wps_er_multi_add_enrollee(dev, apdev):
|
||||||
for i in range(2):
|
for i in range(2):
|
||||||
dev[i].scan_for_bss(apdev[0]['bssid'], freq=2412)
|
dev[i].scan_for_bss(apdev[0]['bssid'], freq=2412)
|
||||||
dev[i].wps_reg(apdev[0]['bssid'], ap_pin)
|
dev[i].wps_reg(apdev[0]['bssid'], ap_pin)
|
||||||
|
for i in range(2):
|
||||||
dev[i].request("WPS_ER_START ifname=lo")
|
dev[i].request("WPS_ER_START ifname=lo")
|
||||||
for i in range(2):
|
for i in range(2):
|
||||||
ev = dev[i].wait_event(["WPS-ER-AP-ADD"], timeout=15)
|
ev = dev[i].wait_event(["WPS-ER-AP-ADD"], timeout=15)
|
||||||
if ev is None:
|
if ev is None:
|
||||||
raise Exception("AP discovery timed out")
|
raise Exception("AP discovery timed out")
|
||||||
dev[i].dump_monitor()
|
dev[i].dump_monitor()
|
||||||
|
for i in range(2):
|
||||||
dev[i].request("WPS_ER_LEARN " + ap_uuid + " " + ap_pin)
|
dev[i].request("WPS_ER_LEARN " + ap_uuid + " " + ap_pin)
|
||||||
|
for i in range(2):
|
||||||
ev = dev[i].wait_event(["WPS-ER-AP-SETTINGS"], timeout=15)
|
ev = dev[i].wait_event(["WPS-ER-AP-SETTINGS"], timeout=15)
|
||||||
if ev is None:
|
if ev is None:
|
||||||
raise Exception("AP learn timed out")
|
raise Exception("AP learn timed out")
|
||||||
|
|
Loading…
Reference in a new issue