tests: Force hw capability re-fetch at the end of dbus_connect_oom

This is needed since the forced OOM may have forced the cached
information to be invalid or dropped. This issue was hit with the
following hwsim test case sequence:
ap_interworking_scan_filtering fst_sta_config_llt_large dbus_connect_oom
wpas_ctrl_enable_disable_network

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2015-11-17 19:00:21 +02:00 committed by Jouni Malinen
parent 5e238cc682
commit 89a79ca2b9

View file

@ -1375,6 +1375,17 @@ def test_dbus_connect_oom(dev, apdev):
except:
pass
# Force regulatory update to re-fetch hw capabilities for the following
# test cases.
try:
dev[0].dump_monitor()
subprocess.call(['iw', 'reg', 'set', 'US'])
ev = dev[0].wait_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=1)
finally:
dev[0].dump_monitor()
subprocess.call(['iw', 'reg', 'set', '00'])
ev = dev[0].wait_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=1)
def test_dbus_while_not_connected(dev, apdev):
"""D-Bus invalid operations while not connected"""
(bus,wpas_obj,path,if_obj) = prepare_dbus(dev[0])