tests: Set bridge ageing in ap_wpa2_bridge_fdb test
[mech_eap.git] / tests / hwsim / test_ap_psk.py
index ede071e..cdf67b9 100644 (file)
@@ -357,6 +357,7 @@ def test_ap_wpa2_bridge_fdb(dev, apdev):
         cmd = subprocess.Popen(['brctl', 'showmacs', 'ap-br0'],
                                stdout=subprocess.PIPE)
         macs1 = cmd.stdout.read()
+        cmd = subprocess.call(['brctl', 'setageing', 'ap-br0', '1'])
         dev[0].request("DISCONNECT")
         dev[1].request("DISCONNECT")
         time.sleep(1)
@@ -2029,6 +2030,7 @@ def test_ap_wpa_ie_parsing(dev, apdev):
             if ev is None:
                 raise Exception("Association rejection not reported")
             dev[0].request("DISCONNECT")
+            dev[0].dump_monitor()
         finally:
             dev[0].request("VENDOR_ELEM_REMOVE 13 *")
 
@@ -2042,6 +2044,7 @@ def test_ap_wpa_ie_parsing(dev, apdev):
             dev[0].select_network(id)
             dev[0].wait_connected()
             dev[0].request("DISCONNECT")
+            dev[0].dump_monitor()
         finally:
             dev[0].request("VENDOR_ELEM_REMOVE 13 *")