Macros for event message prefixes

These macro constants provide aliases to event message prefixes, which helps in parsing messages.

Definitions:

Note:
Not all macro definitions are listed here; we list only the ones for the more common events. You can see all macro definitions in wpa_ctrl.h.
#include <wpa_ctrl.h>
#define WPA_CTRL_REQ "CTRL-REQ-"

Interactive request for identity/password/PIN

#define WPA_CTRL_RSP "CTRL-RSP-"

Response to identity/password/PIN request

#define WPA_EVENT_CONNECTED "CTRL-EVENT-CONNECTED "

Authentication completed successfully and data connection is available

#define WPA_EVENT_DISCONNECTED "CTRL-EVENT-DISCONNECTED "

Disconnected, data connection is not available

#define WPA_EVENT_TERMINATING "CTRL-EVENT-TERMINATING "

WPA Supplicant service (wpa_supplicant) is exiting

#define WPA_EVENT_PASSWORD_CHANGED "CTRL-EVENT-PASSWORD-CHANGED "

Password change was completed successfully

#define WPA_EVENT_EAP_NOTIFICATION "CTRL-EVENT-EAP-NOTIFICATION "

EAP-Request/Notification received

#define WPA_EVENT_EAP_STARTED "CTRL-EVENT-EAP-STARTED "

EAP authentication started (EAP-Request/Identity received)

#define WPA_EVENT_EAP_METHOD "CTRL-EVENT-EAP-METHOD "

EAP method selected

#define WPA_EVENT_EAP_SUCCESS "CTRL-EVENT-EAP-SUCCESS "

EAP authentication completed successfully

#define WPA_EVENT_EAP_FAILURE "CTRL-EVENT-EAP-FAILURE "

EAP authentication failed (EAP-Failure received)

#define WPA_EVENT_SCAN_RESULTS "CTRL-EVENT-SCAN-RESULTS "

New scan results available

#define WPA_EVENT_BSS_ADDED "CTRL-EVENT-BSS-ADDED "

A new BSS entry was added (followed by the BSS entry ID and BSSID)

#define WPA_EVENT_BSS_REMOVED "CTRL-EVENT-BSS-REMOVED "

A BSS entry was removed (followed by the BSS entry ID and BSSID)

#define WPS_EVENT_OVERLAP "WPS-OVERLAP-DETECTED "

WPS overlap detected in PBC mode

#define WPS_EVENT_AP_AVAILABLE_PBC "WPS-AP-AVAILABLE-PBC "

Available WPS AP with active PBC found in scan results

#define WPS_EVENT_AP_AVAILABLE_PIN "WPS-AP-AVAILABLE-PIN "

Available WPS AP with recently selected PIN registrar found in scan results

#define WPS_EVENT_AP_AVAILABLE "WPS-AP-AVAILABLE "

Available WPS AP found in scan results

#define WPS_EVENT_CRED_RECEIVED "WPS-CRED-RECEIVED "

New credential received

#define WPS_EVENT_M2D "WPS-M2D "

M2D received

#define WPS_EVENT_FAIL "WPS-FAIL "

WPS registration failed after M2/M2D

#define WPS_EVENT_SUCCESS "WPS-SUCCESS "

WPS registration completed successfully

#define WPS_EVENT_TIMEOUT "WPS-TIMEOUT "

WPS enrollment attempt timed out and was terminated

#define WPS_EVENT_ENROLLEE_SEEN "WPS-ENROLLEE-SEEN "

WPS Enrollee detected (AP mode)

#define WPS_EVENT_ER_AP_ADD "WPS-ER-AP-ADD "

WPS ER discovered an AP

#define WPS_EVENT_ER_AP_REMOVE "WPS-ER-AP-REMOVE "

WPS ER removed an AP entry

#define WPS_EVENT_ER_ENROLLEE_ADD "WPS-ER-ENROLLEE-ADD "

WPS ER discovered a new Enrollee

#define WPS_EVENT_ER_ENROLLEE_REMOVE "WPS-ER-ENROLLEE-REMOVE "

WPS ER removed an Enrollee entry

#define P2P_EVENT_DEVICE_FOUND "P2P-DEVICE-FOUND "

P2P device has been discovered

#define P2P_EVENT_GO_NEG_REQUEST "P2P-GO-NEG-REQUEST "

P2P device requested GO negotiation, but we weren't ready to start negotiation

#define P2P_EVENT_GO_NEG_SUCCESS "P2P-GO-NEG-SUCCESS "

Group Owner (GO) negotiation completed successfully

#define P2P_EVENT_GO_NEG_FAILURE "P2P-GO-NEG-FAILURE "

Group Owner (GO) negotiation failed

#define P2P_EVENT_GROUP_FORMATION_SUCCESS "P2P-GROUP-FORMATION-SUCCESS "

P2P group formation completed successfully

#define P2P_EVENT_GROUP_FORMATION_FAILURE "P2P-GROUP-FORMATION-FAILURE "

P2P group formation failed (e.g., due to provisioning failure or timeout)

#define P2P_EVENT_GROUP_STARTED "P2P-GROUP-STARTED "

New P2P group has been started

#define P2P_EVENT_GROUP_REMOVED "P2P-GROUP-REMOVED "

P2P group has been removed

#define P2P_EVENT_PROV_DISC_SHOW_PIN "P2P-PROV-DISC-SHOW-PIN "

Request from the peer for us to display a PIN that will be entered on the peer

#define P2P_EVENT_PROV_DISC_ENTER_PIN "P2P-PROV-DISC-ENTER-PIN "

Request from the peer for us to enter a PIN displayed on it

#define P2P_EVENT_PROV_DISC_PBC_REQ "P2P-PROV-DISC-PBC-REQ "

Request from the peer for us to connect using PBC

#define P2P_EVENT_PROV_DISC_PBC_RESP "P2P-PROV-DISC-PBC-RESP "

Peer accepted our provision discovery request to connect using PBC

#define P2P_EVENT_SERV_DISC_REQ "P2P-SERV-DISC-REQ "

P2P service discovery request was received

#define P2P_EVENT_SERV_DISC_RESP "P2P-SERV-DISC-RESP "

P2P service discovery response was received

#define P2P_EVENT_INVITATION_RECEIVED "P2P-INVITATION-RECEIVED "

P2P Invitation Request was received

#define P2P_EVENT_INVITATION_RESULT "P2P-INVITATION-RESULT "

Invitation requested with P2P_INVITE has returned a result

#define WPS_EVENT_PIN_NEEDED "WPS-PIN-NEEDED "

PIN needed to complete provisioning with Enrollee

#define WPS_EVENT_NEW_AP_SETTINGS "WPS-NEW-AP-SETTINGS "

New AP settings received

#define WPS_EVENT_REG_SUCCESS "WPS-REG-SUCCESS "

WPS provisioning completed successfully (AP/Registrar)

#define WPS_EVENT_AP_SETUP_LOCKED "WPS-AP-SETUP-LOCKED "

AP changed into setup locked state due to multiple failed configuration attempts using AP PIN

#define AP_STA_CONNECTED "AP-STA-CONNECTED "

A station associated with us (AP mode)

#define AP_STA_DISCONNECTED "AP-STA-DISCONNECTED "

A station disassociated from us (AP mode)

Library:

libwpactrl
Page updated: