aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/reg.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-08-12 20:44:53 -0400
committerDavid S. Miller <davem@davemloft.net>2009-08-12 20:44:53 -0400
commitaa11d958d1a6572eda08214d7c6a735804fe48a5 (patch)
treed025b05270ad1e010660d17eeadc6ac3c1abbd7d /net/wireless/reg.c
parent07f6642ee9418e962e54cbc07471cfe2e559c568 (diff)
parent9799218ae36910af50f002a5db1802d576fffb43 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: arch/microblaze/include/asm/socket.h
Diffstat (limited to 'net/wireless/reg.c')
-rw-r--r--net/wireless/reg.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index b3ac0aace0e5..0f61ae613f3b 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -1095,17 +1095,18 @@ static void handle_reg_beacon(struct wiphy *wiphy,
1095 1095
1096 chan->beacon_found = true; 1096 chan->beacon_found = true;
1097 1097
1098 if (wiphy->disable_beacon_hints)
1099 return;
1100
1098 chan_before.center_freq = chan->center_freq; 1101 chan_before.center_freq = chan->center_freq;
1099 chan_before.flags = chan->flags; 1102 chan_before.flags = chan->flags;
1100 1103
1101 if ((chan->flags & IEEE80211_CHAN_PASSIVE_SCAN) && 1104 if (chan->flags & IEEE80211_CHAN_PASSIVE_SCAN) {
1102 !(chan->orig_flags & IEEE80211_CHAN_PASSIVE_SCAN)) {
1103 chan->flags &= ~IEEE80211_CHAN_PASSIVE_SCAN; 1105 chan->flags &= ~IEEE80211_CHAN_PASSIVE_SCAN;
1104 channel_changed = true; 1106 channel_changed = true;
1105 } 1107 }
1106 1108
1107 if ((chan->flags & IEEE80211_CHAN_NO_IBSS) && 1109 if (chan->flags & IEEE80211_CHAN_NO_IBSS) {
1108 !(chan->orig_flags & IEEE80211_CHAN_NO_IBSS)) {
1109 chan->flags &= ~IEEE80211_CHAN_NO_IBSS; 1110 chan->flags &= ~IEEE80211_CHAN_NO_IBSS;
1110 channel_changed = true; 1111 channel_changed = true;
1111 } 1112 }