From ad38f1f05e9725d818115700bd1405de4c40c872 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 13 Apr 2014 18:46:05 +0300 Subject: [PATCH] tests: WPS_NFC_TAG_READ error cases Signed-off-by: Jouni Malinen --- tests/hwsim/test_wpas_ctrl.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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()