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:
parent
09f8c3ff36
commit
a3dfb736e8
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user