driver: Add port authorized event

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>
This commit is contained in:
Avraham Stern 2018-01-28 14:45:35 +02:00 committed by Jouni Malinen
parent 05fc7c68f6
commit 0a20bd7d91
2 changed files with 10 additions and 0 deletions

View 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,
};

View 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";