]> git.baikalelectronics.ru Git - 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)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 1 Feb 2019 10:12:50 +0000 (11:12 +0100)
commit84826b49dd1e7a9add8a7aad055478318d060ca1
treed8a6b6700f93ca68a28b561caa5ade448ac668ea
parentd2f2d6eb7dc91079e71a669b6fbde3901ae23cbc
cfg80211: call disconnect_wk when AP stops

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: 52a8d5e0fe4b ("cfg80211: Prevent regulatory restore during STA disconnect in concurrent interfaces")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/ap.c
net/wireless/core.h
net/wireless/sme.c