summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_ralreg.h
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2006-11-13 20:06:39 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2006-11-13 20:06:39 +0000
commitf815983418862c69f38d2ade274a4785797e276c (patch)
treee83e63c3ae3875de702975496c3bd10651422e08 /sys/dev/usb/if_ralreg.h
parent5dfdad8c9a03b5917a916a713c679847e5ca3fbb (diff)
first round of commits for proper 11b/g protection support:
- use the newly introduced ieee80211_get_rts() and ieee80211_get_cts_to_self() functions. - use CTS-to-self instead of RTS/CTS to protect OFDM frames in a mixed 11b/g BSS. - make sure multicast frames are sent using CCK modulation. remove support for 5GHz radios in ral(4) RT2560 and ural(4). i'm not aware of any such adapters on the market and 11a code is known to be broken. some cleanup while i'm here.
Diffstat (limited to 'sys/dev/usb/if_ralreg.h')
-rw-r--r--sys/dev/usb/if_ralreg.h50
1 files changed, 2 insertions, 48 deletions
diff --git a/sys/dev/usb/if_ralreg.h b/sys/dev/usb/if_ralreg.h
index e2cf5144f99..4dbe14f3491 100644
--- a/sys/dev/usb/if_ralreg.h
+++ b/sys/dev/usb/if_ralreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ralreg.h,v 1.11 2006/08/09 07:40:52 damien Exp $ */
+/* $OpenBSD: if_ralreg.h,v 1.12 2006/11/13 20:06:38 damien Exp $ */
/*-
* Copyright (c) 2005, 2006
@@ -149,7 +149,7 @@ struct ural_tx_desc {
uint32_t flags;
#define RAL_TX_RETRY(x) ((x) << 4)
#define RAL_TX_MORE_FRAG (1 << 8)
-#define RAL_TX_ACK (1 << 9)
+#define RAL_TX_NEED_ACK (1 << 9)
#define RAL_TX_TIMESTAMP (1 << 10)
#define RAL_TX_OFDM (1 << 11)
#define RAL_TX_NEWSEQ (1 << 12)
@@ -315,49 +315,3 @@ struct ural_rx_desc {
0x00226, 0x00227, 0x00227, 0x00228, 0x00228, 0x00229, 0x00229, \
0x0022a, 0x0022a, 0x0022b, 0x0022b, 0x0022c, 0x0022c, 0x0022d \
}
-
-/*
- * For dual-band RF, RF registers R1 and R4 also depend on channel number;
- * values taken from the reference driver.
- */
-#define RAL_RF5222 \
- { 1, 0x08808, 0x0044d, 0x00282 }, \
- { 2, 0x08808, 0x0044e, 0x00282 }, \
- { 3, 0x08808, 0x0044f, 0x00282 }, \
- { 4, 0x08808, 0x00460, 0x00282 }, \
- { 5, 0x08808, 0x00461, 0x00282 }, \
- { 6, 0x08808, 0x00462, 0x00282 }, \
- { 7, 0x08808, 0x00463, 0x00282 }, \
- { 8, 0x08808, 0x00464, 0x00282 }, \
- { 9, 0x08808, 0x00465, 0x00282 }, \
- { 10, 0x08808, 0x00466, 0x00282 }, \
- { 11, 0x08808, 0x00467, 0x00282 }, \
- { 12, 0x08808, 0x00468, 0x00282 }, \
- { 13, 0x08808, 0x00469, 0x00282 }, \
- { 14, 0x08808, 0x0046b, 0x00286 }, \
- \
- { 36, 0x08804, 0x06225, 0x00287 }, \
- { 40, 0x08804, 0x06226, 0x00287 }, \
- { 44, 0x08804, 0x06227, 0x00287 }, \
- { 48, 0x08804, 0x06228, 0x00287 }, \
- { 52, 0x08804, 0x06229, 0x00287 }, \
- { 56, 0x08804, 0x0622a, 0x00287 }, \
- { 60, 0x08804, 0x0622b, 0x00287 }, \
- { 64, 0x08804, 0x0622c, 0x00287 }, \
- \
- { 100, 0x08804, 0x02200, 0x00283 }, \
- { 104, 0x08804, 0x02201, 0x00283 }, \
- { 108, 0x08804, 0x02202, 0x00283 }, \
- { 112, 0x08804, 0x02203, 0x00283 }, \
- { 116, 0x08804, 0x02204, 0x00283 }, \
- { 120, 0x08804, 0x02205, 0x00283 }, \
- { 124, 0x08804, 0x02206, 0x00283 }, \
- { 128, 0x08804, 0x02207, 0x00283 }, \
- { 132, 0x08804, 0x02208, 0x00283 }, \
- { 136, 0x08804, 0x02209, 0x00283 }, \
- { 140, 0x08804, 0x0220a, 0x00283 }, \
- \
- { 149, 0x08808, 0x02429, 0x00281 }, \
- { 153, 0x08808, 0x0242b, 0x00281 }, \
- { 157, 0x08808, 0x0242d, 0x00281 }, \
- { 161, 0x08808, 0x0242f, 0x00281 }