From 76579ec75fe2fe8525585f91c3d1714aa97021e8 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 22 Nov 2012 00:11:01 +0200 Subject: [PATCH] HS 2.0R2 AP: Add AP Hotspot 2.0 Release Number as WFA RADIUS VSA The Access-Request frames are used to inform the RADIUS server about the Hotspot 2.0 release number supported by the AP. Signed-hostap: Jouni Malinen --- src/ap/ieee802_1x.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/ap/ieee802_1x.c b/src/ap/ieee802_1x.c index 21f815af2..49933780d 100644 --- a/src/ap/ieee802_1x.c +++ b/src/ap/ieee802_1x.c @@ -521,6 +521,19 @@ static void ieee802_1x_encapsulate_radius(struct hostapd_data *hapd, } } +#ifdef CONFIG_HS20 + if (hapd->conf->hs20) { + u8 ver = 1; /* Release 2 */ + if (!radius_msg_add_wfa( + msg, RADIUS_VENDOR_ATTR_WFA_HS20_AP_VERSION, + &ver, 1)) { + wpa_printf(MSG_ERROR, "Could not add HS 2.0 AP " + "version"); + goto fail; + } + } +#endif /* CONFIG_HS20 */ + if (radius_client_send(hapd->radius, msg, RADIUS_AUTH, sta->addr) < 0) goto fail;