tests: Allow multiple Enrollee events in ap_wps_er_add_enrollee_pbc
authorJouni Malinen <j@w1.fi>
Sun, 5 Jan 2014 14:49:31 +0000 (16:49 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 7 Jan 2014 08:45:11 +0000 (10:45 +0200)
commit8674c02244eb27a4df200aa2063488ac207f4595
tree50ed10949d4cd90a0a2544119a81d963836867a3
parentd4b21766e592ed3deafa67c446522419542108ca
tests: Allow multiple Enrollee events in ap_wps_er_add_enrollee_pbc

It was possible for the AP to report two enrollees in this test case
(i.e., both the expected wlan1 device and also the ER device on wlan0).
The previous test script would fail if the wlan0 device is reported
first. Fix this by allowed the expected target to be found in either the
first or the second WPS-ER-ENROLLEE-ADD event.

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