]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix radius_acct_failure_sta_data test
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Mon, 21 Aug 2017 16:36:24 +0000 (19:36 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 10 Sep 2017 19:05:33 +0000 (22:05 +0300)
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@intel.com>
tests/hwsim/test_radius.py

index 96e56a3e6522772be876987a66416c2b3e872c3a..046579e4db6c040d75f6ff145586cb92ec22ffa5 100644 (file)
@@ -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")
         dev[0].request("DISCONNECT")
         dev[0].wait_disconnected()
+        hapd.wait_event(["AP-STA-DISCONNECTED"], timeout=1)