summaryrefslogtreecommitdiff
path: root/sys/dev/ic/rt2860.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2010-02-07 09:14:56 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2010-02-07 09:14:56 +0000
commitf7188a35cb3f599061902b8e5320a97341c98c89 (patch)
treef74c492db23d7947b6135ae83b625c7fcf24fdec /sys/dev/ic/rt2860.c
parent8075c5d3d810ea53fc08a54c8fc8c5eef6f6de7b (diff)
add channels 167, 169, 171, 173 for dual-band devices
Diffstat (limited to 'sys/dev/ic/rt2860.c')
-rw-r--r--sys/dev/ic/rt2860.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/rt2860.c b/sys/dev/ic/rt2860.c
index adb96293786..eed741792fc 100644
--- a/sys/dev/ic/rt2860.c
+++ b/sys/dev/ic/rt2860.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rt2860.c,v 1.38 2009/12/10 21:01:29 oga Exp $ */
+/* $OpenBSD: rt2860.c,v 1.39 2010/02/07 09:14:55 damien Exp $ */
/*-
* Copyright (c) 2007, 2008
@@ -2466,7 +2466,7 @@ rt2860_read_eeprom(struct rt2860_softc *sc)
rt2860_rf2850[i].chan, sc->txpow1[i], sc->txpow2[i]));
}
/* read power settings for 5GHz channels */
- for (i = 0; i < 36; i += 2) {
+ for (i = 0; i < 40; i += 2) {
val = rt2860_eeprom_read(sc,
RT2860_EEPROM_PWR5GHZ_BASE1 + i / 2);
sc->txpow1[i + 14] = (int8_t)(val & 0xff);
@@ -2478,7 +2478,7 @@ rt2860_read_eeprom(struct rt2860_softc *sc)
sc->txpow2[i + 15] = (int8_t)(val >> 8);
}
/* fix broken Tx power entries */
- for (i = 0; i < 36; i++) {
+ for (i = 0; i < 40; i++) {
if (sc->txpow1[14 + i] < -7 || sc->txpow1[14 + i] > 15)
sc->txpow1[14 + i] = 5;
if (sc->txpow2[14 + i] < -7 || sc->txpow2[14 + i] > 15)