diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2017-12-11 11:59:55 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2017-12-11 11:59:55 (GMT) |
commit | 5f30b69cde1c93f73ceaa4694854f77133dfedd2 (patch) | |
tree | 285cdc7992ee855986ad651552146330d446cf45 /wpa_supplicant | |
parent | 04ded82efad6cee855720e49c14c57a82a309b68 (diff) | |
download | hostap-5f30b69cde1c93f73ceaa4694854f77133dfedd2.zip hostap-5f30b69cde1c93f73ceaa4694854f77133dfedd2.tar.gz hostap-5f30b69cde1c93f73ceaa4694854f77133dfedd2.tar.bz2 |
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 <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>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r-- | wpa_supplicant/wpa_supplicant.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index eb45627..28e8d31 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; |