The partial fix made in commit 2913f99da92a96364b2 relies on the
fact that during suspend/resume, netdev_close() calls
rtw_indicate_disconnect() and that ultimately informs cfg80211 that
we have disconnected.
However that codepath doesn't run when CONFIG_ANDROID=y, so this bug
is effectively back on kernels where that option is set, including
current Ubuntu kernels.
It's not a complete fix but should keep this codebase hobbling along...
Going forward, the newer v5 driver mentioned in
https://github.com/lwfinger/rtl8723bu/issues/144
looks like it should handle this situation much better, as long as
RTW_CFG80211_ALWAYS_INFORM_STA_DISCONNECT_EVENT is set, which
I'd recommend doing.
The partial fix made in commit 2913f99da92a96364b2 relies on the fact that during suspend/resume, netdev_close() calls rtw_indicate_disconnect() and that ultimately informs cfg80211 that we have disconnected.
However that codepath doesn't run when CONFIG_ANDROID=y, so this bug is effectively back on kernels where that option is set, including current Ubuntu kernels.
It's not a complete fix but should keep this codebase hobbling along...
Going forward, the newer v5 driver mentioned in https://github.com/lwfinger/rtl8723bu/issues/144 looks like it should handle this situation much better, as long as RTW_CFG80211_ALWAYS_INFORM_STA_DISCONNECT_EVENT is set, which I'd recommend doing.
Signed-off-by: Daniel Drake drake@endlessm.com