From 55e7caa8e0b4eb505482a9e091c7d6777e23f59a Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 17 Dec 2020 11:36:09 -0800 Subject: [PATCH] auto-t: add iftype/cipher disable to hwsim.py --- autotests/util/hwsim.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/autotests/util/hwsim.py b/autotests/util/hwsim.py index 9ad8ce09..9aa14cbc 100755 --- 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