tests: Clear global monitor interface on dump_monitor()
This avoids some issues with the global control interface socket getting stuck with send buffer limit reached if test cases did not use wait_global_event(). Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
89286e91bf
commit
9d507452dd
1 changed files with 4 additions and 1 deletions
|
@ -318,7 +318,7 @@ class WpaSupplicant:
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
while self.global_mon.pending():
|
while self.global_mon.pending():
|
||||||
ev = self.global_mon.recv()
|
ev = self.global_mon.recv()
|
||||||
logger.debug(self.ifname + ": " + ev)
|
logger.debug(self.ifname + "(global): " + ev)
|
||||||
for event in events:
|
for event in events:
|
||||||
if event in ev:
|
if event in ev:
|
||||||
return ev
|
return ev
|
||||||
|
@ -335,6 +335,9 @@ class WpaSupplicant:
|
||||||
while self.mon.pending():
|
while self.mon.pending():
|
||||||
ev = self.mon.recv()
|
ev = self.mon.recv()
|
||||||
logger.debug(self.ifname + ": " + ev)
|
logger.debug(self.ifname + ": " + ev)
|
||||||
|
while self.global_mon.pending():
|
||||||
|
ev = self.global_mon.recv()
|
||||||
|
logger.debug(self.ifname + "(global): " + ev)
|
||||||
|
|
||||||
def remove_group(self, ifname=None):
|
def remove_group(self, ifname=None):
|
||||||
if ifname is None:
|
if ifname is None:
|
||||||
|
|
Loading…
Reference in a new issue