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:
Jouni Malinen 2013-09-25 16:45:45 +03:00 committed by Jouni Malinen
parent 89286e91bf
commit 9d507452dd

View file

@ -318,7 +318,7 @@ class WpaSupplicant:
time.sleep(0.1)
while self.global_mon.pending():
ev = self.global_mon.recv()
logger.debug(self.ifname + ": " + ev)
logger.debug(self.ifname + "(global): " + ev)
for event in events:
if event in ev:
return ev
@ -335,6 +335,9 @@ class WpaSupplicant:
while self.mon.pending():
ev = self.mon.recv()
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):
if ifname is None: