diff options
author | Eliad Peller <eliad@wizery.com> | 2015-12-14 15:26:57 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2016-01-14 11:10:14 +0100 |
commit | 470f4d613b51806e15e055428234a04a99f076fc (patch) | |
tree | da223fd2bd22e92c56da22c923da87ffa4707769 /net/mac80211/main.c | |
parent | regulatory: fix world regulatory domain data (diff) | |
download | linux-470f4d613b51806e15e055428234a04a99f076fc.tar.xz linux-470f4d613b51806e15e055428234a04a99f076fc.zip |
mac80211: avoid ROC during hw restart
Defer ROC requests during hw restart, as the driver
might not be fully configured in this stage (e.g.
channel contexts were not added yet)
Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 6bcf0faa4a89..ed4c8e66b44a 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -256,6 +256,11 @@ static void ieee80211_restart_work(struct work_struct *work) list_for_each_entry(sdata, &local->interfaces, list) flush_delayed_work(&sdata->dec_tailroom_needed_wk); ieee80211_scan_cancel(local); + + /* make sure any new ROC will consider local->in_reconfig */ + flush_delayed_work(&local->roc_work); + flush_work(&local->hw_roc_done); + ieee80211_reconfig(local); rtnl_unlock(); } |