From f5d5161db12e5f887e0272a386a265c5a0d12546 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 6 Jun 2015 18:15:23 +0300 Subject: [PATCH] tests: Allow D-Bus GONegotiationRequest signal to include extra argument This is needed to allow the GO Intent argument to be added without breaking these test cases. Signed-off-by: Jouni Malinen --- tests/hwsim/test_dbus.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/hwsim/test_dbus.py b/tests/hwsim/test_dbus.py index ec77fb687..a172652c6 100644 --- a/tests/hwsim/test_dbus.py +++ b/tests/hwsim/test_dbus.py @@ -3847,8 +3847,8 @@ def test_dbus_p2p_go_neg_rx(dev, apdev): def deviceFound(self, path): logger.debug("deviceFound: path=%s" % path) - def goNegotiationRequest(self, path, dev_passwd_id): - logger.debug("goNegotiationRequest: path=%s dev_passwd_id=%d" % (path, dev_passwd_id)) + def goNegotiationRequest(self, path, dev_passwd_id, go_intent=0): + logger.debug("goNegotiationRequest: path=%s dev_passwd_id=%d go_intent=%d" % (path, dev_passwd_id, go_intent)) if dev_passwd_id != 1: raise Exception("Unexpected dev_passwd_id=%d" % dev_passwd_id) args = { 'peer': path, 'wps_method': 'display', 'pin': '12345670', @@ -4099,8 +4099,8 @@ def test_dbus_p2p_wps_failure(dev, apdev): self.loop.run() return self - def goNegotiationRequest(self, path, dev_passwd_id): - logger.debug("goNegotiationRequest: path=%s dev_passwd_id=%d" % (path, dev_passwd_id)) + def goNegotiationRequest(self, path, dev_passwd_id, go_intent=0): + logger.debug("goNegotiationRequest: path=%s dev_passwd_id=%d go_intent=%d" % (path, dev_passwd_id, go_intent)) if dev_passwd_id != 1: raise Exception("Unexpected dev_passwd_id=%d" % dev_passwd_id) args = { 'peer': path, 'wps_method': 'display', 'pin': '12345670',