]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: hostapd ctrl_iface SHOW_NEIGHBOR while neighbor report disabled
authorJouni Malinen <j@w1.fi>
Sun, 7 Mar 2021 10:05:09 +0000 (12:05 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 7 Mar 2021 10:05:09 +0000 (12:05 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_rrm.py

index 67f60ca34dcb73520ed6edbcbbc1882b9aa6a6cc..5f794bb19412d79fb7d5c2b522e6f3011c8454ce 100644 (file)
@@ -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])