Skip to content

Fix connection on resume when CONFIG_ANDROID=y#145

Open
dsd wants to merge 1 commit into
lwfinger:masterfrom
dsd:master
Open

Fix connection on resume when CONFIG_ANDROID=y#145
dsd wants to merge 1 commit into
lwfinger:masterfrom
dsd:master

Conversation

@dsd

@dsd dsd commented Jul 3, 2019

Copy link
Copy Markdown
Contributor

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 drake@endlessm.com

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 <drake@endlessm.com>
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