]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
OWE: Handle unsupported finite cyclic group with driver MLME
authorAshok Ponnaiah <aponnaia@codeaurora.org>
Tue, 30 Jan 2018 11:21:12 +0000 (16:51 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 1 Feb 2018 21:51:19 +0000 (23:51 +0200)
Handle OWE unsupported finite cyclic group in (Re)Association Request
frame when not using the hostapd SME/MLME.

Signed-off-by: Ashok Ponnaiah <aponnaia@codeaurora.org>
src/ap/drv_callbacks.c

index f81f640b08f8d30f5484be47d1a75bcc50d0bc73..3cac8f6090a5359be4bd0fdd73097dda1da8198e 100644 (file)
@@ -531,10 +531,17 @@ skip_wpa_check:
                npos = owe_auth_req_process(hapd, sta,
                                            elems.owe_dh, elems.owe_dh_len,
                                            p, &reason);
-               if (!npos)
-                       goto fail;
-               p = npos;
-               if (reason != WLAN_STATUS_SUCCESS)
+               if (npos)
+                       p = npos;
+               if (!npos &&
+                   reason == WLAN_STATUS_FINITE_CYCLIC_GROUP_NOT_SUPPORTED) {
+                       status = WLAN_STATUS_FINITE_CYCLIC_GROUP_NOT_SUPPORTED;
+                       hostapd_sta_assoc(hapd, addr, reassoc, status, buf,
+                                         p - buf);
+                       return 0;
+               }
+
+               if (!npos || reason != WLAN_STATUS_SUCCESS)
                        goto fail;
        }
 #endif /* CONFIG_OWE */