aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/work.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2011-11-09 14:49:23 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-11-09 14:49:23 -0500
commit5e819059a20b0fc5a71875f28b4cae359e38d85a (patch)
treeb94a18142abc5e60c84f90ee2490e8a6af01c2a9 /net/mac80211/work.c
parentae2772b313b98a14f69b5bc67135c9fee48771be (diff)
parentcc438fccd5783c9f7b4c4858358ac897dcf8a58d (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
Diffstat (limited to 'net/mac80211/work.c')
-rw-r--r--net/mac80211/work.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/mac80211/work.c b/net/mac80211/work.c
index fab5092e378..30da4e3f19f 100644
--- a/net/mac80211/work.c
+++ b/net/mac80211/work.c
@@ -1057,14 +1057,13 @@ static void ieee80211_work_work(struct work_struct *work)
1057 continue; 1057 continue;
1058 if (wk->chan != local->tmp_channel) 1058 if (wk->chan != local->tmp_channel)
1059 continue; 1059 continue;
1060 if (ieee80211_work_ct_coexists(wk->chan_type, 1060 if (!ieee80211_work_ct_coexists(wk->chan_type,
1061 local->tmp_channel_type)) 1061 local->tmp_channel_type))
1062 continue; 1062 continue;
1063 remain_off_channel = true; 1063 remain_off_channel = true;
1064 } 1064 }
1065 1065
1066 if (!remain_off_channel && local->tmp_channel) { 1066 if (!remain_off_channel && local->tmp_channel) {
1067 bool on_oper_chan = ieee80211_cfg_on_oper_channel(local);
1068 local->tmp_channel = NULL; 1067 local->tmp_channel = NULL;
1069 /* If tmp_channel wasn't operating channel, then 1068 /* If tmp_channel wasn't operating channel, then
1070 * we need to go back on-channel. 1069 * we need to go back on-channel.
@@ -1074,7 +1073,7 @@ static void ieee80211_work_work(struct work_struct *work)
1074 * we still need to do a hardware config. Currently, 1073 * we still need to do a hardware config. Currently,
1075 * we cannot be here while scanning, however. 1074 * we cannot be here while scanning, however.
1076 */ 1075 */
1077 if (ieee80211_cfg_on_oper_channel(local) && !on_oper_chan) 1076 if (!ieee80211_cfg_on_oper_channel(local))
1078 ieee80211_hw_config(local, 0); 1077 ieee80211_hw_config(local, 0);
1079 1078
1080 /* At the least, we need to disable offchannel_ps, 1079 /* At the least, we need to disable offchannel_ps,