[PATCH] tests: fix radius_acct_failure_sta_data test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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")
         dev[0].request("DISCONNECT")
         dev[0].wait_disconnected()
+        hapd.wait_event(["AP-STA-DISCONNECTED"], timeout=1)
-- 
2.7.4


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux