WiFi middleware core
All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
EAPOL Functions

General Description

Typedefs

typedef void(* cy_wifimwcore_eapol_packet_handler_t) (whd_interface_t whd_iface, whd_buffer_t buffer)
 EAPOL packet handler function pointer type; On recieving EAPOL data, WHD will send the data to WiFi Middleware Core. More...
 

Functions

cy_rslt_t cy_wifimwcore_eapol_register_receive_handler (cy_wifimwcore_eapol_packet_handler_t eapol_packet_handler)
 This API allows registering callback functions to receive EAPOL packets from WHD. More...
 

Typedef Documentation

◆ cy_wifimwcore_eapol_packet_handler_t

typedef void(* cy_wifimwcore_eapol_packet_handler_t) (whd_interface_t whd_iface, whd_buffer_t buffer)

EAPOL packet handler function pointer type; On recieving EAPOL data, WHD will send the data to WiFi Middleware Core.

The buffer should be freed by EAPOL handler.

Parameters
[in]whd_ifaceWHD interface.
[in]bufferbuffer received from WHD.

Function Documentation

◆ cy_wifimwcore_eapol_register_receive_handler()

cy_rslt_t cy_wifimwcore_eapol_register_receive_handler ( cy_wifimwcore_eapol_packet_handler_t  eapol_packet_handler)

This API allows registering callback functions to receive EAPOL packets from WHD.

If callback is registered and received packet is EAPOL packet then it will be directly redirected to registered callback. passing "NULL" as handler will de-register the previously registered callback

Parameters
[in]eapol_packet_handler: Callback function to be invoked when eapol packets are recieved from WHD.
Returns
CY_RSLT_SUCCESS if the registration was successful; returns WiFi middleware specific error codes otherwise.