diff mbox

[6/8] tests: add the wlantest setup to a test

Message ID 1466702196-26828-6-git-send-email-jonathan@wizery.com
State Accepted
Headers show

Commit Message

Jonathan Afek June 23, 2016, 5:16 p.m. UTC
One tdls test was using wlantest without doing the setup
first. This makes the test to not work on real hardware.
This patch fixes the issue by adding the wlantest setup
to the test.

Signed-off-by: Jonathan Afek <jonathanx.afek@intel.com>
---
 tests/hwsim/test_ap_tdls.py | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/tests/hwsim/test_ap_tdls.py b/tests/hwsim/test_ap_tdls.py
index 44c7b48..c1ade5f 100644
--- a/tests/hwsim/test_ap_tdls.py
+++ b/tests/hwsim/test_ap_tdls.py
@@ -529,6 +529,7 @@  def test_tdls_chan_switch(dev, apdev):
         raise HwsimSkip("Driver does not support TDLS channel switching")
 
     hapd = hostapd.add_ap(apdev[0], { "ssid": "test-open" })
+    wlantest_setup(hapd)
     connect_2sta_open(dev, hapd)
     setup_tdls(dev[0], dev[1], hapd)
     if "OK" not in dev[0].request("TDLS_CHAN_SWITCH " + dev[1].own_addr() + " 81 2462"):