From 1b5664f0fbe4542e109b3bf010274720ae7cfbb2 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 1 Mar 2015 17:35:06 +0200 Subject: [PATCH] tests: RADIUS Accounting server unreachable and multiple STAs This verifies behavior on reaching RADIUS_CLIENT_MAX_ENTRIES. Signed-off-by: Jouni Malinen --- tests/hwsim/test_radius.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/hwsim/test_radius.py b/tests/hwsim/test_radius.py index b70020647..ae46828f4 100644 --- a/tests/hwsim/test_radius.py +++ b/tests/hwsim/test_radius.py @@ -146,6 +146,19 @@ def test_radius_acct_unreachable3(dev, apdev): if req_e <= req_s: raise Exception("Unexpected RADIUS server acct MIB value") +def test_radius_acct_unreachable4(dev, apdev): + """RADIUS Accounting server unreachable and multiple STAs""" + params = hostapd.wpa2_eap_params(ssid="radius-acct") + params['acct_server_addr'] = "127.0.0.1" + params['acct_server_port'] = "18139" + params['acct_server_shared_secret'] = "radius" + hostapd.add_ap(apdev[0]['ifname'], params) + hapd = hostapd.Hostapd(apdev[0]['ifname']) + for i in range(20): + connect(dev[0], "radius-acct") + dev[0].request("REMOVE_NETWORK all") + dev[0].wait_disconnected() + def test_radius_acct(dev, apdev): """RADIUS Accounting""" as_hapd = hostapd.Hostapd("as")