Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

dsd
Copy link
Contributor

@dsd dsd commented Jul 3, 2019

The partial fix made in commit 2913f99 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
#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 [email protected]

The partial fix made in commit 2913f99 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
lwfinger#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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant