From: Jouni Malinen Date: Sun, 13 Apr 2014 15:46:05 +0000 (+0300) Subject: tests: WPS_NFC_TAG_READ error cases X-Git-Tag: hostap_2_2~272 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad38f1f05e9725d818115700bd1405de4c40c872;p=thirdparty%2Fhostap.git tests: WPS_NFC_TAG_READ error cases Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py index c024e6862..562177a99 100644 --- a/tests/hwsim/test_wpas_ctrl.py +++ b/tests/hwsim/test_wpas_ctrl.py @@ -630,6 +630,14 @@ def test_wpas_ctrl_nfc_report_handover(dev): if "FAIL" not in dev[0].request("NFC_REPORT_HANDOVER " + v): raise Exception("Unexpected NFC_REPORT_HANDOVER success for " + v) +def test_wpas_ctrl_nfc_tag_read(dev): + """wpa_supplicant ctrl_iface WPS_NFC_TAG_READ""" + vals = [ "FOO", "0Q", "00", "000000", "10000001", "10000000", "00000000", + "100e0000", "100e0001ff", "100e000411110000", "100e0004100e0001" ] + for v in vals: + if "FAIL" not in dev[0].request("WPS_NFC_TAG_READ " + v): + raise Exception("Unexpected WPS_NFC_TAG_READ success for " + v) + def get_blacklist(dev): return dev.request("BLACKLIST").splitlines()