mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-10-06 03:18:46 +02:00
auto-t: add iftype/cipher disable to hwsim.py
This commit is contained in:
parent
5567caf64a
commit
55e7caa8e0
@ -249,7 +249,8 @@ class RadioList(collections.Mapping):
|
|||||||
def _interfaces_removed_handler(self, path, interfaces):
|
def _interfaces_removed_handler(self, path, interfaces):
|
||||||
del _dict[path]
|
del _dict[path]
|
||||||
|
|
||||||
def create(self, name=None, p2p_device=False):
|
def create(self, name=None, p2p_device=False, iftype_disable=None,
|
||||||
|
cipher_disable=None):
|
||||||
args = dbus.Dictionary({
|
args = dbus.Dictionary({
|
||||||
'P2P': p2p_device,
|
'P2P': p2p_device,
|
||||||
}, signature='sv')
|
}, signature='sv')
|
||||||
@ -257,6 +258,12 @@ class RadioList(collections.Mapping):
|
|||||||
if name:
|
if name:
|
||||||
args['Name'] = name
|
args['Name'] = name
|
||||||
|
|
||||||
|
if iftype_disable:
|
||||||
|
args['InterfaceTypeDisable'] = iftype_disable
|
||||||
|
|
||||||
|
if cipher_disable:
|
||||||
|
args['CipherTypeDisable'] = cipher_disable
|
||||||
|
|
||||||
path = self._radio_manager.CreateRadio(args)
|
path = self._radio_manager.CreateRadio(args)
|
||||||
obj = Radio(path)
|
obj = Radio(path)
|
||||||
self._dict[path] = obj
|
self._dict[path] = obj
|
||||||
|
Loading…
Reference in New Issue
Block a user