svn commit: r187991 - head/sys/net80211

Sam Leffler sam at FreeBSD.org
Sun Feb 1 14:24:09 PST 2009


Author: sam
Date: Sun Feb  1 22:24:08 2009
New Revision: 187991
URL: http://svn.freebsd.org/changeset/base/187991

Log:
  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

Modified:
  head/sys/net80211/ieee80211_scan_sta.c

Modified: head/sys/net80211/ieee80211_scan_sta.c
==============================================================================
--- head/sys/net80211/ieee80211_scan_sta.c	Sun Feb  1 21:50:07 2009	(r187990)
+++ head/sys/net80211/ieee80211_scan_sta.c	Sun Feb  1 22:24:08 2009	(r187991)
@@ -395,12 +395,12 @@ find11gchannel(struct ieee80211com *ic, 
 	 */
 	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;


More information about the svn-src-head mailing list