]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
OWE: Support DH groups 20 and 21 with driver-SME/MLME
authorAshok Ponnaiah <aponnaia@codeaurora.org>
Tue, 6 Feb 2018 18:20:22 +0000 (20:20 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 6 Feb 2018 18:20:22 +0000 (20:20 +0200)
This was already the case with the hostapd-based SME/MLME
implementation, but the OWE DH Param element construction for the
driver-based SME/MLME needed a matching change to set the group
properly.

Signed-off-by: Ashok Ponnaiah <aponnaia@codeaurora.org>
src/ap/ieee802_11.c

index a473d21104202fcd31d33c90657bfcc53db103c6..aa869ff60f0e5323d2a4373e2825825551b80cfd 100644 (file)
@@ -3015,7 +3015,7 @@ u8 * owe_auth_req_process(struct hostapd_data *hapd, struct sta_info *sta,
        *owe_buf++ = WLAN_EID_EXTENSION; /* Element ID */
        *owe_buf++ = 1 + 2 + wpabuf_len(pub); /* Length */
        *owe_buf++ = WLAN_EID_EXT_OWE_DH_PARAM; /* Element ID Extension */
-       WPA_PUT_LE16(owe_buf, OWE_DH_GROUP);
+       WPA_PUT_LE16(owe_buf, sta->owe_group);
        owe_buf += 2;
        os_memcpy(owe_buf, wpabuf_head(pub), wpabuf_len(pub));
        owe_buf += wpabuf_len(pub);