3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-06 11:28:38 +02:00

auto-t: wpas.py: add disconnect()

This commit is contained in:
James Prestwood 2022-01-12 10:08:44 -08:00 committed by Denis Kenzior
parent 627e54eb20
commit c5fb68bb2e

View File

@ -288,6 +288,9 @@ class Wpas:
self._ctrl_request('DPP_BOOTSTRAP_REMOVE *') self._ctrl_request('DPP_BOOTSTRAP_REMOVE *')
self.wait_for_result() self.wait_for_result()
def disconnect(self):
self._ctrl_request('DISCONNECT')
# Probably needed: remove references to self so that the GC can call __del__ automatically # Probably needed: remove references to self so that the GC can call __del__ automatically
def clean_up(self): def clean_up(self):
if self.io_watch is not None: if self.io_watch is not None: