From: Jouni Malinen Date: Thu, 24 Dec 2015 10:19:41 +0000 (+0200) Subject: tests: RADIUS Accounting and non-ASCII SSID X-Git-Tag: hostap_2_6~1109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44f4394296d567607c4ff0182eb157e26ec5c052;p=thirdparty%2Fhostap.git tests: RADIUS Accounting and non-ASCII SSID This shows an example of Called-Station-Id in Access-Request and Accounting-Request with non-ASCII characters. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_radius.py b/tests/hwsim/test_radius.py index b7d4a313c..11708e04f 100644 --- a/tests/hwsim/test_radius.py +++ b/tests/hwsim/test_radius.py @@ -209,6 +209,19 @@ def test_radius_acct(dev, apdev): if acc_e < acc_s + 1: raise Exception("Unexpected RADIUS server auth MIB value") +def test_radius_acct_non_ascii_ssid(dev, apdev): + """RADIUS Accounting and non-ASCII SSID""" + params = hostapd.wpa2_eap_params() + params['acct_server_addr'] = "127.0.0.1" + params['acct_server_port'] = "1813" + params['acct_server_shared_secret'] = "radius" + ssid2 = "740665007374" + params['ssid2'] = ssid2 + hostapd.add_ap(apdev[0]['ifname'], params) + dev[0].connect(ssid2=ssid2, key_mgmt="WPA-EAP", scan_freq="2412", + eap="PSK", identity="psk.user@example.com", + password_hex="0123456789abcdef0123456789abcdef") + def test_radius_acct_pmksa_caching(dev, apdev): """RADIUS Accounting with PMKSA caching""" as_hapd = hostapd.Hostapd("as")