7 Replies Latest reply on Sep 4, 2018 4:52 PM by shannennedwin_3597396

    Beacon Frame Event Handler not triggering

    shannennedwin_3597396

      Hi,

       

      Using Wiced-Studio 6.2 with the CYW943907AEWVAL1F board, I have the following code for an 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;
      }
      
      
      

       

      The two events are not being triggered at all.

      I know the event handler works because when I use this:

      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, WLC_E_NONE};
      

      I can see some callbacks.

       

      Thanks