From d6e88ee9e8c312cd7c5efe4130c5cbc7aed87898 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 11 Apr 2014 23:27:26 +0300 Subject: [PATCH] tests: NFC_REPORT_HANDOVER error cases Signed-off-by: Jouni Malinen --- tests/hwsim/test_wpas_ctrl.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py index ede811f80..a58b1870f 100644 --- a/tests/hwsim/test_wpas_ctrl.py +++ b/tests/hwsim/test_wpas_ctrl.py @@ -580,3 +580,18 @@ def test_wpas_ctrl_get_capability(dev): if dev[0].get_capability("foo") is not None: raise Exception("Unexpected GET_CAPABILITY foo response: " + str(res)) + +def test_wpas_ctrl_nfc_report_handover(dev): + """wpa_supplicant ctrl_iface NFC_REPORT_HANDOVER""" + vals = [ "FOO", + "ROLE freq=12345", + "ROLE TYPE", + "ROLE TYPE REQ", + "ROLE TYPE REQ SEL", + "ROLE TYPE 0Q SEL", + "ROLE TYPE 00 SEL", + "ROLE TYPE 00 0Q", + "ROLE TYPE 00 00" ] + for v in vals: + if "FAIL" not in dev[0].request("NFC_REPORT_HANDOVER " + v): + raise Exception("Unexpected NFC_REPORT_HANDOVER success for " + v)