]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
OWE: Allow DH Parameters element overriding with driver SME
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 11 Dec 2017 11:59:55 +0000 (13:59 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 11 Dec 2017 11:59:55 +0000 (13:59 +0200)
Commit 265bda34441da14249cb22ce8a459cebe8015a55 ('OWE: Allow DH
Parameters element to be overridden for testing purposes') provided
means for using "VENDOR_ELEM_ADD 13 <IE>" 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 <jouni@qca.qualcomm.com>
wpa_supplicant/wpa_supplicant.c

index eb45627b3d7f65d14115e0616aa40dac6d179c8b..28e8d3186061d0ca55c69dc70b44f5134837c6ec 100644 (file)
@@ -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;