From: Jouni Malinen Date: Sat, 13 Dec 2014 23:08:18 +0000 (+0200) Subject: tests: STOP_FETCH_ANQP X-Git-Tag: hostap_2_4~795 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea27f66292c9c589d97a60229b26a49dae53988c;p=thirdparty%2Fhostap.git tests: STOP_FETCH_ANQP Signed-off-by: Jouni Malinen --- 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])