WHD: SDIO Bus Sleep

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

cross mob
nima
Level 1
Level 1
5 replies posted 5 sign-ins First solution authored

Hi,

 

I would like to get more information about whd_allow_wlan_bus_to_sleep(). What is the purpose of this sleep? Could we configure/modify WHD in a way that it does not allow the bus sleep?

 

Thanks,

Nima

0 Likes
1 Solution
Rakesh_BG
Moderator
Moderator
Moderator
50 solutions authored 100 replies posted 100 sign-ins

Hi,

We cannot modify WHD in a way that it does not allow the bus sleep.

whd_allow_wlan_bus_to_sleep function used in cases like sdio deinitialize or reinitialize functions and in  (wait for wlan event).

Thanks,

Rakesh B G

View solution in original post

0 Likes
3 Replies
Rakesh_BG
Moderator
Moderator
Moderator
50 solutions authored 100 replies posted 100 sign-ins

Hi @nima ,

whd_allow_wlan_bus_to_sleep function can be used to keep wlan bus in sleep mode. Usually used in cases like sdio deinitialize or reinitialize functions and in  (wait for wlan event).

You can try disabling bus from going to sleep in whd_bus_sdio_wait_for_wlan_event . It might work , if you you get some issues we can look into it.

Thanks

Rakesh B G

0 Likes
nima
Level 1
Level 1
5 replies posted 5 sign-ins First solution authored

Hi @Rakesh_BG ,

Simply commenting out the whd_allow_wlan_bus_to_sleep() line in whd_bus_sdio_wait_for_wlan_event() results in the following issue:

Function whd_download_wifi_clm_image failed at line 64 checkres = 101580800
Received buffer request ID: 1 (expectation: 2)
Received a response for a different IOCTL - retry
Could not turn off TX glomming

 

Thanks,

Nima

0 Likes
Rakesh_BG
Moderator
Moderator
Moderator
50 solutions authored 100 replies posted 100 sign-ins

Hi,

We cannot modify WHD in a way that it does not allow the bus sleep.

whd_allow_wlan_bus_to_sleep function used in cases like sdio deinitialize or reinitialize functions and in  (wait for wlan event).

Thanks,

Rakesh B G

0 Likes