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

autotests: Initialise P2PPeer objects with correct namespace

This commit is contained in:
Andrew Zaborowski 2021-06-04 03:50:49 +02:00 committed by Denis Kenzior
parent 617e99a423
commit c54ba7158c

View File

@ -826,7 +826,7 @@ class P2PDevice(IWDDBusAbstract):
self._peer_dict = {} self._peer_dict = {}
for path, rssi in self._iface.GetPeers(): for path, rssi in self._iface.GetPeers():
self._peer_dict[path] = old_dict[path] if path in old_dict else P2PPeer(path) self._peer_dict[path] = old_dict[path] if path in old_dict else P2PPeer(path, namespace=self._namespace)
self._peer_dict[path].rssi = rssi self._peer_dict[path].rssi = rssi
return self._peer_dict return self._peer_dict