diff mbox

[17/17] tests: change p2p_device_nfc_invite() to use global interface

Message ID 1430818625-8690-18-git-send-email-ilan.peer@intel.com
State Accepted
Headers show

Commit Message

Peer, Ilan May 5, 2015, 9:37 a.m. UTC
From: Ben Rosenfeld <ben.rosenfeld@intel.com>

When testing P2P invitation flow, setting the NFC selector
should be done using the global control interface.

Change-Id: I3f040d289b2dae66d1061f50fe96dab959926493
Signed-off-by: Ben Rosenfeld <ben.rosenfeld@intel.com>
---
 tests/hwsim/test_p2p_device.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/tests/hwsim/test_p2p_device.py b/tests/hwsim/test_p2p_device.py
index cc4edca..c7e6299 100644
--- a/tests/hwsim/test_p2p_device.py
+++ b/tests/hwsim/test_p2p_device.py
@@ -107,7 +107,7 @@  def test_p2p_device_nfc_invite(dev, apdev):
             raise Exception("Failed to generate NFC connection handover select")
 
         logger.info("Read NFC Tag on the GO to trigger invitation")
-        res = dev[0].request("WPS_NFC_TAG_READ " + sel)
+        res = dev[0].global_request("WPS_NFC_TAG_READ " + sel)
         if "FAIL" in res:
             raise Exception("Failed to provide NFC tag contents to wpa_supplicant")