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
This commit is contained in:
Sam Leffler 2009-02-01 22:24:08 +00:00
parent 09f8c3ff36
commit a3dfb736e8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=187991

View file

@ -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;