]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Feb 2019 07:11:04 +0000 (08:11 +0100)
commita63bbec71a6586ab813222771b32e500e3694c99
tree2ab6ddb57439fab7efe7ca05852ab405c7ec26da
parent860f8e10ce4d8f22f3ed54bc1d6fab4a97f076c5
cfg80211: call disconnect_wk when AP stops

commit e005bd7ddea06784c1eb91ac5bb6b171a94f3b05 upstream.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/wireless/ap.c
net/wireless/core.h
net/wireless/sme.c