]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Change p2p_device_nfc_invite to use global interface
authorBen Rosenfeld <ben.rosenfeld@intel.com>
Tue, 5 May 2015 09:37:05 +0000 (12:37 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 7 May 2015 18:35:29 +0000 (21:35 +0300)
When testing P2P invitation flow, setting the NFC selector
should be done using the global control interface.

Signed-off-by: Ben Rosenfeld <ben.rosenfeld@intel.com>
tests/hwsim/test_p2p_device.py

index cc4edca0b51e2e1797a9c03e3e62d15eda4d34b5..c7e62992da2fdb51cf74bae411869f09a5352cc3 100644 (file)
@@ -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")