]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HS 2.0: Update HS2.0 AP version RADIUS attribute Version field
authorJouni Malinen <jouni@codeaurora.org>
Fri, 9 Nov 2018 21:38:31 +0000 (23:38 +0200)
committerJouni Malinen <jouni@codeaurora.org>
Fri, 9 Nov 2018 21:38:31 +0000 (23:38 +0200)
Use HS20_VERSION macro to determine if R3 should be indicated instead of
R2.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/ap/ieee802_1x.c

index 985f8b787b0cb9d55ab22512c689015b532e73fa..185279f9e3ef1d7796d22140eb0a5e17c09b28c4 100644 (file)
@@ -683,6 +683,8 @@ void ieee802_1x_encapsulate_radius(struct hostapd_data *hapd,
 #ifdef CONFIG_HS20
        if (hapd->conf->hs20) {
                u8 ver = 1; /* Release 2 */
+               if (HS20_VERSION > 0x10)
+                       ver = 2; /* Release 3 */
                if (!radius_msg_add_wfa(
                            msg, RADIUS_VENDOR_ATTR_WFA_HS20_AP_VERSION,
                            &ver, 1)) {