tests: Fix ap_{open,wpa2_psk}_wpas_in_bridge cleanup
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>
This commit is contained in:
parent
1c9838b388
commit
f245b45075
2 changed files with 2 additions and 2 deletions
|
@ -252,7 +252,7 @@ def test_ap_open_wpas_in_bridge(dev, apdev):
|
||||||
subprocess.call(['ip', 'link', 'set', 'dev', br_ifname, 'down'])
|
subprocess.call(['ip', 'link', 'set', 'dev', br_ifname, 'down'])
|
||||||
subprocess.call(['brctl', 'delif', br_ifname, ifname])
|
subprocess.call(['brctl', 'delif', br_ifname, ifname])
|
||||||
subprocess.call(['brctl', 'delbr', br_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):
|
def _test_ap_open_wpas_in_bridge(dev, apdev):
|
||||||
hapd = hostapd.add_ap(apdev[0]['ifname'], { "ssid": "open" })
|
hapd = hostapd.add_ap(apdev[0]['ifname'], { "ssid": "open" })
|
||||||
|
|
|
@ -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(['ip', 'link', 'set', 'dev', br_ifname, 'down'])
|
||||||
subprocess.call(['brctl', 'delif', br_ifname, ifname])
|
subprocess.call(['brctl', 'delif', br_ifname, ifname])
|
||||||
subprocess.call(['brctl', 'delbr', br_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):
|
def _test_ap_wpa2_psk_wpas_in_bridge(dev, apdev):
|
||||||
ssid = "test-wpa2-psk"
|
ssid = "test-wpa2-psk"
|
||||||
|
|
Loading…
Reference in a new issue