From 5850cba3842e5e325dbf0134fd9d32ea5e85fc4b Mon Sep 17 00:00:00 2001 From: Ashok Ponnaiah Date: Tue, 6 Feb 2018 20:20:22 +0200 Subject: [PATCH] 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 --- src/ap/ieee802_11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);