diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2010-02-07 09:14:56 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2010-02-07 09:14:56 +0000 |
commit | f7188a35cb3f599061902b8e5320a97341c98c89 (patch) | |
tree | f74c492db23d7947b6135ae83b625c7fcf24fdec | |
parent | 8075c5d3d810ea53fc08a54c8fc8c5eef6f6de7b (diff) |
add channels 167, 169, 171, 173 for dual-band devices
-rw-r--r-- | sys/dev/ic/rt2860.c | 6 | ||||
-rw-r--r-- | sys/dev/ic/rt2860reg.h | 8 | ||||
-rw-r--r-- | sys/dev/ic/rt2860var.h | 6 | ||||
-rw-r--r-- | sys/dev/usb/if_run.c | 6 | ||||
-rw-r--r-- | sys/dev/usb/if_runvar.h | 6 |
5 files changed, 18 insertions, 14 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) diff --git a/sys/dev/ic/rt2860reg.h b/sys/dev/ic/rt2860reg.h index 1454f2e38bc..fd9a693f606 100644 --- a/sys/dev/ic/rt2860reg.h +++ b/sys/dev/ic/rt2860reg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rt2860reg.h,v 1.19 2009/05/18 19:25:07 damien Exp $ */ +/* $OpenBSD: rt2860reg.h,v 1.20 2010/02/07 09:14:55 damien Exp $ */ /*- * Copyright (c) 2007 @@ -1080,7 +1080,11 @@ static const struct rt2860_rate { { 157, 0x100bb1, 0x1300e3, 0x05e014, 0x001407 }, \ { 159, 0x100bb1, 0x1300e3, 0x05e014, 0x001409 }, \ { 161, 0x100bb1, 0x1300e4, 0x05e014, 0x001401 }, \ - { 165, 0x100bb1, 0x1300e4, 0x05e014, 0x001405 } + { 165, 0x100bb1, 0x1300e4, 0x05e014, 0x001405 }, \ + { 167, 0x100bb1, 0x1300f4, 0x05e014, 0x001407 }, \ + { 169, 0x100bb1, 0x1300f4, 0x05e014, 0x001409 }, \ + { 171, 0x100bb1, 0x1300f5, 0x05e014, 0x001401 }, \ + { 173, 0x100bb1, 0x1300f5, 0x05e014, 0x001403 } #define RT3070_RF3020 \ { 241, 2, 2 }, \ diff --git a/sys/dev/ic/rt2860var.h b/sys/dev/ic/rt2860var.h index f9ed48f4889..e9a899a5707 100644 --- a/sys/dev/ic/rt2860var.h +++ b/sys/dev/ic/rt2860var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rt2860var.h,v 1.12 2009/08/10 17:47:23 damien Exp $ */ +/* $OpenBSD: rt2860var.h,v 1.13 2010/02/07 09:14:55 damien Exp $ */ /*- * Copyright (c) 2007 @@ -145,8 +145,8 @@ struct rt2860_softc { uint8_t ntxchains; uint8_t nrxchains; uint8_t pslevel; - int8_t txpow1[50]; - int8_t txpow2[50]; + int8_t txpow1[54]; + int8_t txpow2[54]; int8_t rssi_2ghz[3]; int8_t rssi_5ghz[3]; uint8_t lna[4]; diff --git a/sys/dev/usb/if_run.c b/sys/dev/usb/if_run.c index f2d9e4212c2..0aa496bba8b 100644 --- a/sys/dev/usb/if_run.c +++ b/sys/dev/usb/if_run.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_run.c,v 1.35 2009/12/10 21:04:16 oga Exp $ */ +/* $OpenBSD: if_run.c,v 1.36 2010/02/07 09:14:55 damien Exp $ */ /*- * Copyright (c) 2008,2009 Damien Bergamini <damien.bergamini@free.fr> @@ -1210,7 +1210,7 @@ run_read_eeprom(struct run_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) { run_srom_read(sc, RT2860_EEPROM_PWR5GHZ_BASE1 + i / 2, &val); sc->txpow1[i + 14] = (int8_t)(val & 0xff); sc->txpow1[i + 15] = (int8_t)(val >> 8); @@ -1220,7 +1220,7 @@ run_read_eeprom(struct run_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) diff --git a/sys/dev/usb/if_runvar.h b/sys/dev/usb/if_runvar.h index ec401351a65..584ffe0df8f 100644 --- a/sys/dev/usb/if_runvar.h +++ b/sys/dev/usb/if_runvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_runvar.h,v 1.3 2009/03/26 20:17:27 damien Exp $ */ +/* $OpenBSD: if_runvar.h,v 1.4 2010/02/07 09:14:55 damien Exp $ */ /*- * Copyright (c) 2008,2009 Damien Bergamini <damien.bergamini@free.fr> @@ -155,8 +155,8 @@ struct run_softc { uint8_t ext_5ghz_lna; uint8_t calib_2ghz; uint8_t calib_5ghz; - int8_t txpow1[50]; - int8_t txpow2[50]; + int8_t txpow1[54]; + int8_t txpow2[54]; int8_t rssi_2ghz[3]; int8_t rssi_5ghz[3]; uint8_t lna[4]; |