Default case in bearer handler


#1

Hello,
I have started receiving default case in event handler of bearer. I think i switch all cases but it flows in default case for 2 times after receiving WIP_BEV_IP_DISCONNECTED case. My code is following.

switch (event)
  {
	  
    case WIP_BEV_CONN_FAILED:
    {
        break;
    }
	
    case WIP_BEV_IP_CONNECTED:
    {	
	    break;
    }
	
    case WIP_BEV_IP_DISCONNECTED:
    {		
		
        break;
    }
	
    case WIP_BEV_STOPPED:
    {
		
        break;
    }

    case WIP_BEV_LINK_STATUS:
    case WIP_BEV_DRIVER:
    	break;

	default:
	{
		break;
	}

Is there anyelse wip_bearer_t type other than i supplied in switch statement?
Using FW R7.45, WIP 5.41.0
Thanks.


#2

Trace the Event value that you are receiving :exclamation:


#3

I traced the event value and it is 8! I looked for the value 8 but none of the events has this value.

---wip_bearer.h---
/* Events */
#define WIP_BEV_CONN_FAILED          1
#define WIP_BEV_IP_CONNECTED         2
#define WIP_BEV_IP_DISCONNECTED      3
#define WIP_BEV_STOPPED              4
#define WIP_BEV_LINK_STATUS          5
#define WIP_BEV_DRIVER               6

Why do i receive this event value, anyone has an idea?


#4

What can i do in this stuation? i still get default event case 8. Should i ignore it or make furter search for the reason ?


#5

Make sure you look in the right header file (the right version of WIP stack).
In 5.41:

#define WIP_BEV_ME_UNREG 7
#define WIP_BEV_CTX_DEACT 8

Rudolf


#6

Thank you rudolfl,
That is what you said. i simply do right click and “Go to Declaretion” in developer studio. But it redirects me the wrong header file. That leads me into error. I now see the other event values 7 and 8 in the header files.
But these new event values are not mentioned on the documantation. This is an absent


#7

See the following post :
[url]https://forum.sierrawireless.com/t/unspecified-bearer-events/5141/1]