[PATCH] tests: fix radius_acct_failure_sta_data test

Andrei Otcheretianski andrei.otcheretianski at intel.com
Mon Aug 21 09:36:24 PDT 2017

The STA can get disconnected event before the AP processed the
deauthentication frame, resulting in GET_FAIL command being sent
too early. Fix this by waiting for AP-STA-DISCONNECTED on AP side too.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski at intel.com>
 tests/hwsim/test_radius.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/hwsim/test_radius.py b/tests/hwsim/test_radius.py
index 96e56a3..046579e 100644
--- a/tests/hwsim/test_radius.py
+++ b/tests/hwsim/test_radius.py
@@ -1640,3 +1640,4 @@ def test_radius_acct_failure_sta_data(dev, apdev):
         dev[0].connect("radius-acct-open", key_mgmt="NONE", scan_freq="2412")
+        hapd.wait_event(["AP-STA-DISCONNECTED"], timeout=1)

More information about the Hostap mailing list