diff options
-rw-r--r-- | net/mac80211/offchannel.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/mac80211/offchannel.c b/net/mac80211/offchannel.c index 8b2f4eaac2ba..34541bcd1621 100644 --- a/net/mac80211/offchannel.c +++ b/net/mac80211/offchannel.c | |||
@@ -252,8 +252,6 @@ static bool ieee80211_recalc_sw_work(struct ieee80211_local *local, | |||
252 | static void ieee80211_handle_roc_started(struct ieee80211_roc_work *roc, | 252 | static void ieee80211_handle_roc_started(struct ieee80211_roc_work *roc, |
253 | unsigned long start_time) | 253 | unsigned long start_time) |
254 | { | 254 | { |
255 | struct ieee80211_local *local = roc->sdata->local; | ||
256 | |||
257 | if (WARN_ON(roc->notified)) | 255 | if (WARN_ON(roc->notified)) |
258 | return; | 256 | return; |
259 | 257 | ||
@@ -274,9 +272,6 @@ static void ieee80211_handle_roc_started(struct ieee80211_roc_work *roc, | |||
274 | } | 272 | } |
275 | 273 | ||
276 | roc->notified = true; | 274 | roc->notified = true; |
277 | |||
278 | if (!local->ops->remain_on_channel) | ||
279 | ieee80211_recalc_sw_work(local, start_time); | ||
280 | } | 275 | } |
281 | 276 | ||
282 | static void ieee80211_hw_roc_start(struct work_struct *work) | 277 | static void ieee80211_hw_roc_start(struct work_struct *work) |
@@ -658,6 +653,7 @@ static int ieee80211_start_roc_work(struct ieee80211_local *local, | |||
658 | queued = true; | 653 | queued = true; |
659 | roc->on_channel = tmp->on_channel; | 654 | roc->on_channel = tmp->on_channel; |
660 | ieee80211_handle_roc_started(roc, now); | 655 | ieee80211_handle_roc_started(roc, now); |
656 | ieee80211_recalc_sw_work(local, now); | ||
661 | break; | 657 | break; |
662 | } | 658 | } |
663 | 659 | ||