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);
200 const uint8_t *event_data,
void *handler_user_data);
221 void *handler_user_data, uint16_t *event_index);
242 void *handler_user_data, uint16_t *error_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.
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.
uint16_t length
Length of ethernet header.
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.
Event structure used by driver msgs.
Status offset added to the status codes to match the values from firmware.
uint32_t whd_wifi_set_error_handler(whd_interface_t ifp, const uint8_t *error_nums, whd_error_handler_t handler_func, void *handler_user_data, uint16_t *error_index)
Registers a handler to receive error callbacks.
Structure for storing a MAC address (Wi-Fi Media Access Control address).
Waiting to receive handshake msg M1.
uint16_t subtype
Vendor specific..32769.
Structure to store fields after ethernet header in event message.
uint8_t version
Version is 0.
struct whd_event whd_event_t
Event structure used by driver msgs.
uint16_t usr_subtype
User specific data.
uint32_t whd_wifi_deregister_event_handler(whd_interface_t ifp, uint16_t event_index)
Delete/Deregister the event entry where callback is registered.
void *(* whd_error_handler_t)(whd_driver_t whd_driver, const uint8_t *error_type, const uint8_t *event_data, void *handler_user_data)
Error handler prototype definition.
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.
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.
#define WHD_MSG_IFNAME_MAX
Max length of Interface name.
Preparing to send handshake msg M2.
enum sup_auth_status sup_auth_status_t
Status code for event WLC_E_PSK_SUP.
Waiting to receive handshake msg M3.
uint32_t whd_wifi_deregister_error_handler(whd_interface_t ifp, uint16_t error_index)
Delete/Deregister the error entry where callback is registered.
uint8_t oui[3]
Organizationally Unique Identifier.
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.
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.
Status offset added to the status codes to match the values from firmware.