aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>2016-04-07 05:38:05 (GMT)
committerJouni Malinen <j@w1.fi>2016-04-24 16:24:49 (GMT)
commit84f3f3a5e6659319a134ef0a7ca18f4faf23f803 (patch)
tree0259fe5fe382d635a38e66754a3e3d2808fcb5dd /tests
parenta3d35254426bbddc78413455698e6133c859b297 (diff)
downloadhostap-84f3f3a5e6659319a134ef0a7ca18f4faf23f803.zip
hostap-84f3f3a5e6659319a134ef0a7ca18f4faf23f803.tar.gz
hostap-84f3f3a5e6659319a134ef0a7ca18f4faf23f803.tar.bz2
tests: Use hostapd.add_ap() instead of HostapdGlobal() (PSK)
This makes ap_cli_order more usable for testing with remote hosts. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_ap_psk.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/hwsim/test_ap_psk.py b/tests/hwsim/test_ap_psk.py
index d5c22af..ac63837 100644
--- a/tests/hwsim/test_ap_psk.py
+++ b/tests/hwsim/test_ap_psk.py
@@ -2125,14 +2125,8 @@ def test_rsn_ie_proto_psk_sta(dev, apdev):
def test_ap_cli_order(dev, apdev):
ssid = "test-rsn-setup"
passphrase = 'zzzzzzzz'
- ifname = apdev[0]['ifname']
-
- hapd_global = hostapd.HostapdGlobal()
- hapd_global.remove(ifname)
- hapd_global.add(ifname)
- hapd = hostapd.Hostapd(ifname)
- hapd.set_defaults()
+ hapd = hostapd.add_ap(apdev[0], {}, no_enable=True)
hapd.set('ssid', ssid)
hapd.set('wpa_passphrase', passphrase)
hapd.set('rsn_pairwise', 'CCMP')