summaryrefslogtreecommitdiff
path: root/package/rt2x00/src/rt73usb.h
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-08-07 09:12:49 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-08-07 09:12:49 +0000
commite141a9231dc8a20e7ba6e2dd0b29b4f1082ed094 (patch)
tree704340b18ee1594a3af47d6d525c3473edc42572 /package/rt2x00/src/rt73usb.h
parent96455c222d2b7bc4033fc43ffd0411684faba4fc (diff)
Upgrade rt2x00 to a more recent snapshot, master mode now working, thanks to Daniel Gimpelevich
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8367 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/rt2x00/src/rt73usb.h')
-rw-r--r--package/rt2x00/src/rt73usb.h27
1 files changed, 19 insertions, 8 deletions
diff --git a/package/rt2x00/src/rt73usb.h b/package/rt2x00/src/rt73usb.h
index 7796656982..159240f1cb 100644
--- a/package/rt2x00/src/rt73usb.h
+++ b/package/rt2x00/src/rt73usb.h
@@ -36,10 +36,11 @@
#define RF2527 0x0004
/*
- * Max RSSI value, required for RSSI <-> dBm conversion.
+ * Signal information.
*/
-#define MAX_RX_SSI 120
+#define MAX_RX_SSI -1
#define MAX_RX_NOISE -110
+#define DEFAULT_RSSI_OFFSET 120
/*
* Register layout information.
@@ -749,6 +750,20 @@ struct hw_pairwise_ta_entry {
#define EEPROM_TXPOWER_A_2 FIELD16(0xff00)
/*
+ * EEPROM RSSI offset 802.11BG
+ */
+#define EEPROM_RSSI_OFFSET_BG 0x004d
+#define EEPROM_RSSI_OFFSET_BG_1 FIELD16(0x00ff)
+#define EEPROM_RSSI_OFFSET_BG_2 FIELD16(0xff00)
+
+/*
+ * EEPROM RSSI offset 802.11A
+ */
+#define EEPROM_RSSI_OFFSET_A 0x004e
+#define EEPROM_RSSI_OFFSET_A_1 FIELD16(0x00ff)
+#define EEPROM_RSSI_OFFSET_A_2 FIELD16(0xff00)
+
+/*
* BBP content.
* The wordsize of the BBP is 8 bits.
*/
@@ -886,7 +901,8 @@ struct hw_pairwise_ta_entry {
* RSSI: RSSI reported by BBP.
*/
#define RXD_W1_SIGNAL FIELD32(0x000000ff)
-#define RXD_W1_RSSI FIELD32(0x0000ff00)
+#define RXD_W1_RSSI_AGC FIELD32(0x00001f00)
+#define RXD_W1_RSSI_LNA FIELD32(0x00006000)
#define RXD_W1_FRAME_OFFSET FIELD32(0x7f000000)
/*
@@ -939,9 +955,4 @@ struct hw_pairwise_ta_entry {
(__txpower)); \
})
-/*
- * Interrupt functions.
- */
-static void rt73usb_interrupt_rxdone(struct urb *urb);
-
#endif /* RT73USB_H */