3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-25 08:02:38 +01:00

auto-t: fix python interface handler for devices

This commit is contained in:
Tim Kourt 2018-05-21 13:35:04 -07:00 committed by Denis Kenzior
parent ef610e0f47
commit 6ccb99d98b

View File

@ -630,7 +630,7 @@ class DeviceList(collections.Mapping):
self._dict.pop(key).remove() self._dict.pop(key).remove()
def _interfaces_added_handler(self, path, interfaces): def _interfaces_added_handler(self, path, interfaces):
self._dict[path] = Device(interfaces[IWD_DEVICE_INTERFACE]) self._dict[path] = Device(path, interfaces[IWD_DEVICE_INTERFACE])
def _interfaces_removed_handler(self, path, interfaces): def _interfaces_removed_handler(self, path, interfaces):
del _dict[path] del _dict[path]