]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
OWE: Remove check for unexpected DH Parameter IE use with other AKMs
authorJouni Malinen <jouni@codeaurora.org>
Fri, 3 Apr 2020 09:18:11 +0000 (12:18 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 3 Apr 2020 09:18:11 +0000 (12:18 +0300)
While the Diffie-Hellman Parameter element is defined in RFC 8110
explicitly for use witht he OWE AKM, it has now been proposed to be used
with another AKM (DPP). Should any other AKM be extended in similar
manner in the future, the check against unexpected use could result in
additional interoperability issues. Remove that and instead, ignore the
unexpected Diffie-Hellman Parameter element if it is included in
(Re)Association Request frame when any other AKM is negotiated.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/ap/wpa_auth_ie.c

index 2ac1df47e30c6c57755fc8af3abcd184945f2aa3..9bcb997a157a67ed5949eb2a8adeb75c4ac5139a 100644 (file)
@@ -851,17 +851,6 @@ wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth,
                           "OWE: No Diffie-Hellman Parameter element");
                return WPA_INVALID_AKMP;
        }
-#ifdef CONFIG_DPP
-       if (sm->wpa_key_mgmt == WPA_KEY_MGMT_DPP && owe_dh) {
-               /* Diffie-Hellman Parameter element can be used with DPP as
-                * well, so allow this to proceed. */
-       } else
-#endif /* CONFIG_DPP */
-       if (sm->wpa_key_mgmt != WPA_KEY_MGMT_OWE && owe_dh) {
-               wpa_printf(MSG_DEBUG,
-                          "OWE: Unexpected Diffie-Hellman Parameter element with non-OWE AKM");
-               return WPA_INVALID_AKMP;
-       }
 #endif /* CONFIG_OWE */
 
 #ifdef CONFIG_DPP2