diff --git a/tests/hwsim/auth_serv/eap_user.conf b/tests/hwsim/auth_serv/eap_user.conf index 7d52b6e3a..102d0f36f 100644 --- a/tests/hwsim/auth_serv/eap_user.conf +++ b/tests/hwsim/auth_serv/eap_user.conf @@ -47,6 +47,9 @@ radius_accept_attr=27:d:3 "020000000000" MACACL "020000000000" +"020000000100" MACACL "020000000100" +radius_accept_attr=89:s:macacl-cui-test + "0232010000000000@ttls" TTLS,AKA "0232010000000000@peap" PEAP,AKA "0232010000000000@fast" FAST,AKA diff --git a/tests/hwsim/test_radius.py b/tests/hwsim/test_radius.py index b3a7d5cfe..4b64ca506 100644 --- a/tests/hwsim/test_radius.py +++ b/tests/hwsim/test_radius.py @@ -610,6 +610,21 @@ def test_radius_macacl(dev, apdev): hostapd.add_ap(apdev[0]['ifname'], params) dev[0].connect("radius", key_mgmt="NONE", scan_freq="2412") +def test_radius_macacl_acct(dev, apdev): + """RADIUS MAC ACL and accounting enabled""" + params = hostapd.radius_params() + params["ssid"] = "radius" + params["macaddr_acl"] = "2" + params['acct_server_addr'] = "127.0.0.1" + params['acct_server_port'] = "1813" + params['acct_server_shared_secret'] = "radius" + hostapd.add_ap(apdev[0]['ifname'], params) + dev[0].connect("radius", key_mgmt="NONE", scan_freq="2412") + dev[1].connect("radius", key_mgmt="NONE", scan_freq="2412") + dev[1].request("DISCONNECT") + dev[1].wait_disconnected() + dev[1].request("RECONNECT") + def test_radius_failover(dev, apdev): """RADIUS Authentication and Accounting server failover""" subprocess.call(['sudo', 'ip', 'ro', 'replace', '192.168.213.17', 'dev',