MFC 1.26: unbreak handling of turboG channels

This commit is contained in:
sam 2006-01-01 22:33:45 +00:00
parent 367aa83314
commit 69d4b44077

View File

@ -797,8 +797,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)
@ -820,8 +820,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)