diff options
author | sam <sam@FreeBSD.org> | 2005-12-30 00:40:36 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-12-30 00:40:36 +0000 |
commit | 784566928e9467735c2367c19ca9c2590ab05505 (patch) | |
tree | f9dad211d6814631038425eecc1944894baefb0b /sys/net80211 | |
parent | 523c9373671757228152851e9f806352c24b378b (diff) | |
download | FreeBSD-src-784566928e9467735c2367c19ca9c2590ab05505.zip FreeBSD-src-784566928e9467735c2367c19ca9c2590ab05505.tar.gz |
correct checking for turbo channels: rev 1.24 fixed static turbo channels
but broke handling of the turboG channel; since we aren't ready to revamp
the channel list just check for turboA channels for now so channel 6 is
considered in auto mode
Noticed by: gibbs
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c index 69e564b..3660696 100644 --- a/sys/net80211/ieee80211.c +++ b/sys/net80211/ieee80211.c @@ -812,8 +812,8 @@ ieee80211_setmode(struct ieee80211com *ic, enum ieee80211_phymode mode) if (c->ic_flags == 0) continue; if (mode == IEEE80211_MODE_AUTO) { - /* ignore turbo channels for autoselect */ - if ((c->ic_flags & IEEE80211_CHAN_TURBO) == 0) + /* ignore static turbo channels for autoselect */ + if (!IEEE80211_IS_CHAN_T(c)) break; } else { if ((c->ic_flags & modeflags) == modeflags) @@ -835,8 +835,8 @@ ieee80211_setmode(struct ieee80211com *ic, enum ieee80211_phymode mode) if (c->ic_flags == 0) continue; if (mode == IEEE80211_MODE_AUTO) { - /* take anything but pure turbo channels */ - if ((c->ic_flags & IEEE80211_CHAN_TURBO) == 0) + /* take anything but static turbo channels */ + if (!IEEE80211_IS_CHAN_T(c)) setbit(ic->ic_chan_active, i); } else { if ((c->ic_flags & modeflags) == modeflags) |