From 784566928e9467735c2367c19ca9c2590ab05505 Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 30 Dec 2005 00:40:36 +0000 Subject: 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 --- sys/net80211/ieee80211.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/net80211') 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) -- cgit v1.1