summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/wlan
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-05-17 19:46:50 +0000
committersam <sam@FreeBSD.org>2009-05-17 19:46:50 +0000
commit1270298e13435d2625328a1ffe35f857c3d5df8c (patch)
treeeb2aee6f16c2a8aa3b2d971fbf4538c5d80c655e /sys/dev/usb/wlan
parente0d8f490bb822fb6f60fa9672af936308f951ebc (diff)
downloadFreeBSD-src-1270298e13435d2625328a1ffe35f857c3d5df8c.zip
FreeBSD-src-1270298e13435d2625328a1ffe35f857c3d5df8c.tar.gz
fix 11a channel use; mark OFDM operation correctly
Submitted by: Lucius Windschuh <lwindschuh@googlemail.com>
Diffstat (limited to 'sys/dev/usb/wlan')
-rw-r--r--sys/dev/usb/wlan/if_uath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/wlan/if_uath.c b/sys/dev/usb/wlan/if_uath.c
index 8e65770..b566558 100644
--- a/sys/dev/usb/wlan/if_uath.c
+++ b/sys/dev/usb/wlan/if_uath.c
@@ -1492,9 +1492,9 @@ uath_set_chan(struct uath_softc *sc, struct ieee80211_channel *c)
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)
OpenPOWER on IntegriCloud