From: Jouni Malinen Date: Sun, 7 Mar 2021 10:05:09 +0000 (+0200) Subject: tests: hostapd ctrl_iface SHOW_NEIGHBOR while neighbor report disabled X-Git-Tag: hostap_2_10~459 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=924c17aad5f0e19c8e9c288a6de090dbb62c4a19;p=thirdparty%2Fhostap.git tests: hostapd ctrl_iface SHOW_NEIGHBOR while neighbor report disabled Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_rrm.py b/tests/hwsim/test_rrm.py index 67f60ca34..5f794bb19 100644 --- a/tests/hwsim/test_rrm.py +++ b/tests/hwsim/test_rrm.py @@ -208,6 +208,13 @@ def test_rrm_neighbor_db(dev, apdev): if apdev[0]['bssid'] not in res: raise Exception("Own BSS not visible in SHOW_NEIGHBOR output") +def test_rrm_neighbor_db_disabled(dev, apdev): + """hostapd ctrl_iface SHOW_NEIGHBOR while neighbor report disabled""" + params = {"ssid": "test"} + hapd = hostapd.add_ap(apdev[0]['ifname'], params) + if "FAIL" not in hapd.request("SHOW_NEIGHBOR"): + raise Exception("SHOW_NEIGHBOR accepted") + def test_rrm_neighbor_rep_req(dev, apdev): """wpa_supplicant ctrl_iface NEIGHBOR_REP_REQUEST""" check_rrm_support(dev[0])