diff mbox

tests: fix radius_acct_failure_sta_data test

Message ID 1503333385-15051-4-git-send-email-andrei.otcheretianski@intel.com
State Accepted
Headers show

Commit Message

Andrei Otcheretianski Aug. 21, 2017, 4:36 p.m. UTC
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 | 1 +
 1 file changed, 1 insertion(+)

Comments

Jouni Malinen Sept. 10, 2017, 7:51 p.m. UTC | #1
On Mon, Aug 21, 2017 at 07:36:24PM +0300, Andrei Otcheretianski wrote:
> 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.

Thanks, applied.
diff mbox

Patch

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)