Power management lock problem with WiFi when automatic sleep in enabled

MichaelNegatu
Posts: 4
Joined: Tue Jun 11, 2019 9:17 am

Power management lock problem with WiFi when automatic sleep in enabled

Postby MichaelNegatu » Mon Jul 08, 2019 9:40 am

Hi,
I've been trying to implement WiFi with automatic light sleep. When WiFi is available everything works fine (the MCU goes into sleep after a successful connection). However, when there is no WiFi, the MCU doesn't go into light sleep mode even if I call the WiFi stop function. Is it possible that the WiFi driver uses the power management locks and never releases the lock if the WiFi is not connected (I saw that the wifi_init() function created a pm_lock) ? If so, is there any possible way to release the lock ?
Thank you,
Michael

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 231 guests