]> git.ipfire.org Git - thirdparty/hostap.git/commit - tests/hwsim/test_ap_ft.py
tests: Add a small sleep in FT run_roams()
authorMichael Braun <michael-dev@fami-braun.de>
Thu, 18 May 2017 13:21:52 +0000 (15:21 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 6 Apr 2018 16:01:16 +0000 (19:01 +0300)
commite03822913dff653989ee67adccfa4b81d35f7fc2
tree7a007595408fae7bf7b596af24b25adc5c371591
parent9c50a6d3a36265916c2832b87541dac0a70b13eb
tests: Add a small sleep in FT run_roams()

time.sleep() in run_roams() is required because the target AP sets the
key once the station was associated. There are races, when the station
processes the (Re)Association Response frame AND the test suite starts
FT_DS before the AP processes its local confirmation and thus
wpa_auth_sm_event(ASSOC_FT). Therefore, the ActionFrame will be lost, as
the AP driver is missing the key.

Since this is this speed is highly synthetic, wait a few milliseconds
before roaming back.

Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
tests/hwsim/test_ap_ft.py