]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Do not dump pending events in p2p_go_neg_init timeout=0 case
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 31 Dec 2015 20:38:55 +0000 (22:38 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 31 Dec 2015 20:41:21 +0000 (22:41 +0200)
It was possible for the dump_monitor() call to drop a P2P-GO-NEG-FAILURE
event that was indicated quickly after the P2P_CONNECT command was
issued. This could result in grpform_reject test case failing to see the
expected event and fail the test due to "Rejection not reported".

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/wpasupplicant.py

index 9b0b4ae9ea8110febc98ff48e3765f3711a9f4c6..42bca469a14bcd16435a5a60a57affedbe38b1f6 100644 (file)
@@ -619,7 +619,6 @@ class WpaSupplicant:
             cmd = cmd + " provdisc"
         if "OK" in self.global_request(cmd):
             if timeout == 0:
-                self.dump_monitor()
                 return None
             go_neg_res = None
             ev = self.wait_global_event(["P2P-GO-NEG-SUCCESS",