From: Jouni Malinen Date: Fri, 6 Mar 2015 21:22:53 +0000 (+0200) Subject: tests: Make ap_remove_during_acs* more robust X-Git-Tag: hostap_2_4~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e979d9de6bf928ae86515ac09767744bfe2fcfa;p=thirdparty%2Fhostap.git tests: Make ap_remove_during_acs* more robust These test cases need to use the previous-AP-on-correct-band workaround similarly to test_ap_acs.py test cases for now to work with mac80211_hwsim limitations on channel survey. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_dynamic.py b/tests/hwsim/test_ap_dynamic.py index bc432ec8d..e8836ca23 100644 --- a/tests/hwsim/test_ap_dynamic.py +++ b/tests/hwsim/test_ap_dynamic.py @@ -13,6 +13,7 @@ import os import hwsim_utils import hostapd from utils import alloc_fail +from test_ap_acs import force_prev_ap_on_24g def test_ap_change_ssid(dev, apdev): """Dynamic SSID change with hostapd and WPA2-PSK""" @@ -233,6 +234,7 @@ def test_ap_invalid_config2(dev, apdev): def test_ap_remove_during_acs(dev, apdev): """Remove interface during ACS""" + force_prev_ap_on_24g(apdev[0]) params = hostapd.wpa2_params(ssid="test-acs-remove", passphrase="12345678") params['channel'] = '0' ifname = apdev[0]['ifname'] @@ -242,6 +244,7 @@ def test_ap_remove_during_acs(dev, apdev): def test_ap_remove_during_acs2(dev, apdev): """Remove BSS during ACS in multi-BSS configuration""" + force_prev_ap_on_24g(apdev[0]) ifname = apdev[0]['ifname'] ifname2 = ifname + "-2" hapd_global = hostapd.HostapdGlobal() @@ -257,6 +260,7 @@ def test_ap_remove_during_acs2(dev, apdev): def test_ap_remove_during_acs3(dev, apdev): """Remove second BSS during ACS in multi-BSS configuration""" + force_prev_ap_on_24g(apdev[0]) ifname = apdev[0]['ifname'] ifname2 = ifname + "-2" hapd_global = hostapd.HostapdGlobal()