Browse Source

tests: Fix TDLS counter validation

Signed-hostap: Jouni Malinen <j@w1.fi>
Jouni Malinen 12 years ago
parent
commit
d014a15046
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/hwsim/test_p2p_autogo.py

+ 1 - 1
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])