aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-01-07 20:16:24 (GMT)
committerJouni Malinen <j@w1.fi>2017-01-07 20:16:24 (GMT)
commiteaccab264dc50bb462a04a57c00b49f12965a2aa (patch)
tree93c7afa93373eb165e136e77ef7da05a6d8d4e4c /tests
parent5de6823f7a62dd3547c5ac949fcf9e063e56885d (diff)
downloadhostap-eaccab264dc50bb462a04a57c00b49f12965a2aa.zip
hostap-eaccab264dc50bb462a04a57c00b49f12965a2aa.tar.gz
hostap-eaccab264dc50bb462a04a57c00b49f12965a2aa.tar.bz2
tests: LCI report generation and os_get_reltime() failure
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_rrm.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/hwsim/test_rrm.py b/tests/hwsim/test_rrm.py
index 5a8deb3..970cd82 100644
--- a/tests/hwsim/test_rrm.py
+++ b/tests/hwsim/test_rrm.py
@@ -312,6 +312,21 @@ def test_rrm_lci_req_oom(dev, apdev):
raise Exception("REQ_LCI failed unexpectedly")
wait_fail_trigger(dev[0], "GET_ALLOC_FAIL")
+def test_rrm_lci_req_get_reltime_failure(dev, apdev):
+ """LCI report generation and os_get_reltime() failure"""
+ check_rrm_support(dev[0])
+
+ params = { "ssid": "rrm", "rrm_neighbor_report": "1" }
+ hapd = hostapd.add_ap(apdev[0]['ifname'], params)
+
+ dev[0].request("SET LCI " + lci)
+ dev[0].connect("rrm", key_mgmt="NONE", scan_freq="2412")
+
+ with fail_test(dev[0], 1, "os_get_reltime;wpas_rrm_build_lci_report"):
+ if "OK" not in hapd.request("REQ_LCI " + dev[0].own_addr()):
+ raise Exception("REQ_LCI failed unexpectedly")
+ wait_fail_trigger(dev[0], "GET_FAIL")
+
def test_rrm_neighbor_rep_req_from_conf(dev, apdev):
"""wpa_supplicant ctrl_iface NEIGHBOR_REP_REQUEST and hostapd config"""
check_rrm_support(dev[0])