]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix ap_{open,wpa2_psk}_wpas_in_bridge cleanup
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 11 Feb 2015 13:07:05 +0000 (15:07 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 11 Feb 2015 14:50:06 +0000 (16:50 +0200)
Due to a copy-paste error, these test cases left 4addr mode enabled on
wlan5. This resulted in number of connect_cmd_* test cases failing if
executed after the wpas_in_bridge tests.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_ap_open.py
tests/hwsim/test_ap_psk.py

index ae400577afbdff4bd117b054afe7b78b4c9703a1..bc328fb9a7e4f40e6fd33820446bf69a5f56dfcf 100644 (file)
@@ -252,7 +252,7 @@ def test_ap_open_wpas_in_bridge(dev, apdev):
         subprocess.call(['ip', 'link', 'set', 'dev', br_ifname, 'down'])
         subprocess.call(['brctl', 'delif', br_ifname, ifname])
         subprocess.call(['brctl', 'delbr', br_ifname])
-        subprocess.call(['iw', ifname, 'set', '4addr', 'on'])
+        subprocess.call(['iw', ifname, 'set', '4addr', 'off'])
 
 def _test_ap_open_wpas_in_bridge(dev, apdev):
     hapd = hostapd.add_ap(apdev[0]['ifname'], { "ssid": "open" })
index 19aa42703ac6f4b6581ac1166102a5e2b8454dde..14d8aff10bddd2f934b0ba0cca8d4260a9a70a5b 100644 (file)
@@ -999,7 +999,7 @@ def test_ap_wpa2_psk_wpas_in_bridge(dev, apdev):
         subprocess.call(['ip', 'link', 'set', 'dev', br_ifname, 'down'])
         subprocess.call(['brctl', 'delif', br_ifname, ifname])
         subprocess.call(['brctl', 'delbr', br_ifname])
-        subprocess.call(['iw', ifname, 'set', '4addr', 'on'])
+        subprocess.call(['iw', ifname, 'set', '4addr', 'off'])
 
 def _test_ap_wpa2_psk_wpas_in_bridge(dev, apdev):
     ssid = "test-wpa2-psk"