aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>2017-08-21 16:36:24 (GMT)
committerJouni Malinen <j@w1.fi>2017-09-10 19:05:33 (GMT)
commitae503866b9a58905e5464533bc015640bf8a9fa7 (patch)
treececd4d5dc27c566d8d095c71cf6558a64d15a89f /tests
parent8031003fec52684375e1fa77020e58a196abc28a (diff)
downloadhostap-ae503866b9a58905e5464533bc015640bf8a9fa7.zip
hostap-ae503866b9a58905e5464533bc015640bf8a9fa7.tar.gz
hostap-ae503866b9a58905e5464533bc015640bf8a9fa7.tar.bz2
tests: Fix radius_acct_failure_sta_data test
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_radius.py1
1 files changed, 1 insertions, 0 deletions
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")
dev[0].request("DISCONNECT")
dev[0].wait_disconnected()
+ hapd.wait_event(["AP-STA-DISCONNECTED"], timeout=1)