mirror of
https://github.com/nxp-imx/mwifiex.git
synced 2025-01-15 16:25:35 +00:00
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:
parent
5fe38ed6c6
commit
de2411c71c
1 changed files with 3 additions and 0 deletions
|
@ -825,6 +825,9 @@ int woal_sdio_suspend(struct device *dev)
|
||||||
#ifdef MMC_PM_FUNC_SUSPENDED
|
#ifdef MMC_PM_FUNC_SUSPENDED
|
||||||
handle->suspend_notify_req = MTRUE;
|
handle->suspend_notify_req = MTRUE;
|
||||||
#endif
|
#endif
|
||||||
|
/* add delay to wait kernel complete cfg80211_disconnect*/
|
||||||
|
woal_sched_timeout(200);
|
||||||
|
|
||||||
hs_actived = woal_enable_hs(
|
hs_actived = woal_enable_hs(
|
||||||
woal_get_priv(handle, MLAN_BSS_ROLE_ANY));
|
woal_get_priv(handle, MLAN_BSS_ROLE_ANY));
|
||||||
#ifdef MMC_PM_FUNC_SUSPENDED
|
#ifdef MMC_PM_FUNC_SUSPENDED
|
||||||
|
|
Loading…
Reference in a new issue