commit 0c554500e1d44018c870c56f64d714b55e2f29ea
parent 38bb528c71f63ce02aa214c103164d1c00357f92
Author: James Prestwood <james.prestwood@linux.intel.com>
Date: Tue, 11 Jun 2019 09:25:53 -0700
auto-t: add simple getter for radios
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/autotests/util/hwsim.py b/autotests/util/hwsim.py
@@ -299,3 +299,11 @@ class Hwsim(iwd.AsyncOpAbstract):
iface.SendFrame(bytearray.fromhex(station.replace(':', '')),
freq, -30, bytearray.fromhex(frame))
+
+ def get_radio(self, name):
+ for path in self.radios:
+ radio = self.radios[path]
+ if radio.name == name:
+ return radio
+
+ return None