25 #define WPA_CTRL_REQ "CTRL-REQ-"
28 #define WPA_CTRL_RSP "CTRL-RSP-"
32 #define WPA_EVENT_CONNECTED "CTRL-EVENT-CONNECTED "
34 #define WPA_EVENT_DISCONNECTED "CTRL-EVENT-DISCONNECTED "
36 #define WPA_EVENT_TERMINATING "CTRL-EVENT-TERMINATING "
38 #define WPA_EVENT_PASSWORD_CHANGED "CTRL-EVENT-PASSWORD-CHANGED "
40 #define WPA_EVENT_EAP_NOTIFICATION "CTRL-EVENT-EAP-NOTIFICATION "
42 #define WPA_EVENT_EAP_STARTED "CTRL-EVENT-EAP-STARTED "
44 #define WPA_EVENT_EAP_PROPOSED_METHOD "CTRL-EVENT-EAP-PROPOSED-METHOD "
46 #define WPA_EVENT_EAP_METHOD "CTRL-EVENT-EAP-METHOD "
48 #define WPA_EVENT_EAP_PEER_CERT "CTRL-EVENT-EAP-PEER-CERT "
50 #define WPA_EVENT_EAP_TLS_CERT_ERROR "CTRL-EVENT-EAP-TLS-CERT-ERROR "
52 #define WPA_EVENT_EAP_SUCCESS "CTRL-EVENT-EAP-SUCCESS "
54 #define WPA_EVENT_EAP_FAILURE "CTRL-EVENT-EAP-FAILURE "
56 #define WPA_EVENT_SCAN_RESULTS "CTRL-EVENT-SCAN-RESULTS "
58 #define WPA_EVENT_BSS_ADDED "CTRL-EVENT-BSS-ADDED "
60 #define WPA_EVENT_BSS_REMOVED "CTRL-EVENT-BSS-REMOVED "
63 #define WPS_EVENT_OVERLAP "WPS-OVERLAP-DETECTED "
65 #define WPS_EVENT_AP_AVAILABLE_PBC "WPS-AP-AVAILABLE-PBC "
68 #define WPS_EVENT_AP_AVAILABLE_PIN "WPS-AP-AVAILABLE-PIN "
70 #define WPS_EVENT_AP_AVAILABLE "WPS-AP-AVAILABLE "
72 #define WPS_EVENT_CRED_RECEIVED "WPS-CRED-RECEIVED "
74 #define WPS_EVENT_M2D "WPS-M2D "
76 #define WPS_EVENT_FAIL "WPS-FAIL "
78 #define WPS_EVENT_SUCCESS "WPS-SUCCESS "
80 #define WPS_EVENT_TIMEOUT "WPS-TIMEOUT "
82 #define WPS_EVENT_ENROLLEE_SEEN "WPS-ENROLLEE-SEEN "
85 #define WPS_EVENT_ER_AP_ADD "WPS-ER-AP-ADD "
86 #define WPS_EVENT_ER_AP_REMOVE "WPS-ER-AP-REMOVE "
87 #define WPS_EVENT_ER_ENROLLEE_ADD "WPS-ER-ENROLLEE-ADD "
88 #define WPS_EVENT_ER_ENROLLEE_REMOVE "WPS-ER-ENROLLEE-REMOVE "
91 #define WPS_EVENT_PIN_NEEDED "WPS-PIN-NEEDED "
92 #define WPS_EVENT_NEW_AP_SETTINGS "WPS-NEW-AP-SETTINGS "
93 #define WPS_EVENT_REG_SUCCESS "WPS-REG-SUCCESS "
94 #define WPS_EVENT_AP_SETUP_LOCKED "WPS-AP-SETUP-LOCKED "
95 #define WPS_EVENT_AP_SETUP_UNLOCKED "WPS-AP-SETUP-UNLOCKED "
96 #define WPS_EVENT_AP_PIN_ENABLED "WPS-AP-PIN-ENABLED "
97 #define WPS_EVENT_AP_PIN_DISABLED "WPS-AP-PIN-DISABLED "
98 #define AP_STA_CONNECTED "AP-STA-CONNECTED "
99 #define AP_STA_DISCONNECTED "AP-STA-DISCONNECTED "
153 char *reply,
size_t *reply_len,
154 void (*msg_cb)(
char *msg,
size_t len));
226 #ifdef CONFIG_CTRL_IFACE_UDP
227 #define WPA_CTRL_IFACE_PORT 9877
228 #define WPA_GLOBAL_CTRL_IFACE_PORT 9878
int wpa_ctrl_pending(struct wpa_ctrl *ctrl)
int wpa_ctrl_request(struct wpa_ctrl *ctrl, const char *cmd, size_t cmd_len, char *reply, size_t *reply_len, void(*msg_cb)(char *msg, size_t len))
void wpa_ctrl_close(struct wpa_ctrl *ctrl)
int wpa_ctrl_attach(struct wpa_ctrl *ctrl)
struct wpa_ctrl * wpa_ctrl_open(const char *ctrl_path)
int wpa_ctrl_recv(struct wpa_ctrl *ctrl, char *reply, size_t *reply_len)
int wpa_ctrl_detach(struct wpa_ctrl *ctrl)
int wpa_ctrl_get_fd(struct wpa_ctrl *ctrl)