]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
driver: Add port authorized event
authorAvraham Stern <avraham.stern@intel.com>
Sun, 28 Jan 2018 12:45:35 +0000 (14:45 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 17 Feb 2018 16:39:41 +0000 (18:39 +0200)
Add an event that indicates that the 4 way handshake was completed by
the driver.

This event is useful for networks that require 802.1X authentication.
The driver can use this event that a new connection is already
authorized (e.g. when the driver used PMKSA caching) and 802.1X
authentication is not required.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
src/drivers/driver.h
src/drivers/driver_common.c

index d9c6fd9f5f6979913679950b665ebeb3dee2c141..38ced14ef716b27431944372e5a562bbb2c0d841 100644 (file)
@@ -4557,6 +4557,15 @@ enum wpa_event_type {
         * happen.
         */
        EVENT_EXTERNAL_AUTH,
+
+       /**
+        * EVENT_PORT_AUTHORIZED - Notification that a connection is authorized
+        *
+        * This event should be indicated when the driver completes the 4-way
+        * handshake. This event should be preceded by an EVENT_ASSOC that
+        * indicates the completion of IEEE 802.11 association.
+        */
+       EVENT_PORT_AUTHORIZED,
 };
 
 
index 33a6db346738a432be7f0a4f65b75e71f7418e35..e4806ad5e2807e94e643f59945d733557c089250 100644 (file)
@@ -83,6 +83,7 @@ const char * event_to_string(enum wpa_event_type event)
        E2S(BEACON_LOSS);
        E2S(DFS_PRE_CAC_EXPIRED);
        E2S(EXTERNAL_AUTH);
+       E2S(PORT_AUTHORIZED);
        }
 
        return "UNKNOWN";