aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Kourt <tim.a.kourt@linux.intel.com>2020-06-09 18:22:20 -0700
committerDenis Kenzior <denkenz@gmail.com>2020-06-09 21:58:52 -0500
commit7ef78942185dd27aa7e646eeda72086bd06097b9 (patch)
tree8902afa1005a674db1671780d42a132a60d837bc
parent61ee99f63297f4b3bcaebd0436f79d187e4e8d2e (diff)
downloadiwd-7ef78942185dd27aa7e646eeda72086bd06097b9.tar.gz
auto-t: Add async API call for connect_hidden_network
-rwxr-xr-xautotests/util/iwd.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/autotests/util/iwd.py b/autotests/util/iwd.py
index b9eeb0ff4..ef1ea80e7 100755
--- a/autotests/util/iwd.py
+++ b/autotests/util/iwd.py
@@ -482,6 +482,21 @@ class Device(IWDDBusAbstract):
error_handler=self._failure)
self._wait_for_async_op()
+ def connect_hidden_network_async(self, name, reply_handler, error_handler):
+ '''Connect to a hidden network
+ Possible exception: BusyEx
+ FailedEx
+ InvalidArgumentsEx
+ NotConfiguredEx
+ NotConnectedEx
+ NotFoundEx
+ ServiceSetOverlapEx
+ '''
+ self._iface.ConnectHiddenNetwork(name,
+ dbus_interface=IWD_STATION_INTERFACE,
+ reply_handler=reply_handler,
+ error_handler=error_handler)
+
def start_adhoc(self, ssid, psk=None):
self._prop_proxy.Set(IWD_DEVICE_INTERFACE, 'Mode', 'ad-hoc')
self._adhoc_iface = dbus.Interface(self._bus.get_object(IWD_SERVICE,