wpa_supplicant / hostapd 2.0
Data Structures | Defines | Enumerations | Functions

driver.h File Reference

Driver interface definition. More...

#include "common/defs.h"

Go to the source code of this file.

Data Structures

struct  hostapd_channel_data
 Channel information. More...
struct  hostapd_hw_modes
 Supported hardware mode information. More...
struct  wpa_scan_res
 Scan result for an BSS/IBSS. More...
struct  wpa_scan_results
 Scan results. More...
struct  wpa_interface_info
 Network interface information. More...
struct  wpa_driver_scan_params
 Scan parameters. More...
struct  wpa_driver_scan_params::wpa_driver_scan_ssid
 SSIDs to scan for. More...
struct  wpa_driver_scan_params::wpa_driver_scan_filter
 Filter for reporting SSIDs. More...
struct  wpa_driver_auth_params
 Authentication parameters. More...
struct  wpa_driver_associate_params
 Association parameters. More...
struct  wpa_driver_ap_params
struct  wpa_driver_capa
 Driver capability information. More...
struct  hostap_sta_driver_data
struct  hostapd_sta_add_params
struct  hostapd_freq_params
struct  wpa_init_params
struct  wpa_bss_params
struct  p2p_params
 P2P parameters for driver-based P2P management. More...
struct  wpa_signal_info
 Information about channel signal quality. More...
struct  wpa_driver_ops
 Driver interface API definition. More...
union  wpa_event_data
struct  wpa_event_data::assoc_info
 Data for EVENT_ASSOC and EVENT_ASSOCINFO events. More...
struct  wpa_event_data::disassoc_info
 Data for EVENT_DISASSOC events. More...
struct  wpa_event_data::deauth_info
 Data for EVENT_DEAUTH events. More...
struct  wpa_event_data::michael_mic_failure
 Data for EVENT_MICHAEL_MIC_FAILURE. More...
struct  wpa_event_data::interface_status
 Data for EVENT_INTERFACE_STATUS. More...
struct  wpa_event_data::pmkid_candidate
 Data for EVENT_PMKID_CANDIDATE. More...
struct  wpa_event_data::stkstart
 Data for EVENT_STKSTART. More...
struct  wpa_event_data::tdls
 Data for EVENT_TDLS. More...
struct  wpa_event_data::ft_ies
 FT information elements (EVENT_FT_RESPONSE) More...
struct  wpa_event_data::ibss_rsn_start
 Data for EVENT_IBSS_RSN_START. More...
struct  wpa_event_data::auth_info
 Data for EVENT_AUTH events. More...
struct  wpa_event_data::assoc_reject
 Data for EVENT_ASSOC_REJECT events. More...
struct  wpa_event_data::timeout_event
struct  wpa_event_data::ft_rrb_rx
 Data for EVENT_FT_RRB_RX events. More...
struct  wpa_event_data::tx_status
 Data for EVENT_TX_STATUS events. More...
struct  wpa_event_data::rx_from_unknown
 Data for EVENT_RX_FROM_UNKNOWN events. More...
struct  wpa_event_data::rx_mgmt
 Data for EVENT_RX_MGMT events. More...
struct  wpa_event_data::rx_action
 Data for EVENT_RX_ACTION events. More...
struct  wpa_event_data::remain_on_channel
 Data for EVENT_REMAIN_ON_CHANNEL events. More...
struct  wpa_event_data::scan_info
 Optional data for EVENT_SCAN_RESULTS events. More...
struct  wpa_event_data::mlme_rx
 Data for EVENT_MLME_RX events. More...
struct  wpa_event_data::rx_probe_req
 Data for EVENT_RX_PROBE_REQ events. More...
struct  wpa_event_data::new_sta
 Data for EVENT_NEW_STA events. More...
struct  wpa_event_data::eapol_rx
 Data for EVENT_EAPOL_RX events. More...
struct  wpa_event_data::best_channel
 Data for EVENT_BEST_CHANNEL events. More...
struct  wpa_event_data::unprot_deauth
struct  wpa_event_data::unprot_disassoc
struct  wpa_event_data::low_ack
 Data for EVENT_STATION_LOW_ACK events. More...
struct  wpa_event_data::p2p_dev_found
 Data for EVENT_P2P_DEV_FOUND. More...
struct  wpa_event_data::p2p_go_neg_req_rx
 Data for EVENT_P2P_GO_NEG_REQ_RX. More...
struct  wpa_event_data::p2p_go_neg_completed
 Data for EVENT_P2P_GO_NEG_COMPLETED. More...
struct  wpa_event_data::p2p_prov_disc_req
struct  wpa_event_data::p2p_prov_disc_resp
struct  wpa_event_data::p2p_sd_req
struct  wpa_event_data::p2p_sd_resp
struct  wpa_event_data::ibss_peer_lost
 Data for EVENT_IBSS_PEER_LOST. More...
struct  wpa_event_data::driver_gtk_rekey
 Data for EVENT_DRIVER_GTK_REKEY. More...
struct  wpa_event_data::client_poll
 Data for EVENT_DRIVER_CLIENT_POLL_OK events. More...
struct  wpa_event_data::eapol_tx_status

Defines

#define WPA_SUPPLICANT_DRIVER_VERSION   4
#define HOSTAPD_CHAN_DISABLED   0x00000001
#define HOSTAPD_CHAN_PASSIVE_SCAN   0x00000002
#define HOSTAPD_CHAN_NO_IBSS   0x00000004
#define HOSTAPD_CHAN_RADAR   0x00000008
#define HOSTAPD_CHAN_HT40PLUS   0x00000010
#define HOSTAPD_CHAN_HT40MINUS   0x00000020
#define HOSTAPD_CHAN_HT40   0x00000040
#define HOSTAPD_MODE_FLAG_HT_INFO_KNOWN   BIT(0)
#define IEEE80211_MODE_INFRA   0
#define IEEE80211_MODE_IBSS   1
#define IEEE80211_MODE_AP   2
#define IEEE80211_CAP_ESS   0x0001
#define IEEE80211_CAP_IBSS   0x0002
#define IEEE80211_CAP_PRIVACY   0x0010
#define WPA_SCAN_QUAL_INVALID   BIT(0)
#define WPA_SCAN_NOISE_INVALID   BIT(1)
#define WPA_SCAN_LEVEL_INVALID   BIT(2)
#define WPA_SCAN_LEVEL_DBM   BIT(3)
#define WPA_SCAN_AUTHENTICATED   BIT(4)
#define WPA_SCAN_ASSOCIATED   BIT(5)
#define WPAS_MAX_SCAN_SSIDS   16
#define WPA_DRIVER_CAPA_KEY_MGMT_WPA   0x00000001
#define WPA_DRIVER_CAPA_KEY_MGMT_WPA2   0x00000002
#define WPA_DRIVER_CAPA_KEY_MGMT_WPA_PSK   0x00000004
#define WPA_DRIVER_CAPA_KEY_MGMT_WPA2_PSK   0x00000008
#define WPA_DRIVER_CAPA_KEY_MGMT_WPA_NONE   0x00000010
#define WPA_DRIVER_CAPA_KEY_MGMT_FT   0x00000020
#define WPA_DRIVER_CAPA_KEY_MGMT_FT_PSK   0x00000040
#define WPA_DRIVER_CAPA_ENC_WEP40   0x00000001
#define WPA_DRIVER_CAPA_ENC_WEP104   0x00000002
#define WPA_DRIVER_CAPA_ENC_TKIP   0x00000004
#define WPA_DRIVER_CAPA_ENC_CCMP   0x00000008
#define WPA_DRIVER_AUTH_OPEN   0x00000001
#define WPA_DRIVER_AUTH_SHARED   0x00000002
#define WPA_DRIVER_AUTH_LEAP   0x00000004
#define WPA_DRIVER_FLAGS_DRIVER_IE   0x00000001
#define WPA_DRIVER_FLAGS_SET_KEYS_AFTER_ASSOC   0x00000002
#define WPA_DRIVER_FLAGS_4WAY_HANDSHAKE   0x00000008
#define WPA_DRIVER_FLAGS_WIRED   0x00000010
#define WPA_DRIVER_FLAGS_SME   0x00000020
#define WPA_DRIVER_FLAGS_AP   0x00000040
#define WPA_DRIVER_FLAGS_SET_KEYS_AFTER_ASSOC_DONE   0x00000080
#define WPA_DRIVER_FLAGS_P2P_MGMT   0x00000100
#define WPA_DRIVER_FLAGS_P2P_CONCURRENT   0x00000200
#define WPA_DRIVER_FLAGS_P2P_DEDICATED_INTERFACE   0x00000400
#define WPA_DRIVER_FLAGS_P2P_CAPABLE   0x00000800
#define WPA_DRIVER_FLAGS_MULTI_CHANNEL_CONCURRENT   0x00001000
#define WPA_DRIVER_FLAGS_P2P_MGMT_AND_NON_P2P   0x00002000
#define WPA_DRIVER_FLAGS_SANE_ERROR_CODES   0x00004000
#define WPA_DRIVER_FLAGS_OFFCHANNEL_TX   0x00008000
#define WPA_DRIVER_FLAGS_EAPOL_TX_STATUS   0x00010000
#define WPA_DRIVER_FLAGS_DEAUTH_TX_STATUS   0x00020000
#define WPA_DRIVER_FLAGS_BSS_SELECTION   0x00040000
#define WPA_DRIVER_FLAGS_TDLS_SUPPORT   0x00080000
#define WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP   0x00100000
#define WPA_DRIVER_FLAGS_PROBE_RESP_OFFLOAD   0x00200000
#define WPA_DRIVER_FLAGS_AP_UAPSD   0x00400000
#define WPA_DRIVER_FLAGS_INACTIVITY_TIMER   0x00800000
#define WPA_DRIVER_PROBE_RESP_OFFLOAD_WPS   0x00000001
 Bitmap of supported protocols by the driver.
#define WPA_DRIVER_PROBE_RESP_OFFLOAD_WPS2   0x00000002
#define WPA_DRIVER_PROBE_RESP_OFFLOAD_P2P   0x00000004
#define WPA_DRIVER_PROBE_RESP_OFFLOAD_INTERWORKING   0x00000008
#define WPA_STA_AUTHORIZED   BIT(0)
#define WPA_STA_WMM   BIT(1)
#define WPA_STA_SHORT_PREAMBLE   BIT(2)
#define WPA_STA_MFP   BIT(3)
#define WPA_STA_TDLS_PEER   BIT(4)
#define DRV_MAX_SEC_DEV_TYPES   5

Enumerations

enum  wps_mode { WPS_MODE_NONE, WPS_MODE_OPEN, WPS_MODE_PRIVACY }
enum  hide_ssid { NO_SSID_HIDING, HIDDEN_SSID_ZERO_LEN, HIDDEN_SSID_ZERO_CONTENTS }
enum  wpa_driver_if_type {
  WPA_IF_STATION, WPA_IF_AP_VLAN, WPA_IF_AP_BSS, WPA_IF_P2P_GO,
  WPA_IF_P2P_CLIENT, WPA_IF_P2P_GROUP
}
enum  tdls_oper {
  TDLS_DISCOVERY_REQ, TDLS_SETUP, TDLS_TEARDOWN, TDLS_ENABLE_LINK,
  TDLS_DISABLE_LINK, TDLS_ENABLE, TDLS_DISABLE
}
enum  wpa_event_type {
  EVENT_ASSOC, EVENT_DISASSOC, EVENT_MICHAEL_MIC_FAILURE, EVENT_SCAN_RESULTS,
  EVENT_ASSOCINFO, EVENT_INTERFACE_STATUS, EVENT_PMKID_CANDIDATE, EVENT_STKSTART,
  EVENT_TDLS, EVENT_FT_RESPONSE, EVENT_IBSS_RSN_START, EVENT_AUTH,
  EVENT_DEAUTH, EVENT_ASSOC_REJECT, EVENT_AUTH_TIMED_OUT, EVENT_ASSOC_TIMED_OUT,
  EVENT_FT_RRB_RX, EVENT_WPS_BUTTON_PUSHED, EVENT_TX_STATUS, EVENT_RX_FROM_UNKNOWN,
  EVENT_RX_MGMT, EVENT_RX_ACTION, EVENT_REMAIN_ON_CHANNEL, EVENT_CANCEL_REMAIN_ON_CHANNEL,
  EVENT_MLME_RX, EVENT_RX_PROBE_REQ, EVENT_NEW_STA, EVENT_EAPOL_RX,
  EVENT_SIGNAL_CHANGE, EVENT_INTERFACE_ENABLED, EVENT_INTERFACE_DISABLED, EVENT_CHANNEL_LIST_CHANGED,
  EVENT_INTERFACE_UNAVAILABLE, EVENT_BEST_CHANNEL, EVENT_UNPROT_DEAUTH, EVENT_UNPROT_DISASSOC,
  EVENT_STATION_LOW_ACK, EVENT_P2P_DEV_FOUND, EVENT_P2P_GO_NEG_REQ_RX, EVENT_P2P_GO_NEG_COMPLETED,
  EVENT_P2P_PROV_DISC_REQUEST, EVENT_P2P_PROV_DISC_RESPONSE, EVENT_P2P_SD_REQUEST, EVENT_P2P_SD_RESPONSE,
  EVENT_IBSS_PEER_LOST, EVENT_DRIVER_GTK_REKEY, EVENT_SCHED_SCAN_STOPPED, EVENT_DRIVER_CLIENT_POLL_OK,
  EVENT_EAPOL_TX_STATUS
}

Functions

void wpa_supplicant_event (void *ctx, enum wpa_event_type event, union wpa_event_data *data)
 Report a driver event for wpa_supplicant.
void wpa_scan_results_free (struct wpa_scan_results *res)
const char * event_to_string (enum wpa_event_type event)

Detailed Description

Driver interface definition.

Copyright
Copyright (c) 2003-2012, Jouni Malinen <j@w1.fi>

This software may be distributed under the terms of the BSD license. See README for more details.

This file defines a driver interface used by both wpa_supplicant and hostapd. The first part of the file defines data structures used in various driver operations. This is followed by the struct wpa_driver_ops that each driver wrapper will beed to define with callback functions for requesting driver operations. After this, there are definitions for driver event reporting with wpa_supplicant_event() and some convenience helper functions that can be used to report events.


Define Documentation

#define WPA_DRIVER_PROBE_RESP_OFFLOAD_WPS   0x00000001

Bitmap of supported protocols by the driver.

for Probe Response offloading.


Enumeration Type Documentation

Enumerator:
WPA_IF_STATION 

Station mode interface.

WPA_IF_AP_VLAN 

AP mode VLAN interface.

This interface shares its address and Beacon frame with the main BSS.

WPA_IF_AP_BSS 

AP mode BSS interface.

This interface has its own address and Beacon frame.

WPA_IF_P2P_GO 

P2P Group Owner.

WPA_IF_P2P_CLIENT 

P2P Client.

WPA_IF_P2P_GROUP 

P2P Group interface (will become either.

WPA_IF_P2P_GO or WPA_IF_P2P_CLIENT, but the role is not yet known)

enum wpa_event_type - Event type for wpa_supplicant_event() calls

Enumerator:
EVENT_ASSOC 

Association completed.

This event needs to be delivered when the driver completes IEEE 802.11 association or reassociation successfully. wpa_driver_ops::get_bssid() is expected to provide the current BSSID after this event has been generated. In addition, optional EVENT_ASSOCINFO may be generated just before EVENT_ASSOC to provide more information about the association. If the driver interface gets both of these events at the same time, it can also include the assoc_info data in EVENT_ASSOC call.

EVENT_DISASSOC 

Association lost.

This event should be called when association is lost either due to receiving deauthenticate or disassociate frame from the AP or when sending either of these frames to the current AP. If the driver supports separate deauthentication event, EVENT_DISASSOC should only be used for disassociation and EVENT_DEAUTH for deauthentication. In AP mode, union wpa_event_data::disassoc_info is required.

EVENT_MICHAEL_MIC_FAILURE 

Michael MIC (TKIP) detected.

This event must be delivered when a Michael MIC error is detected by the local driver. Additional data for event processing is provided with union wpa_event_data::michael_mic_failure. This information is used to request new encyption key and to initiate TKIP countermeasures if needed.

EVENT_SCAN_RESULTS 

Scan results available.

This event must be called whenever scan results are available to be fetched with struct wpa_driver_ops::get_scan_results(). This event is expected to be used some time after struct wpa_driver_ops::scan() is called. If the driver provides an unsolicited event when the scan has been completed, this event can be used to trigger EVENT_SCAN_RESULTS call. If such event is not available from the driver, the driver wrapper code is expected to use a registered timeout to generate EVENT_SCAN_RESULTS call after the time that the scan is expected to be completed. Optional information about completed scan can be provided with union wpa_event_data::scan_info.

EVENT_ASSOCINFO 

Report optional extra information for association.

This event can be used to report extra association information for EVENT_ASSOC processing. This extra information includes IEs from association frames and Beacon/Probe Response frames in union wpa_event_data::assoc_info. EVENT_ASSOCINFO must be send just before EVENT_ASSOC. Alternatively, the driver interface can include assoc_info data in the EVENT_ASSOC call if it has all the information available at the same point.

EVENT_INTERFACE_STATUS 

Report interface status changes.

This optional event can be used to report changes in interface status (interface added/removed) using union wpa_event_data::interface_status. This can be used to trigger wpa_supplicant to stop and re-start processing for the interface, e.g., when a cardbus card is ejected/inserted.

EVENT_PMKID_CANDIDATE 

Report a candidate AP for pre-authentication.

This event can be used to inform wpa_supplicant about candidates for RSN (WPA2) pre-authentication. If wpa_supplicant is not responsible for scan request (ap_scan=2 mode), this event is required for pre-authentication. If wpa_supplicant is performing scan request (ap_scan=1), this event is optional since scan results can be used to add pre-authentication candidates. union wpa_event_data::pmkid_candidate is used to report the BSSID of the candidate and priority of the candidate, e.g., based on the signal strength, in order to try to pre-authenticate first with candidates that are most likely targets for re-association.

EVENT_PMKID_CANDIDATE can be called whenever the driver has updates on the candidate list. In addition, it can be called for the current AP and APs that have existing PMKSA cache entries. wpa_supplicant will automatically skip pre-authentication in cases where a valid PMKSA exists. When more than one candidate exists, this event should be generated once for each candidate.

Driver will be notified about successful pre-authentication with struct wpa_driver_ops::add_pmkid() calls.

EVENT_STKSTART 

Request STK handshake (MLME-STKSTART.request)

This event can be used to inform wpa_supplicant about desire to set up secure direct link connection between two stations as defined in IEEE 802.11e with a new PeerKey mechanism that replaced the original STAKey negotiation. The caller will need to set peer address for the event.

EVENT_TDLS 

Request TDLS operation.

This event can be used to request a TDLS operation to be performed.

EVENT_FT_RESPONSE 

Report FT (IEEE 802.11r) response IEs.

The driver is expected to report the received FT IEs from FT authentication sequence from the AP. The FT IEs are included in the extra information in union wpa_event_data::ft_ies.

EVENT_IBSS_RSN_START 

Request RSN authentication in IBSS.

The driver can use this event to inform wpa_supplicant about a STA in an IBSS with which protected frames could be exchanged. This event starts RSN authentication with the other STA to authenticate the STA and set up encryption keys with it.

EVENT_AUTH 

Authentication result.

This event should be called when authentication attempt has been completed. This is only used if the driver supports separate authentication step (struct wpa_driver_ops::authenticate). Information about authentication result is included in union wpa_event_data::auth.

EVENT_DEAUTH 

Authentication lost.

This event should be called when authentication is lost either due to receiving deauthenticate frame from the AP or when sending that frame to the current AP. In AP mode, union wpa_event_data::deauth_info is required.

EVENT_ASSOC_REJECT 

Association rejected.

This event should be called when (re)association attempt has been rejected by the AP. Information about the association response is included in union wpa_event_data::assoc_reject.

EVENT_AUTH_TIMED_OUT 

Authentication timed out.

EVENT_ASSOC_TIMED_OUT 

Association timed out.

EVENT_FT_RRB_RX 

FT (IEEE 802.11r) RRB frame received.

EVENT_WPS_BUTTON_PUSHED 

Report hardware push button press for WPS.

EVENT_TX_STATUS 

Report TX status.

EVENT_RX_FROM_UNKNOWN 

Report RX from unknown STA.

EVENT_RX_MGMT 

Report RX of a management frame.

EVENT_RX_ACTION 

Action frame received.

This event is used to indicate when an Action frame has been received. Information about the received frame is included in union wpa_event_data::rx_action.

EVENT_REMAIN_ON_CHANNEL 

Remain-on-channel duration started.

This event is used to indicate when the driver has started the requested remain-on-channel duration. Information about the operation is included in union wpa_event_data::remain_on_channel.

EVENT_CANCEL_REMAIN_ON_CHANNEL 

Remain-on-channel timed out.

This event is used to indicate when the driver has completed remain-on-channel duration, i.e., may noot be available on the requested channel anymore. Information about the operation is included in union wpa_event_data::remain_on_channel.

EVENT_MLME_RX 

Report reception of frame for MLME (test use only)

This event is used only by driver_test.c and userspace MLME.

EVENT_RX_PROBE_REQ 

Indicate received Probe Request frame.

This event is used to indicate when a Probe Request frame has been received. Information about the received frame is included in union wpa_event_data::rx_probe_req. The driver is required to report these events only after successfully completed probe_req_report() commands to request the events (i.e., report parameter is non-zero) in station mode. In AP mode, Probe Request frames should always be reported.

EVENT_NEW_STA 

New wired device noticed.

This event is used to indicate that a new device has been detected in a network that does not use association-like functionality (i.e., mainly wired Ethernet). This can be used to start EAPOL authenticator when receiving a frame from a device. The address of the device is included in union wpa_event_data::new_sta.

EVENT_EAPOL_RX 

Report received EAPOL frame.

When in AP mode with hostapd, this event is required to be used to deliver the receive EAPOL frames from the driver. With wpa_supplicant, this event is used only if the send_eapol() handler is used to override the use of l2_packet for EAPOL frame TX.

EVENT_SIGNAL_CHANGE 

Indicate change in signal strength.

This event is used to indicate changes in the signal strength observed in frames received from the current AP if signal strength monitoring has been enabled with signal_monitor().

EVENT_INTERFACE_ENABLED 

Notify that interface was enabled.

This event is used to indicate that the interface was enabled after having been previously disabled, e.g., due to rfkill.

EVENT_INTERFACE_DISABLED 

Notify that interface was disabled.

This event is used to indicate that the interface was disabled, e.g., due to rfkill.

EVENT_CHANNEL_LIST_CHANGED 

Channel list changed.

This event is used to indicate that the channel list has changed, e.g., because of a regulatory domain change triggered by scan results including an AP advertising a country code.

EVENT_INTERFACE_UNAVAILABLE 

Notify that interface is unavailable.

This event is used to indicate that the driver cannot maintain this interface in its operation mode anymore. The most likely use for this is to indicate that AP mode operation is not available due to operating channel would need to be changed to a DFS channel when the driver does not support radar detection and another virtual interfaces caused the operating channel to change. Other similar resource conflicts could also trigger this for station mode interfaces.

EVENT_BEST_CHANNEL 

EVENT_BEST_CHANNEL

Driver generates this event whenever it detects a better channel (e.g., based on RSSI or channel use). This information can be used to improve channel selection for a new AP/P2P group.

EVENT_UNPROT_DEAUTH 

Unprotected Deauthentication frame received.

This event should be called when a Deauthentication frame is dropped due to it not being protected (MFP/IEEE 802.11w). union wpa_event_data::unprot_deauth is required to provide more details of the frame.

EVENT_UNPROT_DISASSOC 

Unprotected Disassociation frame received.

This event should be called when a Disassociation frame is dropped due to it not being protected (MFP/IEEE 802.11w). union wpa_event_data::unprot_disassoc is required to provide more details of the frame.

EVENT_STATION_LOW_ACK 

EVENT_STATION_LOW_ACK

Driver generates this event whenever it detected that a particular station was lost. Detection can be through massive transmission failures for example.

EVENT_P2P_DEV_FOUND 

Report a discovered P2P device.

This event is used only if the driver implements P2P management internally. Event data is stored in union wpa_event_data::p2p_dev_found.

EVENT_P2P_GO_NEG_REQ_RX 

Report reception of GO Negotiation Request.

This event is used only if the driver implements P2P management internally. Event data is stored in union wpa_event_data::p2p_go_neg_req_rx.

EVENT_P2P_GO_NEG_COMPLETED 

Report completion of GO Negotiation.

This event is used only if the driver implements P2P management internally. Event data is stored in union wpa_event_data::p2p_go_neg_completed.

EVENT_IBSS_PEER_LOST 

IBSS peer not reachable anymore.

EVENT_DRIVER_GTK_REKEY 

Device/driver did GTK rekey.

This event carries the new replay counter to notify wpa_supplicant of the current EAPOL-Key Replay Counter in case the driver/firmware completed Group Key Handshake while the host (including wpa_supplicant was sleeping).

EVENT_SCHED_SCAN_STOPPED 

Scheduled scan was stopped.

EVENT_DRIVER_CLIENT_POLL_OK 

Station responded to poll.

This event indicates that the station responded to the poll initiated with .

EVENT_EAPOL_TX_STATUS 

notify of EAPOL TX status


Function Documentation

void wpa_supplicant_event ( void *  ctx,
enum wpa_event_type  event,
union wpa_event_data data 
)

Report a driver event for wpa_supplicant.

Parameters:
ctxContext pointer (wpa_s); this is the ctx variable registered with struct wpa_driver_ops::init()
eventevent type (defined above)
datapossible extra data for the event

Driver wrapper code should call this function whenever an event is received from the driver.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines