[package] mac80211: update compat-wireless to 2009-01-19
[openwrt.git] / package / mac80211 / patches / 314-rt2x00-Wait-for-WPDMA-between-CRS-and-BBP-init-rt2.patch
1 From 827feb9f680fff5a4f1e04740357ea2c92e10b06 Mon Sep 17 00:00:00 2001
2 From: Ivo van Doorn <IvDoorn@gmail.com>
3 Date: Tue, 13 Jan 2009 21:29:37 +0100
4 Subject: [PATCH] rt2x00: Wait for WPDMA between CRS and BBP init (rt2800pci)
5
6 Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
7 ---
8  drivers/net/wireless/rt2x00/rt2800pci.c |    4 +---
9  1 files changed, 1 insertions(+), 3 deletions(-)
10
11 --- a/drivers/net/wireless/rt2x00/rt2800pci.c
12 +++ b/drivers/net/wireless/rt2x00/rt2800pci.c
13 @@ -1622,6 +1622,7 @@ static int rt2800pci_enable_radio(struct
14         if (unlikely(rt2800pci_wait_wpdma_ready(rt2x00dev) ||
15                      rt2800pci_init_queues(rt2x00dev) ||
16                      rt2800pci_init_registers(rt2x00dev) ||
17 +                    rt2800pci_wait_wpdma_ready(rt2x00dev) ||
18                      rt2800pci_init_bbp(rt2x00dev)))
19                 return -EIO;
20  
21 @@ -1630,9 +1631,6 @@ static int rt2800pci_enable_radio(struct
22          */
23         rt2800pci_mcu_request(rt2x00dev, MCU_BOOT_SIGNAL, 0xff, 0, 0);
24  
25 -       /* Wait for DMA, ignore error */
26 -       rt2800pci_wait_wpdma_ready(rt2x00dev);
27 -
28         /*
29          * Enable RX.
30          */