commit 80123efabd693f40f04ffeb2d290af0d10365b3f
parent 7321705e90d95bbdc95269e12306908a555ab84d
Author: James Prestwood <prestwoj@gmail.com>
Date: Thu, 12 Aug 2021 13:21:50 -0700
auto-t: hostapd.py: add 'bssid' property
This gets the APs BSSID, bypassing the need to use hwsim
for obtaining this address.
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/autotests/util/hostapd.py b/autotests/util/hostapd.py
@@ -234,3 +234,13 @@ class HostapdCLI:
'''
cmd = self.cmdline + ['req_beacon', addr, request]
ctx.start_process(cmd, wait=True)
+
+ @property
+ def bssid(self):
+ cmd = self.cmdline + ['status']
+ status = ctx.start_process(cmd, wait=True, need_out=True).out
+ status = status.split('\n')
+
+ bssid = [x for x in status if x.startswith('bssid')]
+ bssid = bssid[0].split('=')
+ return bssid[1]