summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2009-12-05 23:10:34 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2009-12-05 23:10:34 +0000
commit40e839f9838f67e6f9705b41b72259d2ec39e6fd (patch)
tree9ead1b658f15883a514e46d2417374fd0302f898 /sys/dev/ic
parent02603e948223b1a06358dd7461f2dbf580c80564 (diff)
Use the correct member of the ieee80211com struct when testing
if the current mode is 802.11a or 802.11b. found by gcc svn. ok damien@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/athn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/athn.c b/sys/dev/ic/athn.c
index bcf02dbf8e9..79f51dfd1be 100644
--- a/sys/dev/ic/athn.c
+++ b/sys/dev/ic/athn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: athn.c,v 1.20 2009/11/25 19:53:37 damien Exp $ */
+/* $OpenBSD: athn.c,v 1.21 2009/12/05 23:10:33 jsg Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
@@ -4427,9 +4427,9 @@ athn_updateslot(struct ieee80211com *ic)
struct athn_softc *sc = ic->ic_softc;
uint32_t clks;
- if (ic->ic_opmode == IEEE80211_MODE_11B)
+ if (ic->ic_curmode == IEEE80211_MODE_11B)
clks = AR_CLOCK_RATE_CCK;
- else if (ic->ic_opmode == IEEE80211_MODE_11A)
+ else if (ic->ic_curmode == IEEE80211_MODE_11A)
clks = AR_CLOCK_RATE_5GHZ_OFDM;
else
clks = AR_CLOCK_RATE_2GHZ_OFDM;