Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Feb 2009 22:24:08 +0000 (UTC)
From:      Sam Leffler <sam@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r187991 - head/sys/net80211
Message-ID:  <200902012224.n11MO85p067988@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902012224.n11MO85p067988>