diff options
author | Tim Kourt <tim.a.kourt@linux.intel.com> | 2020-06-09 18:22:20 -0700 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2020-06-09 21:58:52 -0500 |
commit | 7ef78942185dd27aa7e646eeda72086bd06097b9 (patch) | |
tree | 8902afa1005a674db1671780d42a132a60d837bc | |
parent | 61ee99f63297f4b3bcaebd0436f79d187e4e8d2e (diff) | |
download | iwd-7ef78942185dd27aa7e646eeda72086bd06097b9.tar.gz |
auto-t: Add async API call for connect_hidden_network
-rwxr-xr-x | autotests/util/iwd.py | 15 |
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, |