Setting wifi event handler crashes when using WICED 6.1

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

cross mob
BeDe_2507241
Level 4
Level 4
First like received

We have trouble using the following feature to keep track of wifi activities.

The changes are as follows:

Added to the main thread:

    if (wwd_management_set_event_handler( event_type_trig,

            event_handler, NULL, WICED_STA_INTERFACE ) != WWD_SUCCESS)

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

The list of events is:

static const wwd_event_num_t event_type_trig[]  = {WLC_E_BT_WIFI_HANDOVER_REQ, WLC_E_BCNRX_MSG, WLC_E_BEACON_FRAME_RX,WLC_E_WAKE_EVENT,WLC_E_PROBRESP_MSG,

        WLC_E_ACTION_FRAME,WLC_E_PSK_SUP, WLC_E_PSM_WATCHDOG, WLC_E_WNM_STA_SLEEP, WLC_E_AUTH, WLC_E_BEACON_RX, WLC_E_ASSOC};

The event handler is:

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

{

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

    return NULL;

}

The program crashes when using WICED 6.1.

When using WICED 5.1, the program works fine, but beacon packets do not call the function.

We realized the the stack utilization is increases when using this feature. Nevertheless, even after removing most the variables, the program still crashes on 6.1.

0 Likes
1 Solution

Hi :

    I think you need to add WLC_E_NONE to the end of the array to see if the crash still exists.

View solution in original post

0 Likes
6 Replies