3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

auto-t: iwd.py: fix namespaces on StationDebug

Passing the full argument list to StationDebug was removed
because any existing properties (for Device) were being
included and causing incorrect behavior.

This neglected to handle namespaces which should also be
passed to StationDebug. Unfortunately the arguments are not
named when Device() is initialized so they cannot easily be
sorted. Instead just define Device() arguments to match the
DBus abstraction and pass only the path and namespace to
StationDebug
This commit is contained in:
James Prestwood 2021-12-22 17:12:22 -08:00 committed by Denis Kenzior
parent 9fc53cfa7b
commit 1825fd7ab7

View File

@ -280,14 +280,17 @@ class Device(IWDDBusAbstract):
''' '''
_iface_name = IWD_DEVICE_INTERFACE _iface_name = IWD_DEVICE_INTERFACE
def __init__(self, *args, **kwargs): def __init__(self, object_path = None, properties = None,
service=IWD_SERVICE, namespace=ctx):
self._wps_manager_if = None self._wps_manager_if = None
self._station_if = None self._station_if = None
self._station_props = None self._station_props = None
IWDDBusAbstract.__init__(self, *args, **kwargs) IWDDBusAbstract.__init__(self, object_path, properties, service,
namespace)
self._station_debug = StationDebug(args[0]) self._station_debug = StationDebug(object_path=object_path,
namespace=namespace)
@property @property
def _wps_manager(self): def _wps_manager(self):