Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277771
b: refs/heads/master
c: 4fdbff0
h: refs/heads/master
i:
  277769: acbb6cc
  277767: d0c7703
v: v3
  • Loading branch information
Stanislaw Gruszka authored and John W. Linville committed Nov 9, 2011
1 parent 1bcc3f9 commit 0248228
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 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: 0b62ffb53c9732e02ec77ae795f1e03cb2f2d406
refs/heads/master: 4fdbff0770bea059621bc4906fb7c7f5879f3ae1
17 changes: 3 additions & 14 deletions trunk/net/mac80211/work.c
Original file line number Diff line number Diff line change
Expand Up @@ -942,10 +942,9 @@ static void ieee80211_work_work(struct work_struct *work)
}

if (!started && !local->tmp_channel) {
bool on_oper_chan;
bool tmp_chan_changed = false;
bool on_oper_chan2;
bool on_oper_chan, on_oper_chan2;
enum nl80211_channel_type wk_ct;

on_oper_chan = ieee80211_cfg_on_oper_channel(local);

/* Work with existing channel type if possible. */
Expand All @@ -954,11 +953,6 @@ static void ieee80211_work_work(struct work_struct *work)
wk_ct = ieee80211_calc_ct(wk->chan_type,
local->hw.conf.channel_type);

if (local->tmp_channel)
if ((local->tmp_channel != wk->chan) ||
(local->tmp_channel_type != wk_ct))
tmp_chan_changed = true;

local->tmp_channel = wk->chan;
local->tmp_channel_type = wk_ct;
/*
Expand All @@ -981,12 +975,7 @@ static void ieee80211_work_work(struct work_struct *work)
true,
false);
}
} else if (tmp_chan_changed)
/* Still off-channel, but on some other
* channel, so update hardware.
* PS should already be off-channel.
*/
ieee80211_hw_config(local, 0);
}

started = true;
wk->timeout = jiffies;
Expand Down

0 comments on commit 0248228

Please sign in to comment.