mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-21 22:09:23 +01:00
auto-t: add HostapdCLI.sta_status
Gets information about a specific STA hostapd is tracking. This object will contain detailed information such as the SAE group number used.
This commit is contained in:
parent
c2ef5f3f68
commit
82161909a1
@ -306,6 +306,22 @@ class HostapdCLI(object):
|
|||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
def sta_status(self, address):
|
||||||
|
ret = {}
|
||||||
|
|
||||||
|
cmd = self.cmdline + ['sta', address]
|
||||||
|
proc = ctx.start_process(cmd)
|
||||||
|
proc.wait()
|
||||||
|
status = proc.out.strip().split('\n')
|
||||||
|
|
||||||
|
# Pop address
|
||||||
|
status.pop(0)
|
||||||
|
for kv in status:
|
||||||
|
k, v = kv.split('=', 1)
|
||||||
|
ret[k] = v
|
||||||
|
|
||||||
|
return ret
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def bssid(self):
|
def bssid(self):
|
||||||
return self._get_status()['bssid[0]']
|
return self._get_status()['bssid[0]']
|
||||||
|
Loading…
Reference in New Issue
Block a user