Lines Matching refs:timeout

248     def request(self, cmd, timeout=10):  argument
250 return self.ctrl.request(cmd, timeout=timeout)
501 def connect_network(self, id, timeout=None): argument
502 if timeout is None:
503 timeout = 10 if self.hostname is None else 60
506 self.wait_connected(timeout=timeout)
658 def discover_peer(self, peer, full=True, timeout=15, social=True, argument
665 while count < timeout * 4:
783 def p2p_go_neg_auth_result(self, timeout=None, expect_failure=False): argument
784 if timeout is None:
785 timeout = 1 if expect_failure else 5
788 "P2P-GO-NEG-FAILURE"], timeout)
795 ev = self.wait_global_event(["P2P-GROUP-STARTED"], timeout)
802 def p2p_go_neg_init(self, peer, pin, method, timeout=0, go_intent=None, argument
807 if not self.discover_peer(peer,timeout=timeout if timeout else 15):
833 if timeout == 0:
837 "P2P-GO-NEG-FAILURE"], timeout)
846 ev = self.wait_global_event(["P2P-GROUP-STARTED"], timeout)
855 def _wait_event(self, mon, pfx, events, timeout): argument
867 remaining = start + timeout - now
870 if not mon.pending(timeout=remaining):
874 def wait_event(self, events, timeout=10): argument
875 return self._wait_event(self.mon, ": ", events, timeout)
877 def wait_global_event(self, events, timeout): argument
879 return self.wait_event(events, timeout)
881 events, timeout)
883 def wait_group_event(self, events, timeout=10): argument
898 remaining = start + timeout - now
901 if not self.gctrl_mon.pending(timeout=remaining):
905 return self.wait_event(events, timeout)
909 timeout = 3 if self.hostname is None else 10
910 ev = self.wait_global_event(["P2P-GROUP-REMOVED"], timeout=timeout)
949 ev = self.wait_global_event(["P2P-GROUP-STARTED"], timeout=5)
969 def p2p_connect_group(self, go_addr, pin, timeout=0, social=False, argument
981 if timeout == 0:
986 timeout)
1041 ev = self.wait_event(["TSPEC-REQ-FAILED"], timeout=2)
1048 ev = self.wait_event(["TSPEC-ADDED"], timeout=1)
1061 ev = self.wait_event(["TSPEC-REMOVED"], timeout=1)
1071 def connect(self, ssid=None, ssid2=None, timeout=None, **kwargs): argument
1125 if timeout is None:
1127 timeout=20
1129 timeout=15
1155 self.connect_network(id, timeout=timeout)
1162 passive=False, timeout=15): argument
1183 "CTRL-EVENT-SCAN-FAILED"], timeout)
1224 "CTRL-EVENT-SCAN-RESULTS"], timeout=0.5)
1236 "CTRL-EVENT-ASSOC-REJECT"], timeout=1)
1239 "CTRL-EVENT-DISCONNECTED"], timeout=1)
1249 "CTRL-EVENT-DISCONNECTED"], timeout=10)
1253 "CTRL-EVENT-ASSOC-REJECT"], timeout=10)
1272 ev = self.wait_event(["CTRL-EVENT-CONNECTED"], timeout=1)
1278 "CTRL-EVENT-ASSOC-REJECT"], timeout=10)
1295 ev = self.wait_event(["WPS-SUCCESS"], timeout=15)
1300 ev = self.wait_event(["WPS-CRED-RECEIVED"], timeout=15)
1303 ev = self.wait_event(["WPS-FAIL"], timeout=15)
1306 self.wait_connected(timeout=15)
1311 def wait_completed(self, timeout=10): argument
1312 for i in range(0, timeout * 2):
1392 def mgmt_rx(self, timeout=5): argument
1393 ev = self.wait_event(["MGMT-RX"], timeout=timeout)
1436 def wait_connected(self, timeout=10, error="Connection timed out"): argument
1437 ev = self.wait_event(["CTRL-EVENT-CONNECTED"], timeout=timeout)
1442 def wait_disconnected(self, timeout=None, error="Disconnection timed out"): argument
1443 if timeout is None:
1444 timeout = 10 if self.hostname is None else 30
1445 ev = self.wait_event(["CTRL-EVENT-DISCONNECTED"], timeout=timeout)
1491 ev = self.wait_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=1)
1712 def wait_sta(self, addr=None, timeout=2, wait_4way_hs=False): argument
1713 ev = self.wait_group_event(["AP-STA-CONNECT"], timeout=timeout)
1715 ev = self.wait_event(["AP-STA-CONNECT"], timeout=timeout)
1722 timeout=timeout)
1729 def wait_sta_disconnect(self, addr=None, timeout=2): argument
1730 ev = self.wait_group_event(["AP-STA-DISCONNECT"], timeout=timeout)
1732 ev = self.wait_event(["AP-STA-CONNECT"], timeout=timeout)