tests: Check wpa_supplicant connection after reset

Some test runs have resulted in wpa_supplicant being unresponsive or
very slow on the control interface. Check for that type of issues as
part of the reset sequence that is done between each test case.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2013-09-03 12:13:25 +03:00 committed by Jouni Malinen
parent 61971697bb
commit ea0e92eef5

View file

@ -51,11 +51,15 @@ class WpaSupplicant:
return "PONG" in self.request("PING")
def reset(self):
self.request("FLUSH")
res = self.request("FLUSH")
if not "OK" in res:
logger.info("FLUSH to " + self.ifname + " failed: " + res)
self.request("SET ignore_old_scan_res 0")
self.request("P2P_SET per_sta_psk 0")
self.group_ifname = None
self.dump_monitor()
if not self.ping():
logger.info("No PING response from " + self.ifname + " after reset")
def add_network(self):
id = self.request("ADD_NETWORK")