Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 May 2009 19:46:50 +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: r192257 - head/sys/dev/usb/wlan
Message-ID:  <200905171946.n4HJkoEo037854@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sam
Date: Sun May 17 19:46:50 2009
New Revision: 192257
URL: http://svn.freebsd.org/changeset/base/192257

Log:
  fix 11a channel use; mark OFDM operation correctly
  
  Submitted by:	Lucius Windschuh <lwindschuh@googlemail.com>

Modified:
  head/sys/dev/usb/wlan/if_uath.c

Modified: head/sys/dev/usb/wlan/if_uath.c
==============================================================================
--- head/sys/dev/usb/wlan/if_uath.c	Sun May 17 19:33:48 2009	(r192256)
+++ head/sys/dev/usb/wlan/if_uath.c	Sun May 17 19:46:50 2009	(r192257)
@@ -1492,9 +1492,9 @@ uath_set_chan(struct uath_softc *sc, str
 	if (IEEE80211_IS_CHAN_5GHZ(c))
 		reset.flags |= htobe32(UATH_CHAN_5GHZ);
 	/* NB: 11g =>'s 11b so don't specify both OFDM and CCK */
-	if (IEEE80211_IS_CHAN_G(c))
+	if (IEEE80211_IS_CHAN_OFDM(c))
 		reset.flags |= htobe32(UATH_CHAN_OFDM);
-	else if (IEEE80211_IS_CHAN_B(c))
+	else if (IEEE80211_IS_CHAN_CCK(c))
 		reset.flags |= htobe32(UATH_CHAN_CCK);
 	/* turbo can be used in either 2GHz or 5GHz */
 	if (c->ic_flags & IEEE80211_CHAN_TURBO)



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