summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_scan_sta.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-02-01 22:24:08 +0000
committersam <sam@FreeBSD.org>2009-02-01 22:24:08 +0000
commit860ee29713b1618393749d36562528d451a6c47e (patch)
treefdae9162ba927364a5d9be8b85d90c444fb2ff80 /sys/net80211/ieee80211_scan_sta.c
parent5d8f0a53a75aefe97721f737758596bf3b542e2c (diff)
downloadFreeBSD-src-860ee29713b1618393749d36562528d451a6c47e.zip
FreeBSD-src-860ee29713b1618393749d36562528d451a6c47e.tar.gz
when promoting an 11b channel to 11g do not accept a ``pure G'' (OFDM only)
channel, only accept a real 11g channel; this fixes a problem where we were wrongly promoting 11b to a Dynamic Turbo G channel which broke scanning on channel 6
Diffstat (limited to 'sys/net80211/ieee80211_scan_sta.c')
-rw-r--r--sys/net80211/ieee80211_scan_sta.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_scan_sta.c b/sys/net80211/ieee80211_scan_sta.c
index e2edaf2..6d6b5b2 100644
--- a/sys/net80211/ieee80211_scan_sta.c
+++ b/sys/net80211/ieee80211_scan_sta.c
@@ -395,12 +395,12 @@ find11gchannel(struct ieee80211com *ic, int i, int freq)
*/
for (j = i+1; j < ic->ic_nchans; j++) {
c = &ic->ic_channels[j];
- if (c->ic_freq == freq && IEEE80211_IS_CHAN_ANYG(c))
+ if (c->ic_freq == freq && IEEE80211_IS_CHAN_G(c))
return c;
}
for (j = 0; j < i; j++) {
c = &ic->ic_channels[j];
- if (c->ic_freq == freq && IEEE80211_IS_CHAN_ANYG(c))
+ if (c->ic_freq == freq && IEEE80211_IS_CHAN_G(c))
return c;
}
return NULL;
OpenPOWER on IntegriCloud