]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix TDLS counter validation
authorJouni Malinen <j@w1.fi>
Wed, 27 Mar 2013 11:32:36 +0000 (13:32 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 27 Mar 2013 11:32:36 +0000 (13:32 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>

tests/hwsim/test_p2p_autogo.py

index 616d7c3c29a6d5d1e46c879ac2a009f7646f7179..e02beac85700939fa75f218db20865723a7161c9 100644 (file)
@@ -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])