mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
auto-t: add simple getter for radios
This commit is contained in:
parent
38bb528c71
commit
0c554500e1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user