tests: Change p2p_device_nfc_invite to use global interface

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>
This commit is contained in:
Ben Rosenfeld 2015-05-05 12:37:05 +03:00 committed by Jouni Malinen
parent cc259e2650
commit cf5d768b33

View file

@ -107,7 +107,7 @@ def test_p2p_device_nfc_invite(dev, apdev):
raise Exception("Failed to generate NFC connection handover select") raise Exception("Failed to generate NFC connection handover select")
logger.info("Read NFC Tag on the GO to trigger invitation") 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: if "FAIL" in res:
raise Exception("Failed to provide NFC tag contents to wpa_supplicant") raise Exception("Failed to provide NFC tag contents to wpa_supplicant")