Functions that allow user applications to receive event callbacks and set event handlers. More...
| Typedefs | |
| typedef 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.  More... | |
| typedef 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.  More... | |
| Functions | |
| 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.  More... | |
| 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.  More... | |
| uint32_t | whd_wifi_deregister_event_handler (whd_interface_t ifp, uint16_t event_index) | 
| Delete/Deregister the event entry where callback is registered.  More... | |
| uint32_t | whd_wifi_deregister_error_handler (whd_interface_t ifp, uint16_t error_index) | 
| Delete/Deregister the error entry where callback is registered.  More... | |
| Variables | |
| uint16_t | subtype | 
| Vendor specific..32769.  More... | |
| uint16_t | length | 
| Length of ethernet header.  More... | |
| uint8_t | version | 
| Version is 0.  More... | |
| uint8_t | oui [3] | 
| Organizationally Unique Identifier.  More... | |
| uint16_t | usr_subtype | 
| User specific data.  More... | |
| whd_mac_t | destination_address | 
| Ethernet destination address.  More... | |
| whd_mac_t | source_address | 
| Ethernet source address.  More... | |
| uint16_t | ethertype | 
| Ethertype for identifying event packets.  More... | |
| uint16_t | version | 
| Version.  More... | |
| uint16_t | flags | 
| see flags below  More... | |
| uint32_t | event_type | 
| Event type indicating a response from firmware for IOCTLs/IOVARs sent.  More... | |
| uint32_t | status | 
| Status code corresponding to any event type.  More... | |
| uint32_t | reason | 
| Reason code associated with the event occurred.  More... | |
| uint32_t | auth_type | 
| WLC_E_AUTH: 802.11 AUTH request.  More... | |
| uint32_t | datalen | 
| Length of data in event message.  More... | |
| whd_mac_t | addr | 
| Station address (if applicable)  More... | |
| char | ifname [16] | 
| name of the incoming packet interface  More... | |
| uint8_t | ifidx | 
| destination OS i/f index  More... | |
| uint8_t | bsscfgidx | 
| source bsscfg index  More... | |
| whd_event_ether_header_t | eth | 
| Variable to store ethernet destination, source and ethertype in event packets.  More... | |
| whd_event_eth_hdr_t | eth_evt_hdr | 
| Variable to store ethernet header fields in event message.  More... | |
| whd_event_header_t | whd_event | 
| Variable to store rest of the event packet fields after ethernet header.  More... | |
Functions that allow user applications to receive event callbacks and set event handlers.
Functions that allow user applications to receive error callbacks and set error handlers.
| typedef 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.
| whd_driver | Pointer to handle instance of whd driver | 
| error_type | whd error type | 
| event_data | event data | 
| handler_user_data | semaphore data | 
Definition at line 200 of file whd_events.h.
| typedef 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.
| ifp | Pointer to handle instance of whd interface | 
| event_header | whd event header | 
| event_data | event data | 
| handler_user_data | semaphore data | 
Definition at line 187 of file whd_events.h.
| uint32_t whd_wifi_deregister_error_handler | ( | whd_interface_t | ifp, | 
| uint16_t | error_index | ||
| ) | 
Delete/Deregister the error entry where callback is registered.
| ifp | Pointer to handle instance of whd interface | 
| error_index | Error index obtained during registration by whd_wifi_set_error_handler | 
| uint32_t whd_wifi_deregister_event_handler | ( | whd_interface_t | ifp, | 
| uint16_t | event_index | ||
| ) | 
Delete/Deregister the event entry where callback is registered.
| ifp | Pointer to handle instance of whd interface | 
| event_index | Event index obtained during registration by whd_wifi_set_event_handler | 
| 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.
This function registers a callback handler to be notified when a particular event is received.
| ifp | Pointer to handle instance of whd interface | 
| error_nums | Pointer to the event list as WLC_ERR_BUS and WLC_ERR_FW | 
| handler_func | A function pointer to the handler callback | 
| handler_user_data | A pointer value which will be passed to the event handler function at the time an event is triggered (NULL is allowed) | 
| error_index | Entry where the error handler is registered in the list | 
| 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.
This function registers a callback handler to be notified when a particular event is received.
| ifp | Pointer to handle instance of whd interface | 
| event_type | Pointer to the event list array | 
| handler_func | A function pointer to the handler callback | 
| handler_user_data | A pointer value which will be passed to the event handler function at the time an event is triggered (NULL is allowed) | 
| event_index | Entry where the event handler is registered in the list | 
| whd_mac_t addr | 
Station address (if applicable)
Definition at line 157 of file whd_events.h.
| uint32_t auth_type | 
WLC_E_AUTH: 802.11 AUTH request.
Definition at line 155 of file whd_events.h.
| uint8_t bsscfgidx | 
source bsscfg index
Definition at line 160 of file whd_events.h.
| uint32_t datalen | 
Length of data in event message.
Definition at line 156 of file whd_events.h.
| whd_mac_t destination_address | 
Ethernet destination address.
Definition at line 140 of file whd_events.h.
Variable to store ethernet destination, source and ethertype in event packets.
Definition at line 168 of file whd_events.h.
| whd_event_eth_hdr_t eth_evt_hdr | 
Variable to store ethernet header fields in event message.
Definition at line 169 of file whd_events.h.
| uint16_t ethertype | 
Ethertype for identifying event packets.
Definition at line 142 of file whd_events.h.
| uint32_t event_type | 
Event type indicating a response from firmware for IOCTLs/IOVARs sent.
Definition at line 152 of file whd_events.h.
| uint16_t flags | 
see flags below
Definition at line 151 of file whd_events.h.
| uint8_t ifidx | 
destination OS i/f index
Definition at line 159 of file whd_events.h.
| char ifname[16 ] | 
name of the incoming packet interface
Definition at line 158 of file whd_events.h.
| uint16_t length | 
Length of ethernet header.
Definition at line 129 of file whd_events.h.
| uint8_t oui[3] | 
Organizationally Unique Identifier.
Definition at line 131 of file whd_events.h.
| uint32_t reason | 
Reason code associated with the event occurred.
Definition at line 154 of file whd_events.h.
| whd_mac_t source_address | 
Ethernet source address.
Definition at line 141 of file whd_events.h.
| uint32_t status | 
Status code corresponding to any event type.
Definition at line 153 of file whd_events.h.
| uint16_t subtype | 
Vendor specific..32769.
Definition at line 128 of file whd_events.h.
| uint16_t usr_subtype | 
User specific data.
Definition at line 132 of file whd_events.h.
| uint8_t version | 
Version is 0.
Definition at line 130 of file whd_events.h.
| uint16_t version | 
Version.
Definition at line 150 of file whd_events.h.
| whd_event_header_t whd_event | 
Variable to store rest of the event packet fields after ethernet header.
Definition at line 170 of file whd_events.h.