set country code timeout

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

cross mob
Anonymous
Not applicable

Hi,

I have a customized board with 43362,

and try porting WICED driver to ourself micro kernel with LWIP.

when program run wiced_management_wifi_on,

It is success when setting "sta" and "bus:txglom",

but setting "country", it return timeout.

wifi chip seems no response when set "country".

any suggestion for me?

thanks

BR

alfa

0 Likes
1 Solution
Anonymous
Not applicable

After replacing wifi chip, the problem is solved.

View solution in original post

8 Replies
Anonymous
Not applicable

Have you read the comment on the code?

    /* This is the first time that the WLAN chip is required to respond
     * in it's normal run mode.
     * If you are porting a new system and it stalls here, it could
     * be one of the following problems:
     *   - Bus interrupt not triggering properly - the WLAN chip is unable to signal the host that there is data available.
     *   - Timing problems - if the timeouts on semaphores are not working correctly, then the
     *                       system might think that the IOCTL has timed out much faster than it should do.
     */

0 Likes
Anonymous
Not applicable

hi dmiya,

I am sure bus interrupt and semaphore timeout working correctly.

command "apsta" and "country" both use wiced_send_iovar to send.

and interrupt will happen when sending "apsta", so it return WICED_SUCCESS

but "country" fail.

0 Likes
Anonymous
Not applicable

The set country IOVAR will take a relatively long period of time (50+ms) and so you should also investigate if your microprocessor is sleeping or going into a low power state. It may not reach such a state previously as most other IOVARs are responded to immediately.

Anonymous
Not applicable

Hi nikvh,

microprocessor is not sleeping or low power state.

I found there is no interrupt after "country" command, but "apsta"
I have tried polling F2 wlan fifo, but only 4 byte zero until 400ms timeout.

Any method to make sure wifi chip work correctly?

Thanks

0 Likes
Anonymous
Not applicable

After replacing wifi chip, the problem is solved.

Anonymous
Not applicable

Thanks for letting us know

0 Likes
Anonymous
Not applicable

Hi alfa,

I have this identical error among multiple boards. I'm curious, was the chip you replaced of different revision?

0 Likes
Anonymous
Not applicable

Hi risleym

I am not sure they are the same thing, but provider say they are the same.

I will check that later.

0 Likes