[package] mac80211: add more patches from the rt2x00 git repository
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 318-rt2x00-Remove-check-for-rf-word-0-rt2800usb.patch
1 From ff7c5c649466a5cf887eb5ee4eb9fd3fb9598069 Mon Sep 17 00:00:00 2001
2 From: Ivo van Doorn <IvDoorn@gmail.com>
3 Date: Sun, 8 Feb 2009 17:08:54 +0100
4 Subject: [PATCH] rt2x00: Remove check for rf word 0 (rt2800usb)
5
6 Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
7 ---
8 drivers/net/wireless/rt2x00/rt2800usb.c | 3 ---
9 drivers/net/wireless/rt2x00/rt2800usb.h | 4 ++--
10 2 files changed, 2 insertions(+), 5 deletions(-)
11
12 --- a/drivers/net/wireless/rt2x00/rt2800usb.c
13 +++ b/drivers/net/wireless/rt2x00/rt2800usb.c
14 @@ -182,9 +182,6 @@ static void rt2800usb_rf_write(struct rt
15 {
16 u32 reg;
17
18 - if (!word)
19 - return;
20 -
21 mutex_lock(&rt2x00dev->csr_mutex);
22
23 /*
24 --- a/drivers/net/wireless/rt2x00/rt2800usb.h
25 +++ b/drivers/net/wireless/rt2x00/rt2800usb.h
26 @@ -68,8 +68,8 @@
27 #define EEPROM_SIZE 0x0110
28 #define BBP_BASE 0x0000
29 #define BBP_SIZE 0x0080
30 -#define RF_BASE 0x0000
31 -#define RF_SIZE 0x0014
32 +#define RF_BASE 0x0004
33 +#define RF_SIZE 0x0010
34
35 /*
36 * Number of TX queues.