svn commit: r192257 - head/sys/dev/usb/wlan
Sam Leffler
sam at FreeBSD.org
Sun May 17 19:46:52 UTC 2009
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 at 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)
More information about the svn-src-all
mailing list