From ea27f66292c9c589d97a60229b26a49dae53988c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 14 Dec 2014 01:08:18 +0200 Subject: [PATCH] tests: STOP_FETCH_ANQP Signed-off-by: Jouni Malinen --- tests/hwsim/test_gas.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/hwsim/test_gas.py b/tests/hwsim/test_gas.py index aaa694fe2..9e8b6d107 100644 --- a/tests/hwsim/test_gas.py +++ b/tests/hwsim/test_gas.py @@ -260,6 +260,21 @@ def test_gas_comeback_delay(dev, apdev): if ev is None: raise Exception("Operation timed out") +def test_gas_stop_fetch_anqp(dev, apdev): + """Stop FETCH_ANQP operation""" + hapd = start_ap(apdev[0]) + + dev[0].scan_for_bss(apdev[0]['bssid'], freq="2412", force_scan=True) + hapd.set("ext_mgmt_frame_handling", "1") + dev[0].request("FETCH_ANQP") + dev[0].request("STOP_FETCH_ANQP") + hapd.set("ext_mgmt_frame_handling", "0") + ev = dev[0].wait_event(["RX-ANQP", "GAS-QUERY-DONE"], timeout=10) + if ev is None: + raise Exception("GAS-QUERY-DONE timed out") + if "RX-ANQP" in ev: + raise Exception("Unexpected ANQP response received") + def test_gas_anqp_get(dev, apdev): """GAS/ANQP query for both IEEE 802.11 and Hotspot 2.0 elements""" hapd = start_ap(apdev[0])