aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2500pci.h
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2009-02-15 11:42:48 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-02-27 14:52:35 -0500
commit53bc647a1a96189be53b68b9e8c40df0f42fc300 (patch)
tree97482c3544d35921ff06f3221456e389194fd640 /drivers/net/wireless/rt2x00/rt2500pci.h
parent62750f421f6eebabedf545183ef8291cd3e63c78 (diff)
rt2x00: Remove check for rf word 0
The only way rf_write() can be called with word 0 is when the user sends the wrong word index through debugfs. However the values which are send through debugfs are validated using the RF_BASE and RF_SIZE macro values, the most logical solution is to increase RF_BASE with 4 and decrease RF_SIZE with 4 (RF_SIZE has always been 1 word too big) Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2500pci.h')
-rw-r--r--drivers/net/wireless/rt2x00/rt2500pci.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.h b/drivers/net/wireless/rt2x00/rt2500pci.h
index 17a0c9c8c18..ce2f065c748 100644
--- a/drivers/net/wireless/rt2x00/rt2500pci.h
+++ b/drivers/net/wireless/rt2x00/rt2500pci.h
@@ -59,8 +59,8 @@
59#define EEPROM_SIZE 0x0200 59#define EEPROM_SIZE 0x0200
60#define BBP_BASE 0x0000 60#define BBP_BASE 0x0000
61#define BBP_SIZE 0x0040 61#define BBP_SIZE 0x0040
62#define RF_BASE 0x0000 62#define RF_BASE 0x0004
63#define RF_SIZE 0x0014 63#define RF_SIZE 0x0010
64 64
65/* 65/*
66 * Number of TX queues. 66 * Number of TX queues.