From: Ashok Ponnaiah Date: Tue, 6 Feb 2018 18:20:22 +0000 (+0200) Subject: OWE: Support DH groups 20 and 21 with driver-SME/MLME X-Git-Tag: hostap_2_7~596 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5850cba3842e5e325dbf0134fd9d32ea5e85fc4b;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index a473d2110..aa869ff60 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -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);