24 #ifndef INCLUDED_WHD_EVENTS_API_H 25 #define INCLUDED_WHD_EVENTS_API_H 35 #define WLC_E_NONE (0x7FFFFFFE) 37 #define WLC_E_SET_SSID 0 39 #define WLC_E_DEAUTH 5 40 #define WLC_E_DEAUTH_IND 6 42 #define WLC_E_ASSOC_IND 8 43 #define WLC_E_REASSOC 9 44 #define WLC_E_REASSOC_IND 10 45 #define WLC_E_DISASSOC 11 46 #define WLC_E_DISASSOC_IND 12 49 #define WLC_E_PROBREQ_MSG 44 50 #define WLC_E_PSK_SUP 46 51 #define WLC_E_ACTION_FRAME 59 52 #define WLC_E_ACTION_FRAME_COMPLETE 60 53 #define WLC_E_ESCAN_RESULT 69 56 #define WLC_E_STATUS_SUCCESS 0 57 #define WLC_E_STATUS_FAIL 1 58 #define WLC_E_STATUS_TIMEOUT 2 59 #define WLC_E_STATUS_NO_NETWORKS 3 60 #define WLC_E_STATUS_ABORT 4 61 #define WLC_E_STATUS_NO_ACK 5 62 #define WLC_E_STATUS_UNSOLICITED 6 63 #define WLC_E_STATUS_ATTEMPT 7 64 #define WLC_E_STATUS_PARTIAL 8 65 #define WLC_E_STATUS_NEWSCAN 9 66 #define WLC_E_STATUS_NEWASSOC 10 67 #define WLC_E_STATUS_11HQUIET 11 68 #define WLC_E_STATUS_SUPPRESS 12 69 #define WLC_E_STATUS_NOCHANS 13 70 #define WLC_E_STATUS_CCXFASTRM 14 71 #define WLC_E_STATUS_CS_ABORT 15 72 #define WLC_E_STATUS_ERROR 16 73 #define WLC_E_STATUS_INVALID 0xff 75 #define WLC_SUP_STATUS_OFFSET (256) 118 #define WHD_MSG_IFNAME_MAX 16 186 typedef void *(*whd_event_handler_t)(
whd_interface_t ifp,
const whd_event_header_t *event_header,
187 const uint8_t *event_data,
void *handler_user_data);
209 void *handler_user_data, uint16_t *event_index);
sup_auth_status
Status code for event WLC_E_PSK_SUP.
void *(* whd_event_handler_t)(whd_interface_t ifp, const whd_event_header_t *event_header, const uint8_t *event_data, void *handler_user_data)
Event handler prototype definition.
Status offset added to the status codes to match the values from firmware.
uint8_t oui[3]
Organizationally Unique Identifier.
uint16_t usr_subtype
User specific data.
struct whd_event_eth_hdr whd_event_eth_hdr_t
Structure to store ethernet header fields in event packets.
Status offset added to the status codes to match the values from firmware.
Provides abstract pointer type to act as instance for: driver, interface, buffer funcs, network funcs, resource funcs and bus funcs.
Status offset added to the status codes to match the values from firmware.
Status offset added to the status codes to match the values from firmware.
Preparing to send handshake msg M2.
struct whd_event_ether_header whd_event_ether_header_t
Structure to store ethernet destination, source and ethertype in event packets.
uint32_t whd_wifi_set_event_handler(whd_interface_t ifp, const uint32_t *event_type, whd_event_handler_t handler_func, void *handler_user_data, uint16_t *event_index)
Registers a handler to receive event callbacks.
Status offset added to the status codes to match the values from firmware.
Status offset added to the status codes to match the values from firmware.
Event structure used by driver msgs.
uint16_t length
Length of ethernet header.
uint16_t subtype
Vendor specific..32769.
Waiting to receive handshake msg M1.
Structure for storing a MAC address (Wi-Fi Media Access Control address).
Structure to store fields after ethernet header in event message.
Status offset added to the status codes to match the values from firmware.
struct whd_event whd_event_t
Event structure used by driver msgs.
Structure to store ethernet header fields in event packets.
Status offset added to the status codes to match the values from firmware.
#define WLC_SUP_STATUS_OFFSET
Status offset added to the status codes to match the values from firmware.
Status offset added to the status codes to match the values from firmware.
uint32_t whd_wifi_deregister_event_handler(whd_interface_t ifp, uint16_t event_index)
Delete/Deregister the event entry where callback is registered.
#define WHD_MSG_IFNAME_MAX
Max length of Interface name.
enum sup_auth_status sup_auth_status_t
Status code for event WLC_E_PSK_SUP.
Waiting to receive handshake msg M3.
Status offset added to the status codes to match the values from firmware.
Status offset added to the status codes to match the values from firmware.
uint8_t version
Version is 0.
Status offset added to the status codes to match the values from firmware.