]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HS 2.0R2 AP: Add AP Hotspot 2.0 Release Number as WFA RADIUS VSA
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 21 Nov 2012 22:11:01 +0000 (00:11 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 25 Feb 2014 23:24:24 +0000 (01:24 +0200)
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 <jouni@qca.qualcomm.com>

src/ap/ieee802_1x.c

index 21f815af29a894e49989a4015c8f3e0942e58acd..49933780dfaead1bead3f09521585871e9301f05 100644 (file)
@@ -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;