WLC_E_BEACON_RX and WLC_E_BEACON_FRAME_RX handler in wifi.c

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
shedc_3597396
Level 1
Level 1
First like received

Hi,

I am working with a PhD student and we are trying to analyze the beacon frames in WiFi association. I'm using Wiced-Studio 6.2 with the CYW943907AEWVAL1F board.

I have the following code for the event handler:

if (wwd_management_set_event_handler( event_type_trig,

          event_handler, NULL, WICED_STA_INTERFACE ) != WWD_SUCCESS)

     WPRINT_APP_INFO(("\nFailed to set event handlers! \n"));

the events are:

static const wwd_event_num_t event_type_trig[]  = { WLC_E_BEACON_RX, WLC_E_BEACON_FRAME_RX, WLC_E_NONE};

the event handler:

void* event_handler ( const wwd_event_header_t* event_header, const uint8_t* event_data, /*@null@*/ void* handler_user_data )

{

     if (event_header->event_type == WLC_E_BEACON_FRAME_RX)

        WPRINT_APP_INFO(("\nWLC_E_BEACON_FRAME_RX!\n\n"));

     if (event_header->event_type == WLC_E_BEACON_RX)

        WPRINT_APP_INFO(("\nBEACONS received/lost indication !\n\n"));

    WPRINT_APP_INFO(("\nCall back...\n\n"));

    return NULL;

}

In the wifi.c:

     1. I added WLC_E_BEACON_RX and WLC_E_BEACON_FRAME_RX in the link_events array

     2. In the link_events_handler, I added WPRINT statements for their cases.

I'm not seeing anything triggered. Is there another statement I need to add somewhere to see the beacons?

0 Likes
4 Replies