diff options
author | Johannes Berg <johannes.berg@intel.com> | 2019-02-01 13:09:54 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-01 11:14:15 +0300 |
commit | 23ec01fdb1c3b9c6c4bf8399f74bb6e297e640e8 (patch) | |
tree | 0ace6d767e2077be58f52120ec02cad0cf07b338 /net/wireless/ap.c | |
parent | 0293f8d1bdd21b3eb71032edb5832f9090dea48e (diff) | |
download | linux-23ec01fdb1c3b9c6c4bf8399f74bb6e297e640e8.tar.xz |
cfg80211: call disconnect_wk when AP stops
[ 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>
Diffstat (limited to 'net/wireless/ap.c')
-rw-r--r-- | net/wireless/ap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/wireless/ap.c b/net/wireless/ap.c index 63682176c96c..c4bd3ecef508 100644 --- a/net/wireless/ap.c +++ b/net/wireless/ap.c @@ -40,6 +40,8 @@ int __cfg80211_stop_ap(struct cfg80211_registered_device *rdev, cfg80211_sched_dfs_chan_update(rdev); } + schedule_work(&cfg80211_disconnect_work); + return err; } |