Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314832
b: refs/heads/master
c: 0f6b3f5
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg committed Jun 20, 2012
1 parent 5f60a1c commit 2c2f7d9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3bfda62c50b0a4b118dcfce36686508ca2892292
refs/heads/master: 0f6b3f597daab2254614e2773e322e73fb1b6f4b
3 changes: 2 additions & 1 deletion trunk/net/mac80211/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -2362,7 +2362,8 @@ static int ieee80211_cancel_roc(struct ieee80211_local *local,

list_del(&found->list);

ieee80211_start_next_roc(local);
if (found->started)
ieee80211_start_next_roc(local);
mutex_unlock(&local->mtx);

ieee80211_roc_notify_destroy(found);
Expand Down
6 changes: 5 additions & 1 deletion trunk/net/mac80211/offchannel.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@ void ieee80211_start_next_roc(struct ieee80211_local *local)
roc = list_first_entry(&local->roc_list, struct ieee80211_roc_work,
list);

if (WARN_ON_ONCE(roc->started))
return;

if (local->ops->remain_on_channel) {
int ret, duration = roc->duration;

Expand Down Expand Up @@ -377,7 +380,8 @@ void ieee80211_sw_roc_work(struct work_struct *work)

ieee80211_recalc_idle(local);

ieee80211_start_next_roc(local);
if (roc->started)
ieee80211_start_next_roc(local);
}

out_unlock:
Expand Down

0 comments on commit 2c2f7d9

Please sign in to comment.