aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/eapol_test.c
diff options
context:
space:
mode:
authorNick Lowe <nick.lowe@lugatech.com>2016-02-13 12:20:12 (GMT)
committerJouni Malinen <j@w1.fi>2016-02-19 16:44:39 (GMT)
commit8c676b50562c5ef5124691d7df7b4f0e03eb042d (patch)
treeffe1c4942a565804cd7cfda4b69cb26b3e841205 /wpa_supplicant/eapol_test.c
parent78dd5c11acc1c65ca0e1e500f290085d2c55eeac (diff)
downloadhostap-8c676b50562c5ef5124691d7df7b4f0e03eb042d.zip
hostap-8c676b50562c5ef5124691d7df7b4f0e03eb042d.tar.gz
hostap-8c676b50562c5ef5124691d7df7b4f0e03eb042d.tar.bz2
Add RADIUS Service-Type attribute with a value of Framed
This seems to be the common value used by APs and also mentioned in RFC 3580. Signed-off-by: Nick Lowe <nick.lowe@lugatech.com>
Diffstat (limited to 'wpa_supplicant/eapol_test.c')
-rw-r--r--wpa_supplicant/eapol_test.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/wpa_supplicant/eapol_test.c b/wpa_supplicant/eapol_test.c
index 1aede79..6548bd1 100644
--- a/wpa_supplicant/eapol_test.c
+++ b/wpa_supplicant/eapol_test.c
@@ -258,6 +258,13 @@ static void ieee802_1x_encapsulate_radius(struct eapol_test_data *e,
goto fail;
}
+ if (!find_extra_attr(e->extra_attrs, RADIUS_ATTR_SERVICE_TYPE) &&
+ !radius_msg_add_attr_int32(msg, RADIUS_ATTR_SERVICE_TYPE,
+ RADIUS_SERVICE_TYPE_FRAMED)) {
+ printf("Could not add Service-Type\n");
+ goto fail;
+ }
+
os_snprintf(buf, sizeof(buf), "%s", e->connect_info);
if (!find_extra_attr(e->extra_attrs, RADIUS_ATTR_CONNECT_INFO) &&
!radius_msg_add_attr(msg, RADIUS_ATTR_CONNECT_INFO,