Browse Source

tests: Add the forgotten wlantest_setup() call to a TDLS test

One TDLS test case was using wlantest without doing the setup first.
This makes the test not work on real hardware. Fix the issue by adding
the wlantest setup to the test.

Signed-off-by: Jonathan Afek <jonathanx.afek@intel.com>
Jonathan Afek 8 years ago
parent
commit
cbd4e92ba1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/hwsim/test_ap_tdls.py

+ 1 - 0
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")
         raise HwsimSkip("Driver does not support TDLS channel switching")
 
 
     hapd = hostapd.add_ap(apdev[0], { "ssid": "test-open" })
     hapd = hostapd.add_ap(apdev[0], { "ssid": "test-open" })
+    wlantest_setup(hapd)
     connect_2sta_open(dev, hapd)
     connect_2sta_open(dev, hapd)
     setup_tdls(dev[0], dev[1], hapd)
     setup_tdls(dev[0], dev[1], hapd)
     if "OK" not in dev[0].request("TDLS_CHAN_SWITCH " + dev[1].own_addr() + " 81 2462"):
     if "OK" not in dev[0].request("TDLS_CHAN_SWITCH " + dev[1].own_addr() + " 81 2462"):