avoid WiFi cannot connect to AP after suspend resume

WCSWREL-621:
woal_sdio_suspend() may be called before complete cfg80211_disconnect(),
which causes WiFi cannot connect to AP after suspend resume.
Add delay to wait kernel complete cfg80211_disconnect() as a workaround.

Signed-off-by: Luke Wang <ziniu.wang_1@nxp.com>
This commit is contained in:
Luke Wang 2024-07-31 17:17:03 +08:00
parent 5fe38ed6c6
commit de2411c71c

View file

@ -825,6 +825,9 @@ int woal_sdio_suspend(struct device *dev)
#ifdef MMC_PM_FUNC_SUSPENDED
handle->suspend_notify_req = MTRUE;
#endif
/* add delay to wait kernel complete cfg80211_disconnect*/
woal_sched_timeout(200);
hs_actived = woal_enable_hs(
woal_get_priv(handle, MLAN_BSS_ROLE_ANY));
#ifdef MMC_PM_FUNC_SUSPENDED