From b3f32a24d4ffb50ce29f6c8f29123f2011d09b4c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 8 Feb 2017 17:28:49 +0200 Subject: [PATCH] tests: RADIUS MAC ACL and OOM Signed-off-by: Jouni Malinen --- tests/hwsim/test_radius.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/hwsim/test_radius.py b/tests/hwsim/test_radius.py index 2cf4d1487..6168885a6 100644 --- a/tests/hwsim/test_radius.py +++ b/tests/hwsim/test_radius.py @@ -884,6 +884,26 @@ def test_radius_macacl_acct(dev, apdev): dev[1].wait_disconnected() dev[1].request("RECONNECT") +def test_radius_macacl_oom(dev, apdev): + """RADIUS MAC ACL and OOM""" + params = hostapd.radius_params() + params["ssid"] = "radius" + params["macaddr_acl"] = "2" + hapd = hostapd.add_ap(apdev[0], params) + bssid = hapd.own_addr() + + dev[0].scan_for_bss(bssid, freq="2412") + with alloc_fail(hapd, 1, "hostapd_allowed_address"): + dev[0].connect("radius", key_mgmt="NONE", scan_freq="2412") + + dev[1].scan_for_bss(bssid, freq="2412") + with alloc_fail(hapd, 2, "hostapd_allowed_address"): + dev[1].connect("radius", key_mgmt="NONE", scan_freq="2412") + + dev[2].scan_for_bss(bssid, freq="2412") + with alloc_fail(hapd, 2, "=hostapd_allowed_address"): + dev[2].connect("radius", key_mgmt="NONE", scan_freq="2412") + def test_radius_failover(dev, apdev): """RADIUS Authentication and Accounting server failover""" subprocess.call(['ip', 'ro', 'replace', '192.168.213.17', 'dev', 'lo'])