From: Jouni Malinen Date: Mon, 11 Dec 2017 11:59:55 +0000 (+0200) Subject: OWE: Allow DH Parameters element overriding with driver SME X-Git-Tag: hostap_2_7~710 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5f30b69cde1c93f73ceaa4694854f77133dfedd2;p=thirdparty%2Fhostap.git OWE: Allow DH Parameters element overriding with driver SME Commit 265bda34441da14249cb22ce8a459cebe8015a55 ('OWE: Allow DH Parameters element to be overridden for testing purposes') provided means for using "VENDOR_ELEM_ADD 13 " in OWE protocol testing, but that commit covered only the sme.c case (i.e., drivers that use wpa_supplicant SME). Extend this to cover drivers that use internal SME (e.g., use the nl80211 Connect command). Signed-off-by: Jouni Malinen --- diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index eb45627b3..28e8d3186 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -2608,6 +2608,11 @@ static u8 * wpas_populate_assoc_ies( #endif /* CONFIG_FILS */ #ifdef CONFIG_OWE +#ifdef CONFIG_TESTING_OPTIONS + if (get_ie_ext(wpa_ie, wpa_ie_len, WLAN_EID_EXT_OWE_DH_PARAM)) { + wpa_printf(MSG_INFO, "TESTING: Override OWE DH element"); + } else +#endif /* CONFIG_TESTING_OPTIONS */ if (algs == WPA_AUTH_ALG_OPEN && ssid->key_mgmt == WPA_KEY_MGMT_OWE) { struct wpabuf *owe_ie;