diff --git a/tests/hwsim/auth_serv/eap_user.conf b/tests/hwsim/auth_serv/eap_user.conf index ffda9d877..8a05a89d7 100644 --- a/tests/hwsim/auth_serv/eap_user.conf +++ b/tests/hwsim/auth_serv/eap_user.conf @@ -25,6 +25,8 @@ radius_accept_attr=25:x:00112233445566778899 radius_accept_attr=89:s:gpsk-chargeable-user-identity radius_accept_attr=25:x:00112233445566778899aa +"020000000000" MACACL "020000000000" + "0"* AKA "1"* SIM "2"* AKA diff --git a/tests/hwsim/test_radius.py b/tests/hwsim/test_radius.py index a03aebb2a..d13f721a6 100644 --- a/tests/hwsim/test_radius.py +++ b/tests/hwsim/test_radius.py @@ -476,3 +476,11 @@ def test_radius_ipv6(dev, apdev): params['own_ip_addr'] = "::0" hostapd.add_ap(apdev[0]['ifname'], params) connect(dev[0], "radius-ipv6") + +def test_radius_macacl(dev, apdev): + """RADIUS MAC ACL""" + params = hostapd.radius_params() + params["ssid"] = "radius" + params["macaddr_acl"] = "2" + hostapd.add_ap(apdev[0]['ifname'], params) + dev[0].connect("radius", key_mgmt="NONE", scan_freq="2412")