]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
cfg80211: call disconnect_wk when AP stops
authorJohannes Berg <johannes.berg@intel.com>
Fri, 1 Feb 2019 10:09:54 +0000 (11:09 +0100)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:21:07 +0000 (14:21 -0300)
commitd6f5bfe335368c98890dea05e94c9fb981ab10bd
tree2b5cfff9f05ca7addce6c17fe1cc049d4fbd7792
parent9e69f196bdb1422a29427fffdf8e606829bcd1a3
cfg80211: call disconnect_wk when AP stops

BugLink: https://bugs.launchpad.net/bugs/1854975
[ Upstream commit e005bd7ddea06784c1eb91ac5bb6b171a94f3b05 ]

Since we now prevent regulatory restore during STA disconnect
if concurrent AP interfaces are active, we need to reschedule
this check when the AP state changes. This fixes never doing
a restore when an AP is the last interface to stop. Or to put
it another way: we need to re-check after anything we check
here changes.

Cc: stable@vger.kernel.org
Fixes: 113f3aaa81bd ("cfg80211: Prevent regulatory restore during STA disconnect in concurrent interfaces")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
net/wireless/ap.c
net/wireless/core.h
net/wireless/sme.c