break
return None
+ def wait_sta(self, addr=None, timeout=2):
+ ev = self.wait_event("AP-STA-CONNECT", timeout=timeout)
+ if ev is None:
+ raise Exception("AP did not report STA connection")
+ if addr and addr not in ev:
+ raise Exception("Unexpected STA address in connection event: " + ev)
+
def get_status(self):
res = self.request("STATUS")
lines = res.splitlines()