Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213967
b: refs/heads/master
c: ffd2778
h: refs/heads/master
i:
  213965: 435e5c2
  213963: b9d2f88
  213959: 2437d06
  213951: 5c12cf6
v: v3
  • Loading branch information
Felix Fietkau authored and John W. Linville committed Aug 16, 2010
1 parent 644c4b0 commit 49f6034
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 4d7ede7f5ad58c5316335b9018ddef58bd687def
refs/heads/master: ffd2778bb984afe3cc264e22a125c06587020aa3
5 changes: 4 additions & 1 deletion trunk/net/mac80211/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,13 @@ int ieee80211_hw_config(struct ieee80211_local *local, u32 changed)
int ret = 0;
int power;
enum nl80211_channel_type channel_type;
u32 offchannel_flag;

might_sleep();

scan_chan = local->scan_channel;

offchannel_flag = local->hw.conf.flags & IEEE80211_CONF_OFFCHANNEL;
if (scan_chan) {
chan = scan_chan;
channel_type = NL80211_CHAN_NO_HT;
Expand All @@ -117,8 +119,9 @@ int ieee80211_hw_config(struct ieee80211_local *local, u32 changed)
channel_type = local->_oper_channel_type;
local->hw.conf.flags &= ~IEEE80211_CONF_OFFCHANNEL;
}
offchannel_flag ^= local->hw.conf.flags & IEEE80211_CONF_OFFCHANNEL;

if (chan != local->hw.conf.channel ||
if (offchannel_flag || chan != local->hw.conf.channel ||
channel_type != local->hw.conf.channel_type) {
local->hw.conf.channel = chan;
local->hw.conf.channel_type = channel_type;
Expand Down

0 comments on commit 49f6034

Please sign in to comment.