diff options
author | Naftali Goldstein <naftali.goldstein@intel.com> | 2019-05-29 15:25:30 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2019-06-14 15:46:33 +0200 |
commit | f8891461a277ec0afc493fd30cd975a38048a038 (patch) | |
tree | 054876514c8f092ed77591cebba2e7ebfc7997e6 /net/mac80211/ieee80211_i.h | |
parent | ebb3ca3b4477bbc118976c77fe1913507df718ec (diff) | |
download | linux-f8891461a277ec0afc493fd30cd975a38048a038.tar.gz linux-f8891461a277ec0afc493fd30cd975a38048a038.tar.bz2 linux-f8891461a277ec0afc493fd30cd975a38048a038.zip |
mac80211: do not start any work during reconfigure flow
It is not a good idea to try to perform any work (e.g. send an auth
frame) during reconfigure flow.
Prevent this from happening, and at the end of the reconfigure flow
requeue all the works.
Signed-off-by: Naftali Goldstein <naftali.goldstein@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r-- | net/mac80211/ieee80211_i.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 682d0ab1bf89..a86fcae279a6 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h @@ -2038,6 +2038,13 @@ void __ieee80211_flush_queues(struct ieee80211_local *local, static inline bool ieee80211_can_run_worker(struct ieee80211_local *local) { /* + * It's unsafe to try to do any work during reconfigure flow. + * When the flow ends the work will be requeued. + */ + if (local->in_reconfig) + return false; + + /* * If quiescing is set, we are racing with __ieee80211_suspend. * __ieee80211_suspend flushes the workers after setting quiescing, * and we check quiescing / suspended before enqueing new workers. |