You can leave this patch out actually. Andrew pointed out that any DBus
method call is synchronous if the reply handlers are left out. But
patch 2/2 is still needed.
On Fri, 2020-10-23 at 15:18 -0700, James Prestwood wrote:
---
autotests/util/iwd.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/autotests/util/iwd.py b/autotests/util/iwd.py
index 9bfc8c1a..c65dd4a2 100755
--- a/autotests/util/iwd.py
+++ b/autotests/util/iwd.py
@@ -481,7 +481,10 @@ class Device(IWDDBusAbstract):
self._wait_for_async_op()
def stop_ap(self):
- self._prop_proxy.Set(IWD_DEVICE_INTERFACE, 'Mode',
'station')
+ self._prop_proxy.Set(IWD_DEVICE_INTERFACE, 'Mode',
'station',
+ reply_handler=self._success,
+ error_handler=self._failure)
+ self._wait_for_async_op()
def connect_hidden_network(self, name):
'''Connect to a hidden network