From d014a15046cd2e936cb7d4046d17cbc39c7e11ed Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 27 Mar 2013 13:32:36 +0200 Subject: [PATCH] tests: Fix TDLS counter validation Signed-hostap: Jouni Malinen --- tests/hwsim/test_p2p_autogo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hwsim/test_p2p_autogo.py b/tests/hwsim/test_p2p_autogo.py index 616d7c3c2..e02beac85 100644 --- a/tests/hwsim/test_p2p_autogo.py +++ b/tests/hwsim/test_p2p_autogo.py @@ -91,7 +91,7 @@ def test_autogo_tdls(dev): dev[1].tdls_teardown(addr2) time.sleep(1) teardown = wlantest_tdls("teardown", bssid, addr1, addr2); - if conf == teardown: + if teardown == 0: raise Exception("No TDLS Setup Teardown seen") wlantest_tdls_clear(bssid, addr1, addr2); hwsim_utils.test_connectivity_p2p(dev[1], dev[2])