commit 55e7caa8e0b4eb505482a9e091c7d6777e23f59a
parent 5567caf64a6d7a6d02e2f15ceb2979cfacac59a0
Author: James Prestwood <prestwoj@gmail.com>
Date: Thu, 17 Dec 2020 11:36:09 -0800
auto-t: add iftype/cipher disable to hwsim.py
Diffstat:
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/autotests/util/hwsim.py b/autotests/util/hwsim.py
@@ -249,7 +249,8 @@ class RadioList(collections.Mapping):
def _interfaces_removed_handler(self, path, interfaces):
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({
'P2P': p2p_device,
}, signature='sv')
@@ -257,6 +258,12 @@ class RadioList(collections.Mapping):
if name:
args['Name'] = name
+ if iftype_disable:
+ args['InterfaceTypeDisable'] = iftype_disable
+
+ if cipher_disable:
+ args['CipherTypeDisable'] = cipher_disable
+
path = self._radio_manager.CreateRadio(args)
obj = Radio(path)
self._dict[path] = obj