]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - wpa_supplicant/events.c
DPP: Configuration exchange
[thirdparty/hostap.git] / wpa_supplicant / events.c
index 0bfd3b905d0fc9a32b08c845a1275b49d5d04849..648ffdc86e0091bd78e0edd1e10c614a52976b7e 100644 (file)
@@ -29,6 +29,7 @@
 #include "common/ieee802_11_defs.h"
 #include "common/ieee802_11_common.h"
 #include "common/dpp.h"
+#include "common/gas_server.h"
 #include "crypto/random.h"
 #include "blacklist.h"
 #include "wpas_glue.h"
@@ -3530,6 +3531,15 @@ static void wpas_event_rx_mgmt_action(struct wpa_supplicant *wpa_s,
                return;
 #endif /* CONFIG_GAS */
 
+#ifdef CONFIG_GAS_SERVER
+       if ((mgmt->u.action.category == WLAN_ACTION_PUBLIC ||
+            mgmt->u.action.category == WLAN_ACTION_PROTECTED_DUAL) &&
+           gas_server_rx(wpa_s->gas_server, mgmt->da, mgmt->sa, mgmt->bssid,
+                         mgmt->u.action.category,
+                         payload, plen, freq) == 0)
+               return;
+#endif /* CONFIG_GAS_SERVER */
+
 #ifdef CONFIG_TDLS
        if (category == WLAN_ACTION_PUBLIC && plen >= 4 &&
            payload[0] == WLAN_TDLS_DISCOVERY_RESPONSE) {