OWE: Support DH groups 20 and 21 with driver-SME/MLME

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>
This commit is contained in:
Ashok Ponnaiah 2018-02-06 20:20:22 +02:00 committed by Jouni Malinen
parent 05e5c0e554
commit 5850cba384

View 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);