Page 1 of 1

Power management lock problem with WiFi when automatic sleep in enabled

Posted: Mon Jul 08, 2019 9:40 am
by MichaelNegatu
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